Bug 501210 - Screenshot should include annotations outside the crop area
Summary: Screenshot should include annotations outside the crop area
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: git-master
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-08 02:36 UTC by Jin Liu
Modified: 2025-03-12 18:29 UTC (History)
2 users (show)

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


Attachments
step (115.29 KB, image/jpeg)
2025-03-12 01:07 UTC, Jin Liu
Details
expected (317.46 KB, image/png)
2025-03-12 01:07 UTC, Jin Liu
Details
actual (160.29 KB, image/png)
2025-03-12 01:08 UTC, Jin Liu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Liu 2025-03-08 02:36:47 UTC
SUMMARY

I usually want to crop a screen area and annotate outside it. But currently, only annotations inside the crop area are saved. So I have to add annotations later in Gwenview.

(Gwenview allows annotating outside the picture, while Spectacle's "viewer" doesn't.)

It would be good if:

a) The screenshot would automatically resize to include all annotations, including those outside the crop area.
b) And/or, a second bounds box is available, so the user can manually resize the screenshot to include annotations.

Problems:
What would be the background color for margins outside the crop area? Maybe a new option?
Comment 1 Nate Graham 2025-03-11 21:49:36 UTC
Hmm, can you clarify exactly what you're doing here? Maybe with steps to reproduce?
Comment 2 Jin Liu 2025-03-12 01:07:27 UTC
Created attachment 179325 [details]
step
Comment 3 Jin Liu 2025-03-12 01:07:45 UTC
Created attachment 179326 [details]
expected
Comment 4 Jin Liu 2025-03-12 01:08:02 UTC
Created attachment 179327 [details]
actual
Comment 5 Jin Liu 2025-03-12 01:12:46 UTC
(In reply to Nate Graham from comment #1)
> Hmm, can you clarify exactly what you're doing here? Maybe with steps to
> reproduce?

See the attachment "step" for what I did: selected a window, annotated outside, and pressed "Save".

See the attachment "expected" for what I expected (which I actually made a snapshot first, then annotated in Gwenview, which allows me to annotate outside the image).

See the attachment "actual" for what Spectacle actually saved: I don't expect my annotations to be cropped out.
Comment 6 Nate Graham 2025-03-12 17:58:01 UTC
I see now, thanks. But if you want the entire annotation to be included in the resulting image, why not crop differently so that it's included? That's what I do when I have this use case.
Comment 7 Noah Davis 2025-03-12 18:29:05 UTC
FWIW, pre-23.04 Spectacle did have the ability to expand the final image to contain annotations. The area outside the screenshot was just a blank canvas. The new version doesn't because it was a bit too much work to implement along with the rest of the changes.