Apply EXIF orientation when converting images with ImageMagick (#577)

This commit is contained in:
casi3
2026-08-03 21:20:35 +02:00
committed by GitHub
parent dc61643912
commit 7157d2398e
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -468,6 +468,10 @@ export function convert(
outputArgs.push("-background", "white", "-alpha", "remove");
}
// Apply EXIF orientation so photos (e.g. from phones) don't end up sideways
// when converted to formats where the orientation tag is lost or ignored
outputArgs.push("-auto-orient");
return new Promise((resolve, reject) => {
execFile(
"magick",