Bug 166391 - [SCREENSHOT] Screenshot should have a copy image button to clipboard
Summary: [SCREENSHOT] Screenshot should have a copy image button to clipboard
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Olivier Hallot
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Screenshot
  Show dependency treegraph
 
Reported: 2025-04-29 12:43 UTC by Olivier Hallot
Modified: 2025-09-26 14:18 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2025-04-29 12:43:57 UTC
Description:
Internal screesshot feature cannot copy image to clipboard. 

Steps to Reproduce:
1.Enable screenshot feature in expert configuration
2.Take a screenshot of a dialog


Actual Results:
You can only save the screenshot image as a PNG file.

Expected Results:
Besides saving the screenshot as a PNG file, let it be copied to the clipboard to past in a document.


Reproducible: Always


User Profile Reset: No

Additional Info:
Add a button to copy image to the clipboard.
Comment 1 Olivier Hallot 2025-05-02 19:27:27 UTC
Partial patch submitted.

https://gerrit.libreoffice.org/c/core/+/184907

Need to code a way to copy the bitmap object to the clipboard.
Comment 2 Heiko Tietze 2025-05-05 07:44:40 UTC
Maybe you find inspiration how CopyAnyData() is implemented for SotClipboardFormatId::BITMAP.
Comment 3 Commit Notification 2025-09-22 10:58:03 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/70c7f6ba49cfc506fc47dac32af98976ecf33cf8

tdf#166391 Add Copy Image button to screenshot dialog.

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.