NWJS Version : v0.27.3 SDK
Operating System : Windows 10
To be able to create the correct image from the data obtained from calling clipboard.get(“png”)
The image created is only correct in size, the content is all messed up.
How to reproduce
Make sure there is an image in the system clipboard.
Get the image data with clipboard.get(“png”)
Use the result of the previous call to populate an Image object
When that is complete, append the image to the body of the document. The drawn image is wrong.
Note: This works fine when requesting a “jpeg” from the clipboard.
Here is a basic app demonstrating the problem example-app.zip. Just make sure there is an image in the clipboard and hit the PASTE button.