A command line utility to convert an image to an array of characters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Kasianov Nikolai Alekseevich c4f029f38a Fixed clap destroying the default palette 1 year ago
src Fixed clap destroying the default palette 1 year ago
.gitignore Convert images to text files ! 2 years ago
Cargo.lock Fixed clap destroying the default palette 1 year ago
Cargo.toml Fixed clap destroying the default palette 1 year ago
LICENSE Convert images to text files ! 2 years ago
README.md Convert images to text files ! 2 years ago
install.sh Installation; uninstallation scripts 2 years ago
uninstall.sh Installation; uninstallation scripts 2 years ago

README.md

charify - a command line utility to convert an image to an array of characters

Usage

charify [OPTIONS] --image <image> --destination <destination>

where

  • image is the path to an existing image
  • destination is the path to a newly created text file

and

OPTIONS:

  • -c, --charset <charset> Set a new character set to use [default: "[' ', '░', '▒', '▓', '█']"]

  • -h, --help Print help information

  • -r, --new_dimensions <new_dimensions> Resize source image to specified dimensions

Examples

  • charify ~/wallpapers/image.png ~/wallpapers/my_wallpaper_but_in_text.txt
  • charify image.jpg textfile.txt -r 500x450
  • charify img.png charified.txt -c abcdefg