Let saved library stills queue Edit without a format rejection.

Use catalog width/height or aspect fallback in resolveRequestSize, restore GIF/BMP upload messaging, and keep Photo to change still ids across reload so Klein/Qwen Edit can bind imageAId.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-12 12:45:50 -05:00
co-authored by Cursor
parent 1bab5152f6
commit 97c7547da9
4 changed files with 52 additions and 25 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export default defineEventHandler(async (event) => {
}
const size = imageDimensions(image.data)
if (!size) {
throw createError({ statusCode: 400, statusMessage: 'Use a PNG, JPEG, or WebP' })
throw createError({ statusCode: 400, statusMessage: 'Use a PNG, JPEG, WebP, GIF, or BMP image.' })
}
const { owner } = assertLibraryOwner(event)
const library = publicLibrary(event)