Bug 370958 - Cannot save a scanned image
Summary: Cannot save a scanned image
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-DigitalScanner (show other bugs)
Version: 5.2.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 14:56 UTC by Marc
Modified: 2016-10-17 16:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.0


Attachments
image scanned with skanlite (357.96 KB, image/png)
2016-10-16 15:06 UTC, Marc
Details
file dialog image (63.74 KB, image/png)
2016-10-16 16:02 UTC, Marc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 2016-10-16 14:56:21 UTC
I try to import an image via the scann, i use the entry in the file entry menu.

After the image is scanner, i save the image but  i get an error: jpg image format is not supported... same thing with png

Reproducible: Always

Steps to Reproduce:
1. click on import scanned image
2. scan image
3. save image

Actual Results:  
Error about the image format is not supported

Expected Results:  
Image shoud be saved
Comment 1 Marc 2016-10-16 15:06:10 UTC
strangely, if i pass directly by skanLite, i can save the image but the image is not good
Comment 2 Marc 2016-10-16 15:06:46 UTC
Created attachment 101588 [details]
image scanned with skanlite
Comment 3 caulier.gilles 2016-10-16 15:07:15 UTC
Work perfectly here. What do you use exactly as settings in file save dialog ?

Gilles Caulier
Comment 4 Marc 2016-10-16 16:02:51 UTC
Created attachment 101590 [details]
file dialog image
Comment 5 Marc 2016-10-16 16:03:37 UTC
tried to put a value in filter but get same result.
Comment 6 Maik Qualmann 2016-10-16 18:31:46 UTC
I can reproduce the problem. QImageWriter::supportedImageFormats()  returns here a list with lower case formats. I will fix it.

Maik
Comment 7 Maik Qualmann 2016-10-17 16:49:15 UTC
Git commit ee135ae9693b8bc015ee60401b643bcc5f9d281f by Maik Qualmann.
Committed on 17/10/2016 at 16:47.
Pushed by mqualmann into branch 'master'.

fix supported image formats and fix converting scanned image data to DImg
FIXED-IN: 5.3.0

M  +2    -1    NEWS
M  +79   -20   utilities/kdesupport/ksane/saveimgthread.cpp
M  +8    -9    utilities/kdesupport/ksane/scandialog.cpp

http://commits.kde.org/digikam/ee135ae9693b8bc015ee60401b643bcc5f9d281f