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

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Jul 16 21:24:31 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-16 22:24 -------
Created an attachment (id=17010)
 --> (http://bugs.kde.org/attachment.cgi?id=17010&action=view)
patch to adapt preview size

Inspired by the patch from Florencio, this patch adapts the preview file size
if the image is a JPEG and if the 64k limit is exceeded.

It trades off size and/or quality and makes five attempts at reaching the
limit. The exact parameters may be tuned, I am currently unsure which preview
sizes and which quality factors are still acceptable.
A quality of 0 is not acceptable btw, I tried that and the whole image is a
block artefact. I would prefer to downsize the preview then a bit.

Even if libexiv2 is fixed in the future, it will simply throw an exception, I
think we still need to do something like this if we really want to embed a

More information about the Digikam-devel mailing list