Expand description
A fast ASCII and ANSI terminal art converter.
Provides image-to-text rendering, customizable character ramps, perceptual luminance conversion models, Good→Best quality tiers, and optional Rayon-powered parallel processing.
Rendering comes in two shapes: batch ([render], render_ascii,
render_ansi) which return a String, and streaming (render_to,
render_ascii_to, render_ansi_to) which write to any
std::io::Write sink for arbitrarily large output.
Re-exports§
pub use config::Config;pub use config::ConfigBuilder;pub use config::LuminanceMethod;pub use config::OutputSizing;pub use config::Quality;pub use convert::convert_image;pub use error::ImageError;pub use grid::Cell;pub use grid::Grid;pub use grid::Rgb;pub use ramp::Ramp;pub use ramp::RampType;pub use render::ColorDepth;pub use render::RenderFormat;pub use render::render;pub use render::render_ansi;pub use render::render_ansi_to;pub use render::render_ascii;pub use render::render_ascii_to;pub use render::render_to;
Modules§
Type Aliases§
- Result
- Convenience type alias for operations producing
ImageError.