Bug 441223

Summary: Presetting of "jpg" is ignored while scanning
Product: [Applications] Skanlite Reporter: Matthias Hermanns <matthias.hermanns>
Component: generalAssignee: Kåre Särs <kare.sars>
Status: RESOLVED FIXED    
Severity: normal CC: adrianomarto, nate
Priority: NOR    
Version: 2.1.0.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matthias Hermanns 2021-08-20 09:26:03 UTC
SUMMARY

STEPS TO REPRODUCE
1. Set settings "Name & Format" to "jpg" -> value is changed correctly

OBSERVED RESULT
2. But while scanning skanlite offers always "png" again, that proposition has to be changed every time manually to "jpeg"
3. The bug van be reproduced on other computers

EXPECTED RESULT
4. Skanlite should suggest to save the file as a "jpg"-media type, as indicated in the settings.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Perhaps there is a confusion between "jpg" and "jpeg" in the programming?
Comment 1 Bug Janitor Service 2021-09-08 14:29:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/skanlite/-/merge_requests/17
Comment 2 Alexander Stippich 2021-09-09 17:37:38 UTC
Git commit 2bcd0daf6ab65a62d5d121efddd0acac50f3242b by Alexander Stippich.
Committed on 09/09/2021 at 17:36.
Pushed by astippich into branch 'master'.

fix preselecting the image format
with the one from the settings dialog.
image/+fileSuffix does not always correspond to the mimetype
Related: bug 419274

M  +55   -9    src/SaveLocation.cpp
M  +5    -4    src/SaveLocation.h
M  +21   -24   src/skanlite.cpp
M  +0    -1    src/skanlite.h

https://invent.kde.org/graphics/skanlite/commit/2bcd0daf6ab65a62d5d121efddd0acac50f3242b
Comment 3 Alexander Stippich 2021-10-30 08:54:09 UTC
*** Bug 444570 has been marked as a duplicate of this bug. ***