https://bugs.kde.org/show_bug.cgi?id=485815

Noah Davis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Noah Davis <[email protected]> ---
If you are copying image *files*, you should already be able do this by
matching with the file URL.
This is because copying local files actually copies "file://" URLs.
For common raster formats:
^file://.*\.(avif|bmp|gif|heif|jpe?g|jxl|png|tif|webp)$
For PDFs: ^file://.*\.pdf$
For SVGs: ^file://.*\.svg$

Handling raw image data would be trickier and I'm not sure if it's worth doing.
It might be possible by matching with the URL of the image file that Klipper
uses for cross-session storage. Klipper would need to automatically provide a
URL with an appropriate file name suffix when nothing else is usable. Without a
file URL, it might be too slow since we'd have to pipe the raw image data to
whatever command you are using.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to