clipboard icon indicating copy to clipboard operation
clipboard copied to clipboard

Is `clipboard.Write(clipboard.FmtImage, []byte)` not design to copy any other format than `PNG`?

Open AlejandroSuero opened this issue 1 year ago • 1 comments

I am working on a feature for freeze that copies the generated image and this are the resulting images if not using a PNG format.

  • .webp image

  • .svg image

  • .png image

When pasting the broken images in Notes application it looks like:

Screenshot 2024-06-09 at 21 08 39

[!NOTE] The .png image looks the same in Notes as it does pasting it here.

OS information

  • Version: MacOS 14.5 (23F79)

AlejandroSuero avatar Jun 09 '24 19:06 AlejandroSuero

@changkun when using gclip -copy -f <imagename>.svg it will copy it as text instead of an image, maybe it will need some kind of conversion to png or something to work properly.

AlejandroSuero avatar Jun 12 '24 10:06 AlejandroSuero