[PR #396] [MERGED] fix(noodle): preserve generated image formats #949

Closed
opened 2026-10-20 17:32:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/396
Author: @Gunterlie
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @Gunterlie

Base: staging ← Head: this-is-not-a-png


📝 Commits (3)

  • c8fed0f fix(noodle): preserve generated image formats
  • e9c5f37 chore(noodle): release version 1.2.4
  • 925e40f fix(noodle): detect compatible AVIF brands

📊 Changes

11 files changed (+294 additions, -198 deletions)

View changed files

➕ artifacts/noodle-1.2.4.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/noodle/client.js (+13 -13)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+154 -154)
➕ packages/noodle/src/engine/packages/server/src/services/noodle/noodle-image-format.ts (+40 -0)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-images.service.ts (+2 -1)
📝 scripts/build-feature-packages.mjs (+2 -1)
➕ tests/noodle-image-format.regression.ts (+54 -0)

📄 Description

Linked issue

Closes #395

Why this change

  • Noodle can receive WebP or JPEG bytes from NanoGPT while the provider metadata reports PNG. The old save path used that metadata and created a filename that did not match the raster bytes. Engine MIME validation then rejected the image.

What changed

  • Added raster magic-byte detection for Noodle generated post images.
  • Kept the provider extension as a fallback when bytes do not identify a supported raster.
  • Added regression coverage for PNG, JPEG, WebP, GIF, AVIF, BMP, and fallback behavior.
  • Released Noodle 1.2.4 and rebuilt its server, client, manifest, ZIP artifact, and catalog entries.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: unchanged; Noodle remains compatible with Engine 2.4.2 through versions before 4.0.0.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: existing files stay unchanged; new generated images receive an extension that matches their bytes. Package update still requires the existing restart.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Ran npm run test:noodle:regressions.
  • Ran node scripts/test-catalog-lanes.mjs.
  • Ran node scripts/validate-package-locales.mjs.
  • Ran node scripts/validate-catalog.mjs.
  • Ran git diff --check.
  • Ran unzip -t artifacts/noodle-1.2.4.zip.
  • Did not run a live NanoGPT request.
  • Did not test install, update, restart, offline restart, or uninstall in Engine.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

No documentation change is needed because this corrects stored file metadata without changing user controls or setup.

UI evidence (if applicable)

No UI change.

Summary by CodeRabbit

  • New Features

    • Improved image format detection for PNG, JPEG, WebP, GIF, BMP, and AVIF files.
    • Unsupported or missing image extensions now fall back to a supported format, defaulting to PNG.
  • Bug Fixes

    • Image staging now uses the detected file format instead of relying solely on the provided extension.
  • Chores

    • Updated the Noodle package from version 1.2.3 to 1.2.4 and refreshed package metadata.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/396 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/17/2026 **Status:** ✅ Merged **Merged:** 8/17/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `this-is-not-a-png` --- ### 📝 Commits (3) - [`c8fed0f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c8fed0fbb75bf0a3fe849dec97f272fe04e88ae4) fix(noodle): preserve generated image formats - [`e9c5f37`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e9c5f377190c2bc452f0fb0b4a1b0829a318e6e3) chore(noodle): release version 1.2.4 - [`925e40f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/925e40fd8cd3d685fc7c1b22e3ac6e15f942a6cd) fix(noodle): detect compatible AVIF brands ### 📊 Changes **11 files changed** (+294 additions, -198 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.2.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/noodle/client.js` (+13 -13) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+154 -154) ➕ `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-image-format.ts` (+40 -0) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-images.service.ts` (+2 -1) 📝 `scripts/build-feature-packages.mjs` (+2 -1) ➕ `tests/noodle-image-format.regression.ts` (+54 -0) </details> ### 📄 Description ## Linked issue Closes #395 ## Why this change - Noodle can receive WebP or JPEG bytes from NanoGPT while the provider metadata reports PNG. The old save path used that metadata and created a filename that did not match the raster bytes. Engine MIME validation then rejected the image. ## What changed - Added raster magic-byte detection for Noodle generated post images. - Kept the provider extension as a fallback when bytes do not identify a supported raster. - Added regression coverage for PNG, JPEG, WebP, GIF, AVIF, BMP, and fallback behavior. - Released Noodle 1.2.4 and rebuilt its server, client, manifest, ZIP artifact, and catalog entries. ## Package and security impact - Affected package IDs: noodle - Engine compatibility impact: unchanged; Noodle remains compatible with Engine 2.4.2 through versions before 4.0.0. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: existing files stay unchanged; new generated images receive an extension that matches their bytes. Package update still requires the existing restart. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Ran `npm run test:noodle:regressions`. - Ran `node scripts/test-catalog-lanes.mjs`. - Ran `node scripts/validate-package-locales.mjs`. - Ran `node scripts/validate-catalog.mjs`. - Ran `git diff --check`. - Ran `unzip -t artifacts/noodle-1.2.4.zip`. - Did not run a live NanoGPT request. - Did not test install, update, restart, offline restart, or uninstall in Engine. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No documentation change is needed because this corrects stored file metadata without changing user controls or setup. ## UI evidence (if applicable) No UI change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved image format detection for PNG, JPEG, WebP, GIF, BMP, and AVIF files. * Unsupported or missing image extensions now fall back to a supported format, defaulting to PNG. * **Bug Fixes** * Image staging now uses the detected file format instead of relying solely on the provided extension. * **Chores** * Updated the Noodle package from version 1.2.3 to 1.2.4 and refreshed package metadata. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:32:35 +07:00
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#949
No description provided.