CrossCopy / tauri-plugin-clipboard

A Tauri clipboard plugin with text, files, html, RTF, and image support. Clipboard content update monitoring is also supported.
https://crosscopy.github.io/tauri-plugin-clipboard/
MIT License
122 stars 6 forks source link

tauri-plugin-clipboard convert arboard-returned ImageData to bytes rather than saving image to disk and read as bytes #9

Closed HuakunShen closed 7 months ago

HuakunShen commented 1 year ago

Currently, clipboard image is read using arboard library to ImageData type. I didn't figure out how to convert it to bytes, thus I used the workaround to save the image to disk and read the file as binary.

Need to improve this. This workaround works, and looks stupid.

HuakunShen commented 7 months ago

Done already.