HELP Convert is not copying Exif:Orient tag when resizing.
Posted: 2008-09-15T20:06:38-07:00
I'm running this command to resize a JPG to max 640px along the longest dimension and save in a preview folder. The convert works just fine:
HOWEVER, if I check the exif data using:
the original JPG in $TESTFOLDER shows the correct EXIF info, including:
but the resized version in $PREVIEWFOLDER/$TESTFOLDER shows the same EXIF info, except that the orientation has been changed:
What is happening?
ubuntu 8.04.1,
imagemagick Version: ImageMagick 6.3.7 02/18/08 Q16
Code: Select all
find $TESTFOLDER -iname *.jpg -exec convert -verbose {} -resize 640x640">" $PREVIEWFOLDER/{} \;
Code: Select all
find $TESTFOLDER -iname *.jpg -exec identify -format "\nFILE:%m:%f %wx%h\n%[EXIF:*]" {} \;
find $PREVIEWFOLDER/$TESTFOLDER -iname *.jpg -exec identify -format "\nFILE:%m:%f %wx%h\n%[EXIF:*]" {} \;
Code: Select all
JPEG:DisneySea 076.jpg 3456x2304 ## original file
...
exif:MeteringMode=5
exif:Model=Canon EOS Kiss Digital N
exif:Orientation=8 ## exif orientation is 8 here
exif:ResolutionUnit=2
exif:SceneCaptureType=0
exif:ShutterSpeedValue=522046/65536
exif:WhiteBalance=0
exif:XResolution=72/1
exif:YCbCrPositioning=2
exif:YResolution=72/1
Code: Select all
FILE:JPEG:DisneySea 076.jpg 640x427 ## resized file
...
exif:MeteringMode=5
exif:Model=Canon EOS Kiss Digital N
exif:Orientation=0 ## exif orientation changed to 0 here
exif:ResolutionUnit=1
exif:SceneCaptureType=0
exif:ShutterSpeedValue=522046/65536
exif:WhiteBalance=0
exif:XResolution=72/1
exif:YCbCrPositioning=2
exif:YResolution=72/1
What is happening?
ubuntu 8.04.1,
imagemagick Version: ImageMagick 6.3.7 02/18/08 Q16