[Digikam-devel] [Bug 130525] Saving large (>5M) jpg's result in corrupt file
marcel.wiesweg at gmx.de
Sat Jul 15 16:10:16 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
------- Additional Comments From marcel.wiesweg gmx de 2006-07-15 17:10 -------
As I understand this, there is a bug in libexiv2 because it does not check the size, but that's a minor problem, it is digikam's responsibility to check the size of the preview. Even if libexiv2 is fixed, digikam still needs to make sure that if the image is a JPEG, the preview may not be larger than 64k.
DMetadata does not know the image format, so the limit needs to be passed to the setImagePreview() method. This method is called from DImgInterface, which knows the file format.
For other formats, PNG, TIFF, the size is not limited?
More information about the Digikam-devel