[GH-ISSUE #8239] [Feature]: Option to save Illustrator images as WebP instead of PNG #8173

Closed
opened 2026-10-25 04:03:13 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Generated illustrations are stored as PNG at about 1.5-2 MB each, so a daily Illustrator user fills a small VPS disk within a couple of months.

I re-encoded my chat galleries to WebP at quality 95 (Docker server, 2.5.x):

  • 661 PNG, 1,102 MB -> 669 WebP, 181 MB (about 17% of the original size)
  • No visible difference in chat. Transparency is kept, and NovelAI's hidden generation info in the alpha channel still reads in novelai.net/inspect.

Proposed solution

An option in the image generation (Illustrator) settings to save generated images as WebP instead of PNG, with a quality setting. PNG stays the default, so nothing changes for anyone who does not opt in.

Alternatives considered

Re-encoding images after the fact from the browser (what I do now). It works for Roleplay and Conversation galleries, but it is an extra step for every user and cannot cover every place the engine stores images, so a save-time option in the engine would be simpler for everyone.

Additional context

The server already has sharp (gallery thumbnails are WebP) and the gallery already accepts and serves .webp files, so the conversion could happen once, right before the file is written, with no provider changes.

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-Engine/issues/8239 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Generated illustrations are stored as PNG at about 1.5-2 MB each, so a daily Illustrator user fills a small VPS disk within a couple of months. I re-encoded my chat galleries to WebP at quality 95 (Docker server, 2.5.x): - 661 PNG, 1,102 MB -> 669 WebP, 181 MB (about 17% of the original size) - No visible difference in chat. Transparency is kept, and NovelAI's hidden generation info in the alpha channel still reads in novelai.net/inspect. ## Proposed solution An option in the image generation (Illustrator) settings to save generated images as WebP instead of PNG, with a quality setting. PNG stays the default, so nothing changes for anyone who does not opt in. ## Alternatives considered Re-encoding images after the fact from the browser (what I do now). It works for Roleplay and Conversation galleries, but it is an extra step for every user and cannot cover every place the engine stores images, so a save-time option in the engine would be simpler for everyone. ## Additional context The server already has `sharp` (gallery thumbnails are WebP) and the gallery already accepts and serves `.webp` files, so the conversion could happen once, right before the file is written, with no provider changes. ## 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.
bsakaguchi 2026-10-26 04:03:17 +07:00
Author
Owner

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

We will add a toggle in Generations Settings > Overall Generations to switch the download format to .webp.

<!-- gh-comment-id:6395475223 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): We will add a toggle in Generations Settings > Overall Generations to switch the download format to `.webp`.
Author
Owner

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

@SpicyMarinara / Codex is implementing this issue in the media-support lane of the assigned-issue sweep, targeting staging. Ownership: /root/engine_media_support; branch fix/sweep-media-support-20261025. The draft PR will cover the related video model support and opt-in generated-image storage changes, with validation and review before it is marked ready.

<!-- gh-comment-id:6395866257 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): @SpicyMarinara / Codex is implementing this issue in the media-support lane of the assigned-issue sweep, targeting staging. Ownership: `/root/engine_media_support`; branch `fix/sweep-media-support-20261025`. The draft PR will cover the related video model support and opt-in generated-image storage changes, with validation and review before it is marked ready.
Author
Owner

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

Implemented in PR #8300, merged to staging as 3ffae95df89001f4d5116c344687ac0dd3fe57bd from reviewed head 0f9304f169dfe1b6056609cceb9bf18f9b30f7a6.

Generations Settings → Overall Generations now offers opt-in WebP storage with configurable quality (default 95). PNG stays the default. Selecting WebP honors that format even when a particular output is larger; the help text accurately describes conditional size savings. Existing stored images are unchanged, and sprite/avatar intermediate flows retain the provider format they require.

Actual Sharp controls verify matching bytes/MIME/extension and exact alpha preservation. Actual Game route controls accept converted references; OpenRouter/xAI/Veo use supported inline bytes, while legacy direct Seedance uses its existing explicit temporary-upload option and gives precise guidance when that option is disabled. PNG/JPEG public URLs and opt-out behavior are preserved.

Full local and combined checks, focused format/route tests, substantive local review, current-head Dottore, required CI and platform jobs passed. Real-provider metadata round trips (including NovelAI invisible metadata) and physical-device checks are not claimed. Shared merge and staging evidence: https://github.com/Pasta-Devs/Marinara-Engine/pull/8300#issuecomment-6397349426

<!-- gh-comment-id:6397352146 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Implemented in [PR #8300](https://github.com/Pasta-Devs/Marinara-Engine/pull/8300), merged to `staging` as `3ffae95df89001f4d5116c344687ac0dd3fe57bd` from reviewed head `0f9304f169dfe1b6056609cceb9bf18f9b30f7a6`. Generations Settings → Overall Generations now offers opt-in WebP storage with configurable quality (default 95). PNG stays the default. Selecting WebP honors that format even when a particular output is larger; the help text accurately describes conditional size savings. Existing stored images are unchanged, and sprite/avatar intermediate flows retain the provider format they require. Actual Sharp controls verify matching bytes/MIME/extension and exact alpha preservation. Actual Game route controls accept converted references; OpenRouter/xAI/Veo use supported inline bytes, while legacy direct Seedance uses its existing explicit temporary-upload option and gives precise guidance when that option is disabled. PNG/JPEG public URLs and opt-out behavior are preserved. Full local and combined checks, focused format/route tests, substantive local review, current-head Dottore, required CI and platform jobs passed. Real-provider metadata round trips (including NovelAI invisible metadata) and physical-device checks are not claimed. Shared merge and staging evidence: https://github.com/Pasta-Devs/Marinara-Engine/pull/8300#issuecomment-6397349426
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-Engine#8173
No description provided.