[Digikam-devel] [Bug 130525] Saving large (>5M) jpg's result in corrupt file
Gilles Caulier
caulier.gilles at free.fr
Tue Jul 18 08:26:16 BST 2006
------- 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=130525
------- Additional Comments From caulier.gilles free fr 2006-07-18 09:26 -------
SVN commit 563680 by cgilles:
digikam from trunk : missing to disable temporally IPTC preview record during download from camera to prevent broken JPEG image if autorotation is used.
Marcel, we need to unforget to fix this part too when a right solution will be found.
CCBUGS: 130525
M +7 -1 exifrotate.cpp
--- trunk/extragear/graphics/digikam/libs/jpegutils/exifrotate.cpp #563679:563680
@ -230,7 +230,13 @
// Update the image preview.
QImage preview = img.scale(800, 600, QImage::ScaleMin);
- metaData.setImagePreview(preview);
+
+ // TODO: see B.K.O #130525. The a JPEG segment is limited to 64K. If IPTC byte array
+ // bigger than 64K duing of image preview tag size, the target JPEG image will be
+ // broken. Note that IPTC image preview tag is limited to 256K!!!
+ // Temp. solution to disable IPTC preview record in JPEG file until a right solution
+ // will be found into Exiv2.
+ // metaData.setImagePreview(preview);
// Update the image thumbnail.
QImage thumb = preview.scale(160, 120, QImage::ScaleMin);
More information about the Digikam-devel
mailing list