Crate ascii_izer

Source
Expand description

An image to ASCII art library for rust

§Features

  • Color [default]: Processes the image color alongside the pixels during ASCII generation.
  • Crossterm: Provides a simple method to put the ASCII into the console via crossterm. This does not output color

§Usage

§Simple

The functions to_ascii_lines and image_into_lines are the simplest way to convert an image into ASCII. Keep in mind, however, the dimensions taken by these functions are the exact level that the input image will be resized to, aspect ration is not respected.

§Advanced

The ASCIIGenerator struct can be used to have more control over the exact parameters used.

Structs§

ASCIIGenerator
A struct used to control the specifics of how an image is converted into ASCII.
Line

Enums§

ASCIIError
DynamicImage
A Dynamic Image
ResizeMode
The type of resizing that the image will undergo.

Functions§

image_into_lines
put_in_console
to_ascii_lines