Bug 510585

Summary: Add an option to use optipng/jpegoptim when creating png or jpeg files
Product: [Applications] Spectacle Reporter: Alexandre Bonneau <alexandre.bonneau>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: wishlist CC: kde, nate
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexandre Bonneau 2025-10-14 07:09:18 UTC
SUMMARY
When using Spectacle to create a screenshot, and saving it into PNG, I found that using afterward the 'optipng' program on the generated PNG always reduce the file size quite a bit (without affecting the quality).

When creating jpeg files, jpegoptim also reduce the overall size of the generated jpeg, without too much quality loss.

Could it be possible for Spectacle to automatically use such optimization program if present on the system, and if checked (by default, do not check that option, so that on low hardware computers, saving a file does not take too much time) ?
Comment 1 Nate Graham 2025-10-14 16:05:16 UTC
In principle this would be pretty cool.