An open API service indexing awesome lists of open source software.

https://github.com/rzru/symbolize

convert raster images to ASCII art
https://github.com/rzru/symbolize

art bitmap bitmap-image convert crate image rust rust-lang symbol text-art text-image

Last synced: about 2 months ago
JSON representation

convert raster images to ASCII art

Awesome Lists containing this project

README

        

# symbolize!

This crate allows you to convert bitmap images into l33t text art! Also available as binary.

## Preview

![Preview](/docs/preview.gif "Binary usage preview")

## Usage as a crate

All needed information is available on [docs.rs](https://docs.rs/symbolize)

## Usage as binary

```
> cargo install symbolize

> symbolize --help
symbolize! 0.2.0
rzru
converts bitmap images into text art

USAGE:
symbolize [OPTIONS] --palette

ARGS:
Path to the original picture

OPTIONS:
-c, --colorize Flag that shows should output be colorized for a terminal or not. Not
recommended to use it with anything but terminals with rgb support
-f, --filter Filter type. One of: nearest, triangle, catmull_rom, gaussian,
lanczos3. More about differences:
https://docs.rs/image/latest/image/imageops/enum.FilterType.html
[default: nearest]
-h, --help Print help information
-p, --palette Defines symbols that will be used to fill the picture (in priority
order)
--scale Defines scale of symbolized picture relatively to the original
[default: 1]
-V, --version Print version information

> symbolize rustacean-flat-happy.png --palette=" @#$" --scale=0.05

@@ @@@@ @@
@@ @@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@
@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
@@ @@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@ @@@@
@@@@ @@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@
@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@
@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@&& @@@@&&&& @@@@@@@@@@@@@@ @@
@@@@@@@@@@@@@@@@@@@@@@&& @@@@ @@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@ @@@@ @@@@@@@@@@@@@@@@@@
@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@####@@@@@@
@@@@## ####@@@@@@@@@@@@@@ @@@@@@@@@@#### ##@@@@
@@ ## ###################### ## @@
@@ @@
@@
```

## License
[MIT](https://opensource.org/licenses/MIT)