Bug 370958

Summary: Cannot save a scanned image
Product: [Applications] digikam Reporter: Marc <marccollin7379>
Component: Plugin-Generic-DigitalScannerAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 5.2.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.3.0
Sentry Crash Report:
Attachments: image scanned with skanlite
file dialog image

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