Describe the bug
When I copy and paste an image from a tool such as ShareX image editor or Windows Snipping Tool upon pasting it into the note it creates an object called image.png and shows 0B.
To Reproduce
Steps to reproduce the behavior:
Open ShareX editor or windows snipping tool and take a screenshot.
“Copy” the image to the clipboard.
Open a note in Anytype and Ctrl + V to paste the image into a new block.
Expected behavior
When pasting the image from the clipboard I would expect it to create an image block similar to how the “Picture” upload forward slash command works.
System Information:
Windows 10 Pro “10.0.19044”
Anytype Version 0.23.0
Additional context
If I try to open the 0 byte image.png object a preview window tries to load and it appears to hang the page. I have to navigate away from the page and back to it.
Ah yes, just tried that myself and can confirm the workaround right click > Appearance > Show as embed does indeed now show the images that I pasted in earlier.
So I suppose the “bug” is how the initial block is created & displayed and that after initially pasting you get the “loading wheel” when you click the object until you right click and show as embed.
at least it is actually creating the image object and that data is there behind the scenes.
yeah I agree that it should at least show the picture initially OR correctly reflect the size (because 0 byte would suggest it hasn’t loaded correctly)