Please decode EXIF comments according to charset

Bug #559903 reported by niol
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyexiv2
Fix Released
Medium
Olivier Tilloy

Bug Description

Hi,

Here is a preliminary patch (taken from my pet project[1]) which decodes EXIF comment according to the advertised charset. Howerver, it still needs to known the byOrder in order to decode unicode, but I need to fiddle with binding and do ont know yet how to do that. Maybe I'll give it a look in the next days.

(I had sent you an email about it about 2 years ago, but seems you did not receive it)

The patch is against de latest version 0.2.0.

Cheers,

Alex

Revision history for this message
niol (alexandre-rossi) wrote :
Revision history for this message
niol (alexandre-rossi) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for the patch!
I'll review it in depth, but from a very quick glance it looks good to me, the only missing bit would be exposing ExifData::byteOrder(), which shouldn't be too hard to do.

Changed in pyexiv2:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Alexandre, would you have a set of sample images with comments in various possible encodings (valid and invalid as well if possible)? That would help testing and implementing relevant unit tests for the functionality.

Revision history for this message
niol (alexandre-rossi) wrote : Re: [Bug 559903] Re: Please decode EXIF comments according to charset

Hi,

> Alexandre, would you have a set of sample images with comments in
> various possible encodings (valid and invalid as well if possible)? That
> would help testing and implementing relevant unit tests for the
> functionality.

Here are the ones that the bug reporter on my program initially supplied :
http://castet.matthieu.free.fr/tmp/test_exif/

Alex

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks, that’s a good basis to start experimenting with the functionality!

Olivier Tilloy (osomon)
Changed in pyexiv2:
assignee: nobody → Olivier Tilloy (osomon)
status: Confirmed → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

Important note: starting with version 0.20, libexiv2 already does the decoding of the comment itself if it’s encoded in unicode.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Implemented with revision 342 of the trunk.

Changed in pyexiv2:
milestone: none → 0.3
status: In Progress → Fix Committed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Alexandre, many thanks for the original patch on which I built to implement this functionality.

Olivier Tilloy (osomon)
Changed in pyexiv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.