auto-orient fails

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Oliver

auto-orient fails

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: auto-orient fails

Post 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.
Oliver

Re: auto-orient fails

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: auto-orient fails

Post 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.
Oliver

Re: auto-orient fails

Post 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. :)
Post Reply