HEIF: Test if output image was rotated based on "QuickTime:Rotation"
This commit is contained in:
parent
a128a2ddaa
commit
4b32bac76e
1 changed files with 7 additions and 1 deletions
|
@ -8,4 +8,10 @@ fi
|
|||
|
||||
# USAGE: heif-convert [-q quality 0..100] <filename> <output>
|
||||
|
||||
/usr/bin/heif-convert -q 92 "$1" "$2"
|
||||
/usr/bin/heif-convert -q 92 "$1" "$2"
|
||||
|
||||
# Reset Exif orientation flag if output image was rotated based on "QuickTime:Rotation"
|
||||
|
||||
if [[ $(exiftool -n -QuickTime:Rotation "$1") ]]; then
|
||||
/usr/bin/exiftool -overwrite_original -P -n -Orientation=1 "$2"
|
||||
fi
|
Loading…
Add table
Reference in a new issue