diff --git a/Project.toml b/Project.toml index a1ad56b..7f3f9d2 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ImageClipboard" uuid = "6db54171-f50f-4661-a74f-bc514ef16cee" authors = ["hyrodium and contributors"] -version = "0.1.1" +version = "0.1.2" [deps] ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f" diff --git a/README.md b/README.md index 5118f1c..7a0fa0c 100644 --- a/README.md +++ b/README.md @@ -12,23 +12,22 @@ pkg> add ImageClipboard ``` ## Usage - Just like `clipboard` in InteractiveUtils deals with string contents, this package provides `clipboard_img` to work with image contents: ```julia using Images, ImageClipboard -# Create random image +# Create a random image img = rand(RGB{N0f8}, 100, 200) -# Copy to clipboard +# Copy the image to the clipboard clipboard_img(img) -# Paste image from clipboard +# Paste the image from the clipboard img2 = clipboard_img() # These are the same images -img == img2 +img == img2 # true ``` ## Sample screenshots @@ -40,7 +39,7 @@ img == img2 ### Julia Compatibility +For Julia versions older than `v"1.3"`, you need to manually install the image IO backend [ImageMagick.jl](https://github.com/JuliaIO/ImageMagick.jl) first. -For Julia versions older than v"1.3", you need to manually install the image IO backend [ImageMagcik.jl] first. - -[ImageMagick.jl]: https://github.com/JuliaIO/ImageMagick.jl +### Other related packages +* [ClipData.jl](https://github.com/pdeffebach/ClipData.jl) enables users to copy/paste to/from Excel, Google Sheets, and other tabular data sources into interactive Julia sessions. diff --git a/docs/src/index.md b/docs/src/index.md index 2c5b8b1..a5dc9fd 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -12,21 +12,22 @@ pkg> add ImageClipboard ``` ## Basic usage +Just like `clipboard` in InteractiveUtils deals with string contents, this package provides `clipboard_img` to work with image contents: ```julia using Images, ImageClipboard -# Create random image +# Create a random image img = rand(RGB{N0f8}, 100, 200) -# Copy to clipboard +# Copy the image to the clipboard clipboard_img(img) -# Paste image from clipboard +# Paste the image from the clipboard img2 = clipboard_img() # These are the same images -img == img2 +img == img2 # true ``` ## Sample screenshots @@ -35,3 +36,9 @@ img == img2 ### Paste an image ![](img/screenshot_paste.gif) + +### Julia Compatibility +For Julia versions older than `v"1.3"`, you need to manually install the image IO backend [ImageMagick.jl](https://github.com/JuliaIO/ImageMagick.jl) first. + +### Other related packages +* [ClipData.jl](https://pdeffebach.github.io/ClipData.jl/dev/) enables users to copy/paste to/from Excel, Google Sheets, and other tabular data sources into interactive Julia sessions.