Popularity
35 Stars
Updated Last
8 Months Ago
Started In
June 2021

ImageClipboard.jl

Stable Dev Build Status Coverage

Copy & Paste images with Julia

Install

pkg> add ImageClipboard

Usage

Just like clipboard in InteractiveUtils deals with string contents, this package provides clipboard_img to work with image contents:

using Images, ImageClipboard

# Create a random image
img = rand(RGB{N0f8}, 100, 200)

# Copy the image to the clipboard
clipboard_img(img)

# Paste the image from the clipboard
img2 = clipboard_img()

# These are the same images
img == img2  # true

Sample screenshots

Copy an image

Paste an image

Julia Compatibility

For Julia versions older than v"1.3", you need to manually install the image IO backend ImageMagick.jl first.

Other related packages

  • ClipData.jl enables users to copy/paste to/from Excel, Google Sheets, and other tabular data sources into interactive Julia sessions.

Used By Packages