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 the clipboard image to a file as clipboard.png ```rust use anyhow::Result;

[tokio::main]

async fn main() -> Result<()> { let img = imboard::copyimagefromclipboard().await?; img.torgba().save("clipboard.png").unwrap(); Ok(()) } ```

Copy a file's image to the clipboard ```rust use anyhow::Result;

[tokio::main]

async fn main() -> Result<()> { let img = image::open("examples/images/copy.png")?; imboard::copyimageto_clipboard(img).await?; Ok(()) } ```