tkzv Tux's lil' helper
Joined: 22 Aug 2014 Posts: 90
|
Posted: Sun Oct 06, 2024 12:17 pm Post subject: Getting images from Firefox clipboard |
|
|
When I copy a screenshot from Firefox, the following types are reported:
Code: | $ xclip -out -selection clipboard -t TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
image/png
image/jpeg
image/bmp
image/x-bmp
image/x-MS-bmp
image/x-icon
image/x-ico
image/x-win-bitmap
image/vnd.microsoft.icon
application/ico
image/ico
image/icon
text/ico
image/jxl
image/tiff |
But when I try to copy to a file anything other than image/png, image/jpeg, image/bmp, image/x-bmp, image/x-MS-bmp, I get an error:
Code: | $ xclip -out -selection clipboard -verbose -t image/x-win-bitmap > img4.bmp
Connected to X server.
Using selection: XA_CLIPBOARD
Using image/x-win-bitmap.
Error: target image/x-win-bitmap not available |
The ones I can't get are: TIFF, JPEG XL, MS Windows Icon and what seems to be another MIME type for BMP.
What is the problem? Was Firefox built without some libraries?
www-client/firefox-115.12.0(esr)
Latest binary Firefox 131.0 from https://www.mozilla.org/ correctly returns data for all BMP and icon formats, but still gives errors for JXL and TIFF. |
|