News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Convert bitmap image to ascii
Author Message

Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: Convert bitmap image to ascii

You may want to use convert from ImageMagick.

For example "convert -resize 8x8 -extent 8x8 -monochrome -compress none ifile.png ofile.pbm" converts any ifile.png to an ASCII ofile.pbm. If you cut the first two lines you have what you want.

If you want to do it with 256 images you can use a simple shell script like:

for image in $(ls *.png); do convert -resize 8x8 -extent 8x8 -monochrome -compress none $image $(basename $image .png).pbm ; done

Should convert all png pictures in the directory.


01-09-2009 01:07 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Convert bitmap image to ascii - iGame3D - 01-09-2009, 11:04 AM
RE: Convert bitmap image to ascii - Juergen - 01-09-2009 01:07 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: