Bug 483450

Summary: Ability to autocrop screenshots for removing edges that have all of it's pixels of the same color value.
Product: [Applications] Spectacle Reporter: BryanFRitt <BryanFRitt>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: wishlist CC: kde
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description BryanFRitt 2024-03-13 15:20:25 UTC
It would be nice if Spectacle had the built in capability to auto-crop images. That is, if all pixels of an outer edge have the same color value, crop the edge. Doing this would save space, and focus more on what matters in image screenshots.

This can be currently be done by exporting the screenshot to `KolourPaint` then going to 'Image ' > 'Autocrop'. It would be nice to be able to bypass this exporting to KolourPaint step, and simply click a button in Spectale to do this. Maybe an 'Autocrop' button, or an 'Autocrop' option in 'Tools', as well as an option to 'Autocrop' automatically upon taking a screenshot.

Feels like this could have a better name than 'Autocrop'. Could something like 'auto border removal', 'de-boarder' be a better name?

Similar this one for Gwenview
https://bugs.kde.org/show_bug.cgi?id=271271
Comment 1 Noah Davis 2024-03-13 16:57:06 UTC
It's an interesting idea. Cropping isn't outside the realm of what Spectacle should be able to do, but I'm not sure how auto cropping should be handled in the UI at this time. I don't think Spectacle should turn into a featureful image editor since there are already specialized apps that would do that job better without duplicating effort. I want to keep Spectacle's UI fairly clean and focused on capturing the screen with only light modifications before exiting the app. I'm not going to mark this as confirmed (to me, confirmed means we should do something), but I'll say maybe we could do this.