Bug 505280 - Importing brush tip from clipboard does not work if the image is in a file format and not just pixel data
Summary: Importing brush tip from clipboard does not work if the image is in a file fo...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Brush engines (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-06 15:40 UTC by Lukas
Modified: 2026-09-30 10:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas 2025-06-06 15:40:11 UTC
SUMMARY
In the brush engine editor predefined window, selecting "clipboard" will open a window that says "nothing copied to clipboard", even if there is an image file (tested with PNG and TIF) copied to the clip board. 

STEPS TO REPRODUCE
1. Copy a PNG or TIF file with ctrl+C
2. Open brush editor 
3. Go to predefined tab
4. Select "clipboard" as the import mode

OBSERVED RESULT
Window says there is nothing copied to the clipboard and the save button is deactivated.

EXPECTED RESULT
It should show the PNG or TIF file in the preview window and the save button should be active, enabling you to save it as a brush tip.

SOFTWARE/OS VERSIONS
Windows: 10 Pro
Tested and observed in 5.0.6, 5.1.5, 5.2.2, 5.2.3., 5.2.4, 5.2.5, 5.2.9 and 5.3.0-prealpha-a05ebc35

ADDITIONAL INFORMATION
Only tested this with PNG and TIF files so far. The tooltip mouse-over on the "clipboard" button says "Creates a brush tip from the image in the clipboard". Either the tooltip is wrong because it needs a specific file type rather than an "image" in the clipboard, or the clipboard import does not work correctly for PNG and TIF.
Comment 1 Tiar 2026-05-27 00:39:41 UTC
It works, but in a limited way, so the report is correct (either it should work in more ways or the tooltip should be more precise). It works if you copy data from the canvas; however it doesn't work if there is a proper image file in the clipboard instead.

I would prefer if it just also accepted image files instead of only image data there (as opposed to just changing the tooltip to match the reality).

Workaround: open the file, select all, copy to clipboard, then import from clipboard.
Comment 2 Bug Janitor Service 2026-09-23 16:35:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2949
Comment 3 Dmitry Kazakov 2026-09-30 10:11:42 UTC
Fixed in https://invent.kde.org/graphics/krita/-/merge_requests/2949