项目作者: hyrodium

项目描述 :
Copy & Paste images with Julia
高级语言: Julia
项目地址: git://github.com/hyrodium/ImageClipboard.jl.git
创建时间: 2021-06-01T13:29:59Z
项目社区:https://github.com/hyrodium/ImageClipboard.jl

开源协议:MIT License

下载


ImageClipboard.jl

Stable
Dev
Build Status
Coverage

Copy & Paste images with Julia

Install

  1. pkg> add ImageClipboard

Usage

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

  1. using Images, ImageClipboard
  2. # Create a random image
  3. img = rand(RGB{N0f8}, 100, 200)
  4. # Copy the image to the clipboard
  5. clipboard_img(img)
  6. # Paste the image from the clipboard
  7. img2 = clipboard_img()
  8. # These are the same images
  9. 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.

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