[mythtv] [PATCH included] Exif tags: orientation is not always in English
Emmanuel
eallaud at gmail.com
Sun May 23 19:34:28 UTC 2010
Emmanuel a écrit :
> Hi all,
> I stumbled across this when using mythgallery: some pictures were not
> correctly displayed, they were turned 90 degrees on the left or on the
> right. It turned out that this is because my reflex puts the exif
> orientation tag in french! So the code in galleryutil.cpp is called
> but always returns 0 degree angle as it checks only against "left -
> bottom" not "gauche - bas".
> I could check code from other projects to see how this is handled and
> try to come up with a patch if people think this is of interest. We
> can at least now warn people using localized cameras.
> Bye
> Manu
Here is a patch (against trunk) that uses libexif to retrieve the
natural orientation in short integer format so we avoid the locale
problem altogether. I'd be happy to put that on trac if needed, but it
is so small... Let me know.
Bye
Manu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythgallery-orientation.diff
Type: text/x-patch
Size: 2339 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20100523/2c3e6a35/attachment.bin>
More information about the mythtv-dev
mailing list