[Digikam-devel] [Bug 286611] Tags are losts (randomly) when converting Tiff to Png

Andreas Huggel ahuggel at gmx.net
Sat Mar 3 10:46:07 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=286611

--- Comment #23 from Andreas Huggel <ahuggel at gmx.net> ---
(In reply to comment #21)
> The temp file created by exiv2 at the point this error occurs is identical
> to the original file (same tags) but there is a 0 byte file with the old
> name.
> 
> For instance, if I tag a face in IMG_1679.jpg and switch to a new image
> quickly, the drive then has IMG_1679.jpg and IMG_1679.jpg4744, where
> IMG_1679.jpg is 0 bytes in size and IMG_1679.jpg4744 is identical to the
> original, untagged image. At this point digiKam shows a placeholder for
> IMG_1679.jpg, and renaming IMG_1679.jpg4744 to IMG_1679.jpg restores it in
> digiKam as expected, albeit with no face tag since it was identical to the
> original untagged image.

The 0-byte original file is probably an Exiv2 side-effect. You can confirm that
with the current Exiv2 trunk (binary compatible with 0.22), which should leave
the original file unharmed. (See http://dev.exiv2.org/issues/812 for details)
However, I can't quite imagine right now why Exiv2 would write a temporary file
which is identical to the original.
Another way to confirm that these files are from Exiv2 is by simply recompiling
it with a larger value for the threshold above which a temporary is created
(look for "1MB" in basicio.cpp). If you set that to a value greater than the
sizes of your images, no temporary files will be created anymore.

-ahu.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list