ImageClipboard
Copy & Paste images with Julia
Install
pkg> add ImageClipboardBasic usage
Just like InteractiveUtils.clipboard deals with string contents, this package provides clipboard_img function to work with image contents:
using ImageClipboard # Exports `clipboard_img`
using ImageClipboard # Exports `clipboard_img`
using Images
# Paste image with ImageClipboard.jl🎉🎉🎉
img = clipboard_img()
# Copy image with ImageClipboard.jl🎉🎉🎉
clipboard_img(Gray.(img))Julia Compatibility
For Julia versions older than v"1.3", you need to manually install the image IO backend ImageMagick.jl first.
Note on Naming
- Package:
ImageClipboard.jl— follows Julia image package conventions (like ImageFiltering.jl) - Function:
clipboard_img()— extendsInteractiveUtils.clipboard()
The reversed word order is intentional to maintain consistency with existing Julia ecosystem patterns.
Other related packages
- ClipData.jl enables users to copy/paste to/from Excel, Google Sheets, and other tabular data sources into interactive Julia sessions.