Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-18 Thread Alexandre Rossi
Hi, But there a problem for IMG_0870_exiftool_usercomment_unicode.JPG : the exif is in big endian format. And it this case it seems it is UTF-16BE that should be used. Thanks a lot, this should be okay for your examples now. Also the .strip('\0') is finaly not correct : it is what eat the

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-18 Thread castet . matthieu
Quoting Alexandre Rossi [EMAIL PROTECTED]: Hi, But there a problem for IMG_0870_exiftool_usercomment_unicode.JPG : the exif is in big endian format. And it this case it seems it is UTF-16BE that should be used. Thanks a lot, this should be okay for your examples now. Not really, I

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-18 Thread matthieu castet
[EMAIL PROTECTED] wrote: Quoting Alexandre Rossi [EMAIL PROTECTED]: Hi, But there a problem for IMG_0870_exiftool_usercomment_unicode.JPG : the exif is in big endian format. And it this case it seems it is UTF-16BE that should be used. Thanks a lot, this should be okay for your examples

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-18 Thread Alexandre Rossi
Waiting for a cleaner solution, a quick hack could be to use im.app['APP1'][6:8]. I attach a patch that does that. Thanks a lot, applied for the next version. Alex -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-17 Thread Michal Čihař
Hi On Sat, 14 Jun 2008 19:37:17 +0200 matthieu castet [EMAIL PROTECTED] 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

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-17 Thread Alexandre Rossi
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

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-17 Thread matthieu castet
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

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-17 Thread Alexandre Rossi
Hi, 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.

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-17 Thread matthieu castet
Alexandre Rossi wrote: Hi, Okay all is good now, I can build an album with all your pictures. This is fixed for the next version. Thanks. I tried the darcs version and it works. But there a problem for IMG_0870_exiftool_usercomment_unicode.JPG : the exif is in big endian format. And it

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-14 Thread matthieu castet
Hi, Michal Čihař wrote: Hi Dne Sun, 08 Jun 2008 22:30:33 +0200 matthieu castet [EMAIL PROTECTED] napsal(a): my camera (canon a710) generate empty exif comment tag, by filling it with 255 0. This should be to allow the modify it without rewritting all the exif metadata. But python exif

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-08 Thread matthieu castet
Package: lazygal Version: 0.3.1-3 Severity: normal Hi, my camera (canon a710) generate empty exif comment tag, by filling it with 255 0. This should be to allow the modify it without rewritting all the exif metadata. But python exif library or lazygal doesn't strip these null caracter in the

Bug#485286: lazygal: EXIF comment tag fill with 0

2008-06-08 Thread Michal Čihař
Hi Dne Sun, 08 Jun 2008 22:30:33 +0200 matthieu castet [EMAIL PROTECTED] napsal(a): my camera (canon a710) generate empty exif comment tag, by filling it with 255 0. This should be to allow the modify it without rewritting all the exif metadata. But python exif library or lazygal