[Kde-imaging] [Bug 144604] Rotation causes Exif data corruption

Gilles Caulier caulier.gilles at gmail.com
Thu Apr 26 08:23:44 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=144604         




------- Additional Comments From caulier.gilles gmail com  2007-04-26 08:23 -------
Andreas,

I have take a look into libkexiv2 and Exiv2 source code, and i think than the problem come from Exiv2. Let's me explain why :

- in libkexiv2, nothing special is done. The rotation tool set the tags values as well without force to use a tag format. All is delegate to Exiv2.

- in Exiv2::tags.cpp, the "Exif.Photo.PixelXDimension", "Exif.Photo.PixelYDimension", "Exif.Image.ImageWidth", and "Exif.Image.ImageLength" tags are define like "Unsigned Long" not "Long", and this is the problem. Like Isac said, the Exif spec. (http://www.exif.org/Exif2-2.PDF page 23, 26, 27) must be "Long", not "Unsigned Long".

Fixing it into Exiv2 is a 5 minutes job (:=)))...

Gilles


More information about the Kde-imaging mailing list