convert -auto-orient not working for some images...
Posted: 2009-08-29T15:54:09-07:00
I've got an image from a Canon PowerShot SD790 IS that doesn't work with convert -auto-orient but I'm not sure if it's a bug or user head alignment error. I'm running 6.5.3-7 on Mac OS X.
I'm testing with two images: problem.jpg and works.jpg. problem is the one that causes the problem and works, well, works.
http://www.pelago.com/media/2009/08/problem.jpg
http://www.pelago.com/media/2009/08/works.jpg
using identify -format '%[exif:orientation]' I get:
6 for problem.jpg
8 for works.jpg
I run convert <image> -auto-orient auto-<image> to rotate them and produce auto-problem.jpg and auto-works.jpg
http://www.pelago.com/media/2009/08/auto-problem.jpg
http://www.pelago.com/media/2009/08/auto-works.jpg
using identify -format '%[exif:orientatin]' I get:
1 for auto-problem.jpg
1 for auto-works.jpg
Going deeper and using identify -verbose <image> | grep 'Orientation' I get:
auto-problem.jpg:
Orientation: TopLeft
exif:Orientation: 1
tiff:Orientation: 6
auto-works.jpg:
Orientation: TopLeft
exif:Orientation: 1
I'm wondering if there's a problem with -auto-orient if there's orientation in the XMP. Same results all around if I add '-strip' to the convert command.
Any suggestions? Should I file a bug?
JEff
I'm testing with two images: problem.jpg and works.jpg. problem is the one that causes the problem and works, well, works.
http://www.pelago.com/media/2009/08/problem.jpg
http://www.pelago.com/media/2009/08/works.jpg
using identify -format '%[exif:orientation]' I get:
6 for problem.jpg
8 for works.jpg
I run convert <image> -auto-orient auto-<image> to rotate them and produce auto-problem.jpg and auto-works.jpg
http://www.pelago.com/media/2009/08/auto-problem.jpg
http://www.pelago.com/media/2009/08/auto-works.jpg
using identify -format '%[exif:orientatin]' I get:
1 for auto-problem.jpg
1 for auto-works.jpg
Going deeper and using identify -verbose <image> | grep 'Orientation' I get:
auto-problem.jpg:
Orientation: TopLeft
exif:Orientation: 1
tiff:Orientation: 6
auto-works.jpg:
Orientation: TopLeft
exif:Orientation: 1
I'm wondering if there's a problem with -auto-orient if there's orientation in the XMP. Same results all around if I add '-strip' to the convert command.
Any suggestions? Should I file a bug?
JEff