You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use rustascii::{image_proc::ImageEngine};use std::{error::Error, io::stdout};fnmain() -> Result<(),Box<dynError>>{let source = include_bytes!("charizard");let engine = ImageEngine::from_slice(source)?;letmut file_writer = fs::File::create_new("your-new-file")?;// If only one of the axis is set,// the image aspect ratio will be preserved
engine.render_to_text(&mut file_writer,0,Some(128),None)?;Ok(())}