Hi,
Thanks for your tool and your support.
Alexandre Rossi wrote:
There is more problem with exif comment : the string can be not ascii.
The first character of the string indicate the charset [1], it should be
parsed and removed of the final string.
In order genshi template works we need to convert the string to unicode [2].
[1] charset="Unicode" Marseille : CathÃ(c)drale Sainte-Marie-Majeure
[2]
http://genshi.edgewall.org/wiki/GenshiFaq#WhydoesGenshiraiseaUnicodeDecodeErrorwhenItrytorendernon-ASCIIstrings
PS : lazygal don't support old exif comment Exif.Image.ImageDescription
http://www.exiv2.org/tags.html
Can you please send me some sample image with both these problems?
Yes this would be nice, as I've been struggling to generate test
material for the fix I've been working on (first problem only,
UserComment encoding).
I use http://www.sno.phy.queensu.ca/~phil/exiftool/ to edit exif.
I put some test case on http://castet.matthieu.free.fr/tmp/test_exif/.
IMG_0870_exiftool_jpeg_comment_unicode.JPG doesn't work. As your link
said it seem to be utf-8.
IMG_0870_exiftool_image_description.JPG doesn't work. Reading
self.get_exif_string('Exif.Image.ImageDescription') should fix it.
IMG_0870_exiftool_usercomment_unicode.JPG doesn't work on my machine. It
seems python-exiv2 already does some conversion...
Matthieu
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]