Skip to content

BiswajitThakur/pixt

Repository files navigation

pixt - Image to ASCII Art

pixt is a command-line and web based tool for converting image to ASCII art with various styles, including pixel-based, ASCII, block, and braille.

TODO

  • Terminal output
  • HTML output
  • SVG output 🚧

Installation

Using Cargo

cargo install pixt

Build from Source

git clone https://github.com/BiswajitThakur/pixt.git
cd pixt
cargo build --release
./target/release/pixt --help

Help

Usage: pixt [OPTIONS] [FILES]...

Arguments:
  [FILES]...  Input file paths

Options:
  -w, --width <WIDTH>    Output width in terminal characters
  -H, --height <HEIGHT>  Output height in terminal characters
  -c, --colored          Enable colored output
  -s, --style <STYLE>    Style of Output Image [default: pixel] [possible values: pixel, ascii, block, braills, dots, custom, from-file]
  -o, --output <OUTPUT>  Optput
  -h, --help             Print help

Examples

Default with -c or --colored flag

pixt -c <path of image>

Default_-c

Default (without any flag)

pixt <path of image>

Default

pixt -c -s ascii <path of image>

ascii color image

pixt -s ascii <path of image>

ascii image

pixt -s from-file <file> <image-path>

ascii image

pixt -c -s custom ' `"-~:^>()*?[]{}=$#@' <path of image>

custom_color_image

pixt -s custom ' `"-~:^>()*?[]{}=$#@' <path of image>

custom image

pixt -c -s dots <path of image>

color dots image

pixt -s dots <path of image>

dots image

License

This project is licensed under the MIT License.

Contributing

Feel free to open issues or submit pull requests!

About

Terminal and Web Based Cross Platform Image to ASCII Art

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •