[GH-ISSUE #1642] [Feature]: Gacha Forge — option to save generated art as WebP #1619

Closed
opened 2026-10-25 04:02:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @boricha417 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1642

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Gacha Forge saves every generated picture (portraits, CGs, backgrounds, enemy art, banners) to the Global Gallery as PNG, about 1.7 MB each. One run (chapter 9 reached, four Character Stories played) had 206 pictures, 349 MB in total. Enemy art alone was 129 of them, and it keeps growing with every battle and chapter, so on a small VPS this is the fastest-growing part of the data folder.

Converted to WebP at quality 95 with the engine's own sharp (Gacha Forge 1.8.12 / Engine 2.5.0, Docker):

  • 206 PNG, 349 MB -> 58 MB (about 17% of the original size)
  • Transparency is kept, and the game shows the WebP files exactly as before: album, past chapters, battles, outfits, repainting a card, picking an earlier portrait and repainting a banner all verified.

Proposed package or change

A change to the existing Gacha Forge package: when a generated picture is PNG, re-encode it to WebP before uploading it to the Global Gallery, with a quality option (and a way to keep PNG). Server code only; no UI change is needed beyond the setting. The Global Gallery already accepts .webp uploads, so no engine change is needed.

Why should this be optional?

It is a setting inside an existing package, not a new package. A format/quality option lets players who prefer PNG keep it.

Alternatives considered

Converting the files after the fact outside the package. That works but has to be repeated as new art is generated, so converting at save time is simpler.

Additional context

Slurp already converts its generated pictures to WebP before saving, so the same pattern would work here.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @boricha417 on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1642 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Gacha Forge saves every generated picture (portraits, CGs, backgrounds, enemy art, banners) to the Global Gallery as PNG, about 1.7 MB each. One run (chapter 9 reached, four Character Stories played) had 206 pictures, 349 MB in total. Enemy art alone was 129 of them, and it keeps growing with every battle and chapter, so on a small VPS this is the fastest-growing part of the data folder. Converted to WebP at quality 95 with the engine's own `sharp` (Gacha Forge 1.8.12 / Engine 2.5.0, Docker): - 206 PNG, 349 MB -> 58 MB (about 17% of the original size) - Transparency is kept, and the game shows the WebP files exactly as before: album, past chapters, battles, outfits, repainting a card, picking an earlier portrait and repainting a banner all verified. ## Proposed package or change A change to the existing Gacha Forge package: when a generated picture is PNG, re-encode it to WebP before uploading it to the Global Gallery, with a quality option (and a way to keep PNG). Server code only; no UI change is needed beyond the setting. The Global Gallery already accepts `.webp` uploads, so no engine change is needed. ## Why should this be optional? It is a setting inside an existing package, not a new package. A format/quality option lets players who prefer PNG keep it. ## Alternatives considered Converting the files after the fact outside the package. That works but has to be repeated as new art is generated, so converting at save time is simpler. ## Additional context Slurp already converts its generated pictures to WebP before saving, so the same pattern would work here. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Tied to:
https://github.com/Pasta-Devs/Marinara-Engine/issues/8239

<!-- gh-comment-id:6395482168 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Tied to: https://github.com/Pasta-Devs/Marinara-Engine/issues/8239
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1619
No description provided.