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.
 
 
Unbewohnte d1f81407b3 Convert images to text files ! 3 years ago
src Convert images to text files ! 3 years ago
.gitignore Convert images to text files ! 3 years ago
Cargo.lock Convert images to text files ! 3 years ago
Cargo.toml Convert images to text files ! 3 years ago
LICENSE Convert images to text files ! 3 years ago
README.md Convert images to text files ! 3 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