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

J.Westveer jwest at melaque.com
Sun Jul 9 18:17:41 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         
           Summary: Saving large (>5M) jpg's result in corrupt file
           Product: digikam
           Version: 0.9.0-svn
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel kde org
        ReportedBy: jwest melaque com


Version:           0.9.0-svn (using KDE 3.5.3, Debian Package 4:3.5.3-1 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-1-686-smp

When working with larger jpeg files (>5M) a save, or save as operation results in a corrupt output file.  This may be me, as I am using current svn compiled on a Debian (etch) system, but it is annoying.  If I fall back to 0.8.2 the file will save correctly.  In addition the file sizes are radically different (5.9M vs 4.4M)

digicam reports this during open and save:

igikam: /home/MyPhotos/wall/PICT5785.JPG : JPEG file identified
digikam: Exif color-space tag is sRGB. Using default sRGB ICC profile.
digikam: mimetypes=image/x-portable-bitmap image/x-pcx image/x-portable-greymap image/x-xbm image/x-targa image/png image/x-portable-pixmap image/jpeg image/x-xpm image/x-eps image/x-bmp image/jp2 image/x-rgb image/tiff
digikam: Saving to :/home/MyPhotos/wall/C2bXhadigikamtempfile.tmp (jpeg)
digikam: (800x531) JPEG image preview size: 110196 bytes
digikam: Dirty: /wall
digikam: Dirty: /
digikam: renaming to /home/MyPhotos/wall/x.JPG
digikam: ImageInfo::copyItem 554 PICT5785.JPG to 554 x.JPG
digikam: Dirty: /
digikam: Dirty: /wall
digikam: Dirty: /
digikam: mimetypes=image/x-portable-bitmap image/x-pcx image/x-portable-greymap image/x-xbm image/x-targa image/png image/x-portable-pixmap image/jpeg image/x-xpm image/x-eps image/x-bmp image/jp2 image/x-rgb image/tiff
digikam: Saving to :/home/MyPhotos/wall/spPR6adigikamtempfile.tmp (jpeg)
digikam: (800x531) JPEG image preview size: 110196 bytes
digikam: Dirty: /wall
digikam: Dirty: /
digikam: Dirty: /wall
digikam: renaming to /home/MyPhotos/wall/x1.JPG
digikam: ImageInfo::copyItem 554 x.JPG to 554 x1.JPG
digikam: Dirty: /
digikam: Dirty: /wall
digikam: Dirty: /
digikam: Cannot load metadata using Exiv2 (This does not look like a JPEG image)
digikam: Found JPEGLossless plugin
digikam: Cannot load metadata using Exiv2 (This does not look like a JPEG image)
digikam: Dirty: /wall
digikam: Dirty: /



I renamed the two files good/bad, and they are available here:
 http://www.melaque.com/bad.jpg
 http://www.melaque.com/good.jpg

jpeginfo command report on both files:

jwest fysm:~$ jpeginfo good.jpg
good.jpg 3008 x 2000 24bit Exif  N 597156

jwest fysm:~$ jpeginfo bad.jpg
bad.jpg  Corrupt JPEG data: 65519 extraneous bytes before marker 0xd9  JPEG datastream contains no image  [ERROR]


Apologies for not knowing how to debug this further.  
Thanks for any assistance.

jjw



More information about the Digikam-devel mailing list