Hi guys, I made the plugin called Ktracer, thanks for uploading it.
My question is about reading an image data from the plugin, I made an uploader to get images from local files, but I want to know if there´s a way for the plugin, to get the image data (as a Base64 would be fine), I try with the penpot.selection[0] object but it only has references and ID’s, I cant find a way to get the actual data.
Thanks !!
Call the export()
method on the node you want to get its bytes (Uint8Array). Then pass this array to the UI for further processing.
Thank you so much!!