Bug 208107 - corrupted image when saving a scan
Summary: corrupted image when saving a scan
Status: RESOLVED FIXED
Alias: None
Product: libksane
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kåre Särs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-21 20:20 UTC by Emmanuel Touzery
Modified: 2015-09-17 09:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Touzery 2009-09-21 20:20:08 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    Ubuntu Packages

when attempting to scan images from gwenview (plugins->import->scan images), the preview looks perfectly fine, however when I'm actually scanning and saving the image is corrupted.
This happens both when saving to PNG and JPG.

If I scan the same image with xsane there is no problem.

The problem occurs whether I scan the full page or a selection.

This is a bearpaw 1200 CU scanner.

I'll attach an example of corrupted picture created by this software.
Comment 1 Emmanuel Touzery 2009-09-21 20:25:19 UTC
well the image is too big for the KDE bugzilla but I also previously created an ubuntu bug for this...

so here's the image from the ubuntu bugzilla:
http://launchpadlibrarian.net/32079442/gwenview-150.jpg

the ubuntu bug is otherwise:
https://bugs.launchpad.net/ubuntu/+source/kipi-plugins/+bug/433188
Comment 2 caulier.gilles 2009-09-22 06:15:10 UTC
witch kipi-plugins and libksane you use ?

gilles caulier
Comment 3 Kåre Särs 2009-09-22 06:27:59 UTC
I think I know the reason. I'll take a look at it tonight.
Comment 4 Emmanuel Touzery 2009-09-22 07:21:36 UTC
I'm using ubuntu karmic so the versions are:

libksane0 (4:4.3.1-0ubuntu1) 
kipi-plugins (0.5.0-1ubuntu1)
Comment 5 Kåre Särs 2009-09-22 22:13:29 UTC
SVN commit 1026910 by sars:

Revert commit 998596: "Fix crash when saving images in .tiff format"
998596 broke saving 8bit color images.

This should fix 208107 "corrupted image when saving a scan" and has should not break 200558 again as there was another fix for that.

I can now save 8 and 16 bit PNG, and 8 bitt TIFF, but the 16bit TIFFs are corrupted.

BUG:208107
CCBUG:200558

 M  +5 -6      scandialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1026910