Skip to content

zachleclaire6561/Image-to-Ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image File To Ascii Art

CSDS 297 Project #1 This bash script allows you to convert an image into ascii art

Dependencies:

Image Magick (Download here: https://imagemagick.org/script/download.php)

Usage:

The script has 3-4 primary parameters along with 2 optional ones

  1. Image file name (required)
  2. Dimensions of Ascii Art: X by Y (optional)
  3. Background color (black or white)
  4. Output format (stdout or append to file)

Example:

  1. In terminal type: sh toAscii.sh boat.png 50 50
  2. Select black background (0)
  3. Select the text output (1)
  4. Enter the file name boat.txt

Behind the scenes:

  1. The file is verified to exist, readable, and have a valid file extension
  2. This boat image is converted into the following resized boat image to make it easier to process

boat image

resized boat

  1. This resized boat is processed and the output is printed to boat.txt

ascii output

About

CSDS 297 Project #1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages