[Digikam-devel] [Bug 130525] Saving large (>5M) jpg's result in corrupt file

Gilles Caulier caulier.gilles at free.fr
Tue Jul 11 13:01:10 BST 2006

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

------- Additional Comments From caulier.gilles free fr  2006-07-11 14:01 -------

digiKam work like this :

- In editor, all image data/metadata are stored in memory using a DImg class instance. 


- To save into a new JPEG file, a JEPGLoader::save() is called :


JPEG image loader is derivated from generic DimgLoader loader class (a friend of DImg) :


- The JPEG Loader is simple and do not store the metadata in the new file. It create the the new and store the image data and the icc profile. The file is closed and the DImgLoader::saveMetadata() method is called to store Exif and IPTC (look at end of JPEGLoader::save() method.

- In fact the metadata are stored using Exiv2, by the famous DMetadata class (:=))). Do you remember ?


I suspect a problem in DImgLoader::saveMetadata() calling DMetadata methods. Your viewpoint ?


More information about the Digikam-devel mailing list