Hi all,
I’m pleased to announce that I’ve registered ImageClipboard.jl, a package that can handle images on the system clipboard.
The followings are sample scripts and screenshots from the README.
using Images, ImageClipboard
# Create a random image
img = rand(RGB{N0f8}, 100, 200)
# Copy the image to clipboard
clipboard_img(img)
# Paste the image from clipboard
img2 = clipboard_img()
# These are the same images
img == img2 # true
copy an image to clipboard

paste an image from clipboard

30 Likes
This is sorely missed functionality. I was looking at making the standard clipboard
work with images, but there were some complications. I think that the best way would be to hook clipboard
into the mime
system (Although this FR is in second grade by now…)
But this looks like a neat way to do it until then.
3 Likes
Yes, this package is able to use in Pluto!

The pasted image seems jaggy, but I think this is a problem of the viewer.
3 Likes
ImageClipboard.jl v1.0.0 has been released with full Windows & WSL support!
Note that this release contains no breaking changes.
3 Likes