NEW 273591
Copy Image contextual menu item copies png images as tiff
https://bugs.webkit.org/show_bug.cgi?id=273591
Summary Copy Image contextual menu item copies png images as tiff
Jeff Johnson
Reported 2024-05-01 16:55:11 PDT
Example: https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/560px-PNG_transparency_demonstration_1.png When copying a png image, the pasteboard types include public.tiff first and do not include public.png. This is in contrast to Chrome and Firefox, whose pasteboard types have public.png first.
Attachments
Jeff Johnson
Comment 1 2024-05-01 16:55:56 PDT
This is problem when the paste targe is expecting a png.
Said Abou-Hallawa
Comment 2 2024-05-01 17:23:35 PDT
When copying the above PNG image, these are the formats which get published to the pasteboard by different browsers: WebKit/Safari: public.tiff WebURLsWithTitlesP-boardType Apple URL pasteboard type public.url public.url-name public.utf8-plain-text com.apple.flat.rtfd com.apple.webarchive Chrome: public.png public.html org.chromium.source-url FireFox: public.png public.tiff public.html
Said Abou-Hallawa
Comment 3 2024-05-01 17:25:34 PDT
I think these formats get published by WebKit in this function: void Pasteboard::write(const PasteboardImage& pasteboardImage)
Radar WebKit Bug Importer
Comment 4 2024-05-01 17:31:38 PDT
Alexey Proskuryakov
Comment 5 2024-05-06 13:06:56 PDT
Note You need to log in before you can comment on or make changes to this bug.