mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #395] Noodle stamps generated post images .png regardless of real format #199
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#199
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 @Gunterlie on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/395
Originally assigned to: @Gunterlie on GitHub.
Problem
When the Noodle package copies a generated post image into the per-character gallery folder (
gallery/characters/<characterId>/), it stamps the filename with a hardcoded.pngextension regardless of the actual image format returned by the provider. Theqwen-imageprovider (via NanoGPTimage_generation) returns WebP/JPEG bytes, so the on-disk file is a.png-named non-PNG.This surfaced as broken-image icons in the Noodle feed on Marinara Engine v2.4.2+, where the engine's serve route began validating that a file's extension matches its magic bytes. See Pasta-Devs/Marinara-Agents#392.
Engine-side status
The engine now tolerates this: it serves any valid raster by its detected MIME type (Pasta-Devs/Marinara-Engine#5176), which heals already-generated files. But the mislabeling should be fixed at the source.
Ask
When saving a generated post image into the character gallery, derive the file extension from the response bytes (magic-byte sniff or the provider's content-type) so the stored filename matches its true format, rather than hardcoding
.png.