Page 1 of 1

auto-orient fails

Posted: 2008-08-22T04:45:47-07:00
by Oliver
I seem to have a problem with IM's auto-orient option: it doesn't auto-orient the images according to the EXIF-data.

I have >300 jpgs I would like to make thumbnails of, so I use the script:

Code: Select all

for file in *.jpg
 do convert -auto-orient -thumbnail x180 "$file" thumb-"$file"
 done 
Pictures are taken with a Canon EOS 450D. The Gimp recognises the EXIF-orientation flags, because it starts with a prompt about the orientation.

Operating system is Ubuntu 8.04 (Hardy Heron). Have tried both on a 32-bit system as well as 64-bit system (not that this would matter, but I did test it on both machines). Both run 8.04.
Running ImageMagick from the repository:
>$ convert -version
Version: ImageMagick 6.3.7 02/19/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

I currently have no webserver where I can upload some of the pictures for testing purposes, so if they are needed, I'll probably pass them through PM.

Do you have any ideas as to what is causing this?

Re: auto-orient fails

Posted: 2008-08-22T06:03:13-07:00
by magick
Post a PM with 2 or 3 images we can download and inspect. We will determine if or why ImageMagick is failing to pick up the EXIF orientation flag.

Re: auto-orient fails

Posted: 2008-08-23T04:12:26-07:00
by Oliver
A friend of mine was kind enough to upload three of them:
http://www.cliqx.be/img_0169.jpg
http://www.cliqx.be/img_0065.jpg
http://www.cliqx.be/img_0059.jpg

In the mean time I've also tested the script with another version of ImageMagick. Another friend had ImageMagick version 6.3.8, running on a Gentoo system. The script worked flawlessly.

Thanks in advance.

Re: auto-orient fails

Posted: 2008-08-23T08:37:11-07:00
by magick
Your images oriented properly with the current release of ImageMagick, 6.4.3-3. Looks like the auto-orient option is broken in ImageMagick 6.3.7.

Re: auto-orient fails

Posted: 2008-08-23T13:32:40-07:00
by Oliver
Thanks for the check-up. I'll install from source.

Very nice software, by the way. I'm impressed with the amount of (regularly used) options. :)