Bug 150629 - snapshots saved as JPEG are broken
Summary: snapshots saved as JPEG are broken
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kimgio (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-09 17:05 UTC by Ralf Weyer
Modified: 2008-02-05 22:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Weyer 2007-10-09 17:05:32 UTC
Version:           0.7 (using KDE 3.5.7, Kubuntu (gutsy) 4:3.5.7-1ubuntu15)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.22-13-generic

I'm using Kubuntu Gutsy with the latest updates. I can create a snapshot and save it in different formats (tried JPEG and PNG). PNG works without any problems, but when I save the snapshot as JPEG-file and try to open it with Gimp, I receive the error message "Image resolution is out of bounds, using the default resolution instead."

I filed a the bugreport http://bugzilla.gnome.org/show_bug.cgi?id=485021, and as you can see received the answer, that the JPEG-file is broken. Tried it several times, but without any success. As mentioned before, saving the snapshot as PNG works without any error message when I open the picture in Gimp.

Best regards,

Ralf
Comment 1 Ady Mulianto 2007-12-04 19:51:07 UTC
Yes, i have the same problem here with KDE 3.5.8 on Debian GNU/Linux with kernel 2.6.22. The image is still can open without any problems but, when i try to resample it using PHP image library, the result is black image and error message telling that the image is not valid jpeg image. 
Comment 2 Richard Moore 2008-01-30 23:10:35 UTC
This would be a problem with kimgio not ksnapshot.
Comment 3 Tobias Koenig 2008-01-31 08:51:23 UTC
On Wed, Jan 30, 2008 at 10:10:36PM -0000, Richard Moore wrote:
Hej,

> This would be a problem with kimgio not ksnapshot.

AFAIKS we have no KImageIO plugin for JPEG, but use the one from Qt.
Is it really a JPEG file or a JPEG 2000? What does 'file img.jpeg' say?

Ciao,
Tobias
Comment 4 Ady Mulianto 2008-01-31 10:58:28 UTC
It says: JPEG image data, JFIF standard 1.01

Tobias "K���������������������" wrote:
[bugs.kde.org quoted mail]
Comment 5 Tobias Koenig 2008-02-05 22:04:17 UTC
Hej,

I tested it with KDE 3.5.8 and I can't reproduce the bug. As already mentioned KDE doesn't
provide a KImageIO plugin for JPEG itself but rather use the one provided by Qt.
So maybe your Qt installation is broken... Qt can use the libjpeg from your system or the
one which is shipped with Qt. Maybe there is a problem...

Ciao,
Tobias