Skip to content

fix: apply EXIF orientation in tools/resize.sh - #107

Merged
yusukebe merged 1 commit into
masterfrom
fix-resize-orientation
Oct 28, 2026
Merged

yusukebe merged 1 commit into
masterfrom
fix-resize-orientation

Conversation

@yusukebe

@yusukebe yusukebe commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

sips -Z keeps the EXIF orientation and jpegtran -copy none then drops it, so photos taken with phones end up rotated (e.g. #90, #91, #92).
This adds tools/resize.swift, which resizes with ImageIO and applies the orientation to the pixels, and uses it in resize.sh instead of sips -Z. resize.ps1 now also skips upscaling small images to match.
No extra install is needed; swift comes with the Xcode Command Line Tools.

@yusukebe
yusukebe merged commit 93a361c into master Oct 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant