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