Repository navigation
Conversation
[Medium impact] The PR appears safe to merge.
|
Includes the JPG/PNG auto-orient fix proposed by AksharP5 in omacom#16554, extended to static WebP/AVIF intermediates. Keep source files and encoder quality settings unchanged; cover rotated, mirrored, normal and untagged inputs in the existing bench.
|
Reviewed at b4479a1, nothing found. The bug is real and this fixes it. What was run. On a disposable Omarchy worker (ImageMagick 7.1.2-35), I transcoded a 120x80 JPEG tagged EXIF Orientation=6, using a fixture of my own. I compared quattro's
Second opinion. Codex Medium and muse-wonder (pi, thinking high) both reviewed the diff, its callers and the other Related. #16329 later added the same Nothing is left for the author. This waits on the maintainer. |
Camera photos can come out sideways when transcoded for sharing: the JPG path strips EXIF orientation without rotating the stored pixels. Apply
-auto-orientbefore resizing in both JPG and PNG conversion so the exported pixels have the intended orientation.Using the same 120x80 JPEG with EXIF Orientation=6:
RightToporientation chunk, unrotated pixelsTopLeft, arrow points downRan the full helper with real ImageMagick 7.1.2-33, stubbing only translation, clipboard, and notifications. Inspected the exported images against a separately rotated reference. Ordinary JPG output stays byte-identical; ordinary PNG pixels stay identical, with orientation normalized to
TopLeft.bash -nandgit diff --checkpass. The synthetic fixture and reproduction are in the linked issue.Based on current
quattroat50e229d08. #16329 touches this area for different format/resolution work; this change only applies orientation.Fixes #16553