Skip to content

A simple C terminal program that takes an image and and prints Ascii art from it. (supports : JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC)

Notifications You must be signed in to change notification settings

zxkeyy/printAscii

Repository files navigation

printAscii

Ascii Art Piaktchu

How to use:

Build the c program :

$ gcc printAscii.c -o printAscii -Wall -lm

Run :

$ ./printAscii [options] [image] AsciiBi2.txt
  • The order of the arguments must be as specified

Available options:

  • -i : inverses the resulting Ascii image colors.
  • -m 0..2 : changes the mode of calculating which Ascii character is printed.
  • -a 0..255 : converts pixels with 0 alpha to the value specified.
  • -t 0..255 : changes the threshold for converting pixels to black or white.
  • -w [output width] : resizes the output to the given width in Ascii characters.
  • -o [output file] : prints the Ascii art in a file instead of the terminal.

printVideoAscii

Dependencies

  • FFMPEG:
sudo apt install ffmpeg

How to use:

  • Build with:
gcc printVideoAscii.c -o printVideoAscii -Wall
gcc videoAscii.c -o videoAscii -Wall
  • Run the follwing commands to generate a txt file with the video:
./videoAscii [output text file] [video] [number of frames]

-(warning: The number of frames must be less than or equal to the number of frames in the original video)

  • Run:
./playVideoAscii [output text file] [framerate]

Image loading library :

About

A simple C terminal program that takes an image and and prints Ascii art from it. (supports : JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages