mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5699] [Issue]: Full-body sprite generation sends an invalid image size #3155
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Aug 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5699
Originally assigned to: @Gunterlie on GitHub.
Summary
Full-body sprite generation fails with a 400 error because the request uses an image size unsupported by nano-banana-pro. Other image generation types work, and there is no apparent way to force a supported size such as 1024x1024 for full-body sprites.
Expected behavior
Full-body sprite generation should use a supported image size for the selected model, or provide a setting to choose a supported size.
Actual behavior
Full-body sprite generation fails with HTTP 400: "Invalid size for nano-banana-pro." The API reports supported sizes of 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, and 720x1280.
Steps to reproduce
Environment
1a299369ac)Logs, screenshots, or video
Error: image generation failed (400): {"error":{"message":"Invalid size for nano-banana-pro. Available sizes: 1024x1024, 1152x896, 896x1152, 1344x768, 768x1344, 1280x720, 720x1280","type":"error","param":null,"code":400}}. Server log reports: "OpenAI image generation failed (400)" and "Sprite sheet generation failed" in packages/server/dist/routes/sprites.routes.js. Discord attachments: https://cdn.discordapp.com/attachments/1543604444250251304/1543604444636119050/image.png?ex=6a96caaa&is=6a95792a&hm=58608dbd03884ef3eb514f4f2bb6ab22b323f3f4230977474ea660a699ecbfb5, https://cdn.discordapp.com/attachments/1543604444250251304/1543604445043228792/image.png?ex=6a96caaa&is=6a95792a&hm=de6c0072653fd765c6437dc7d2f19fdbaa636efc22159d58e5f08909be93f9cd, https://cdn.discordapp.com/attachments/1543604444250251304/1543604445533704262/image.png?ex=6a96caaa&is=6a95792a&hm=b83a6d0233414d7f61e90ca246af502cce05755688426a4b7f60e8d4566f14cd
Additional context
The reporter states that expressions, clips, card images, and storyboards work correctly; only full-body sprite generation fails. The issue was tested with nano-gpt, Electron Hub, OpenRouter, and different backend models. Local generation also reportedly fails for a similar reason. Gemini 3.1 Flash works, but is more expensive. Active connection in diagnostics was OpenRouter image generation with nano-banana-pro. GPU: ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0), or similar.
Discord thread: Fully Body sprite generation sizes?
Discord thread link: https://discord.com/channels/1417099416812392641/1543604444250251304
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)
Discord thread transcript (4 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: