Bug 253876 - Saving scanned grayscale image fails for some formats (png, tif)
Summary: Saving scanned grayscale image fails for some formats (png, tif)
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: 2010-10-11 20:57 UTC by Johannes Midgren
Modified: 2021-12-19 16:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Image scanned using Gray scan mode, 8 bit/pixel, 300dpi - saved in png format (338.84 KB, image/png)
2010-10-11 20:57 UTC, Johannes Midgren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Midgren 2010-10-11 20:57:57 UTC
Created attachment 52422 [details]
Image scanned using Gray scan mode, 8 bit/pixel, 300dpi - saved in png format

Version:           1.4.0 (using KDE 4.5.1) 
OS:                Linux

Opening an image acquired with AcquireImage using "Gray" scan mode shows an image of correct size but with transparent pixels only. 

This happens for (at least) png and tif image file formats.
jpeg and xpm have also been tested and works fine. 

Reproducible: Always

Steps to Reproduce:
* Open AcquireImages
* Set "Scan mode" to "Gray" (resolution does not seem to matter)
(* Preview and select scan area)
* Scan
* Save the image in png or tif format

Actual Results:  
* Try to open the saved image using e.g. gwenview or gimp
* The image file is opened but shown as sole background (all pixels seem to be transparent)

Expected Results:  
* The grayscale image is shown similar to the one in the preview window of AcquireImage

OS: Linux (i686) release 2.6.32-24-generic
Compiler: cc


Scanning in "Color" mode works fine with the same scanner and image formats as listed above.

Some other image file formats work fine, e.g. jpeg and xpm (both color and gray scan modes)

Scanner used: "Canon CanoScan N 650U"
Comment 1 Justin Zobel 2021-03-10 00:12:44 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 2 Alexander Stippich 2021-12-19 16:48:22 UTC
Don't know if this is really relevant since AcquireImage does not exist anymore: This has been reworked during KDE Gear 21.08 for KSaneWidget/Skanlite and should be fixed. If the issue persists, please reopen