I set jpg as the default extension, but every time I get to save an image its default extension is set back to png despite of that.
STEPS TO REPRODUCE
1. Set jpg as the default image format
Png always comes out (at least on a "fresh" start of the program)
Respect the preference
(or better yet, I wonder why not just remembering the last used setting?)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Btw isn't it possible to get the jpeg quality slider in the path selection dialog?
Irfanview would do this for example.
Just ran into this same issue with my mom's computer, which was causing scanned documents to be 100MB+ PNGs instead of 1MB JPEGs. Even though Skanlite is set to save as JPEG, when the Save dialog appears, the selected format is PNG. You can change it to JPEG and it will honor that, but the default setting isn't what it should be, and a non-techie user has no idea they need to change it.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/skanlite/-/merge_requests/17
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 441223
M +55 -9 src/SaveLocation.cpp
M +5 -4 src/SaveLocation.h
M +21 -24 src/skanlite.cpp
M +0 -1 src/skanlite.h