Bug 361640 - Option to default to JPG on save & exit
Summary: Option to default to JPG on save & exit
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-11 19:56 UTC by Janet
Modified: 2017-02-20 18:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 17.04
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janet 2016-04-11 19:56:16 UTC
Can you please add an option to have JPG as the default save format? When I hit save & exit it always saves as PNG. 99% of my screenshots are for showing in a forum or the like and PNG is too huge - so I always have to convert the file after taking the screenshot. More comportable would be if one could choose to default to a certain format, either JPG or PNG (of course keeping the option to use the other format when you don't use save & exit but save as). I don't use PNG at all for screenshots because of the file size, others won't use JPG because of the quality. It depends on the use case.

Reproducible: Always
Comment 1 Boudhayan Gupta 2016-04-11 20:26:04 UTC
I can see that this is a valid use-case.

Unfortunately it's too late to do such a feature for the 16.04 release because the release candidates have already been tagged. I'm going to target this for the 16.10 release.
Comment 2 Janet 2016-04-11 20:32:52 UTC
Thanks :)
Comment 3 Joshua Mendoza 2017-01-21 07:27:01 UTC
(In reply to Boudhayan Gupta from comment #1)
> I can see that this is a valid use-case.
> 
> Unfortunately it's too late to do such a feature for the 16.04 release
> because the release candidates have already been tagged. I'm going to target
> this for the 16.10 release.

Long time has been passed since Janet pointed out the need to use a different default format than PNG while saving screenshots.

Is it still on the roadmap to enable end users to change that default?

Alternatively, I took a look to the sources and I can tell that it's using PNG because it's hardcoded during image encoding, but changed afterwards when it is saved and the mime type is extracted from the URL provided. If you may instruct me how can I contribute, I'd like to give it a try and send a PR.
Comment 4 Boudhayan Gupta 2017-02-20 18:20:43 UTC
Git commit c09e2a574d0248201e9e1638d252dbb624fec56a by Boudhayan Gupta.
Committed on 20/02/2017 at 18:10.
Pushed by bgupta into branch 'master'.

Allow use of alternative user-configured image format when auto-saving.

A new drop-down selection box is now available beside the filenamae
format box in the Save Options page in the Preferences.

This was a long-requested feature, apologies for the length of time
it took for me to get around to doing this.

M  +3    -2    src/ExportManager.cpp
M  +39   -4    src/Gui/SettingsDialog/SaveOptionsPage.cpp
M  +2    -0    src/Gui/SettingsDialog/SaveOptionsPage.h
M  +14   -0    src/SpectacleConfig.cpp
M  +3    -0    src/SpectacleConfig.h

https://commits.kde.org/spectacle/c09e2a574d0248201e9e1638d252dbb624fec56a