image-visualizer 0.1.1

Provides an adapter to view images.
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 107.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.67 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 35s Average build duration of successful builds.
  • all releases: 35s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • hediet/rust-visualizer
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hediet

Visualizer

A crate to visualize image instances of the image create. Requires the crate visualizer-cli to be installed globally.

Based on @hediet/visualization which also powers the Debug Visualizer extension for VS Code.

Installation

cargo install visualizer-cli
cargo add image-visualizer

Example

Use the view! macro to view a visualization. The visualize function creates a visualization for the given image.

use image::io::Reader as ImageReader;
use image_visualizer::{VisualizableImage, visualizer::view};

fn main() -> std::io::Result<()> {
    let img = ImageReader::open("data/img.png")?.decode().unwrap();
    view!(&img.visualize());
    Ok(())
}

Screenshot