Bug 431557 - Impossible to configure .jpg as default format of captured screenshot
Summary: Impossible to configure .jpg as default format of captured screenshot
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 20.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-13 17:48 UTC by chp321
Modified: 2021-01-15 09:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.12.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chp321 2021-01-13 17:48:11 UTC
SUMMARY
Capture in jpg format is impossible : always saved in png.


STEPS TO REPRODUCE
1. Open spectacle, clic on Configure, clic on Save
2. Choose .jpg as extension ; apply keeps on gray, you cannot clic on it

OBSERVED RESULT
Screenshots are always saved as png, Impossible to configure another format


EXPECTED RESULT
Want to save screenshots as .jpg as default option


SOFTWARE/OS VERSIONS
Linux 5.10.6-arch1-1 #1 SMP PREEMPT Sat, 09 Jan 2021 18:22:35 +0000 x86_64 GNU/Linux

KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-01-13 20:24:24 UTC
Works for me, in fact I use .jpg as my default file format.

Cannot reproduce the issue of the Apply button remaining disabled after changing the file format.
Comment 2 Bug Janitor Service 2021-01-13 20:54:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/47
Comment 3 Nicolas Fella 2021-01-13 21:15:15 UTC
Git commit c1df0094d924f3fafc26ea859f6c32e94b9a3f72 by Nicolas Fella.
Committed on 13/01/2021 at 20:55.
Pushed by nicolasfella into branch 'master'.

Don't translate property name

kcfg_property is a magic property used by KConfigDialog to control what property is manipulated.
In this case we want to manipulate the currentText property of the QComboBox.

Strings in UI files are getting translated by default. This results in kcfg_property containing a nonexistant property for non-english locale which breaks setting the right value of the combobox.

M  +2    -1    src/Gui/SettingsDialog/SaveOptions.ui

https://invent.kde.org/graphics/spectacle/commit/c1df0094d924f3fafc26ea859f6c32e94b9a3f72
Comment 4 Nicolas Fella 2021-01-13 21:17:12 UTC
Git commit ed60ec35b32b1860dc9722008a9a846ac0201847 by Nicolas Fella.
Committed on 13/01/2021 at 21:16.
Pushed by nicolasfella into branch 'release/20.12'.

Don't translate property name

kcfg_property is a magic property used by KConfigDialog to control what property is manipulated.
In this case we want to manipulate the currentText property of the QComboBox.

Strings in UI files are getting translated by default. This results in kcfg_property containing a nonexistant property for non-english locale which breaks setting the right value of the combobox.
(cherry picked from commit c1df0094d924f3fafc26ea859f6c32e94b9a3f72)

M  +2    -1    src/Gui/SettingsDialog/SaveOptions.ui

https://invent.kde.org/graphics/spectacle/commit/ed60ec35b32b1860dc9722008a9a846ac0201847
Comment 5 chp321 2021-01-14 00:35:27 UTC
I downgraded version of spectacle, until the bug disappeared :
20.4.1 is the last version which works fine for me, the bug comes with version 20.4.2
If this can help…
Comment 6 chp321 2021-01-15 09:45:36 UTC
I found this workaround to use last version of spectacle without the bug :
edit ~/.config/spectaclerc
add these lines :

       compressionQuality=75
       defaultSaveImageFormat=JPG