Skip to content

fix(images): publish final EXIF derivatives directly - #2445

Merged
markdumay merged 1 commit into
mainfrom
fix/exif-thumbnail-publication
Dec 3, 2026
Merged

markdumay merged 1 commit into
mainfrom
fix/exif-thumbnail-publication

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Summary

  • Publish the final crop and responsive derivatives for EXIF-rotated local thumbnails. The existing rotation and image processing produce the same bytes at new generated URLs.
  • Use a content-addressed filename for the finished derivative when the source has URL delimiters. Keep the existing naming behavior for ordinary raster and remote inputs.
  • Add a production example at /en/exif-thumbnail/ and regression assertions for the actual published files and image URLs.

Refs #2342. Part of #2383.

Verification

  • Full Hinode repository suite and example warning gate on Hugo 0.170.1. Full production example builds on Hugo 0.170.1 and 0.158.0.
  • Strict image suite on Hugo 0.170.1 and 0.158.0. The baseline regression test found the extra JPEG in SEO and the responsive adapter.
  • Targeted production example builds on both versions with root and subpath URLs and cold and warm caches. The preview PNGs and responsive bytes matched the v3.54.21 controls. All Open Graph, X, structured-data, and responsive URLs led to the expected output files.
  • Chromium and WebKit decoded the local preview and fetched all eight derivatives.
  • Independent item and integration review passed. Both reviewers reproduced the extra JPEG by restoring the rotated-source permalink read.

Reverting this PR restores the previous thumbnail URLs. The external consumer pass is grouped with the final stabilization release. Preview acceptance and release approval are pending.

Preserve the existing rotation and image data while avoiding publication of
the rotated intermediate. Give derivatives of names with URL delimiters a
safe content-addressed URL.

Refs #2342
@netlify

netlify Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit 4a38964
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6b110230c507bf8a21452967
😎 Deploy Preview https://deploy-preview-2445--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@markdumay
markdumay merged commit 4ddd014 into main Dec 3, 2026
14 of 15 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.54.22 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant