golang-design / clipboard

📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)
https://golang.design/x/clipboard
MIT License
593 stars 65 forks source link

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

Open AlejandroSuero opened 3 months ago

AlejandroSuero commented 3 months ago

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.

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

AlejandroSuero commented 3 months ago

@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.