Skip to content

This crate makes it convenient to exchange images with the clipboard

License

Notifications You must be signed in to change notification settings

moisutsu/imboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imboard

Crates.io Documentation License

This is a crate that allows you to easily exchange images with the clipboard.

Currently, only macOS is supported.

Example

Save a clipboard image to a file as clipboard.png

use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    let img = imboard::copy_image::from_clipboard().await?;
    img.to_rgba().save("clipboard.png").unwrap();
    Ok(())
}

Copy a file image to the clipboard

use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    let img = image::open("examples/images/copy.png")?;
    imboard::copy_image::to_clipboard(img).await?;
    Ok(())
}

About

This crate makes it convenient to exchange images with the clipboard

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages