Xref: utzoo alt.graphics.pixutils:341 comp.sys.ibm.pc.misc:3154 Path: utzoo!utgpu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!uokmax!norlin From: norlin@uokmax.ecn.uoknor.edu (Norman Lin) Newsgroups: alt.graphics.pixutils,comp.sys.ibm.pc.misc Subject: Re: Graphic --> ASCII converter? Message-ID: <1990Oct31.022216.15608@uokmax.ecn.uoknor.edu> Date: 31 Oct 90 02:22:16 GMT References: Organization: Engineering Computer Network, University of Oklahoma, Norman, OK Lines: 34 tierney@belegost.endor.cs.psu.edu (Michael B. Tierney) writes: > Does anyone out there know of a utility that will convert a picture >(any popular format will do) to an ASCII-type picture? Something like this >will come in handy for some things I want to work on. If anyone can throw >any pointers my way, it would be very much appreciated. Thanks, > Mike The pbmplus (for UNIX systems) has this capability. For instance, to convert a .gif file to ascii, a typical sequence is giftoppm picture.gif | ppmtopgm | pgmtopbm | pbmreduce 4 | pbmtoascii | tr o ^ | tr \" o | tr " " # | tr \$ " " > picture.asc The reason for the "tr" statements at the end of the pipeline is that, strangely, whenever I try this the picture comes out inverted black for white. I tried inserting "pbminvert" into the pipeline, but it never worked, so I just did the transformation after ASCII conversion. The site at which I operate has the pbmplus package already installed, but I am sure it is available for anonymous ftp somewhere. Hope this helps. >-- >Michael B. Tierney "Once a great nation under God, now the Number >tierney@endor.cs.psu.edu One PORNO DRUNKEN DRUG-INFESTED DEBTOR NATION!" >MBT3@PSUVM.PSU.EDU -The Willard Preacher -- \ /\/\ /\/\ +-----------------------------+ /\/\ /\/\ /./ \\ /./\\\ /./\\\ /====|Norman Lin/norlin@129.15.20.2|===/./\\\ /./\\\ /./ \\\/./ \\\/./ \\\/./===| norlin@uokmax.ecn.uoknor.edu|====/ \\\/./ \\\/./ \/\/ \/\/ \/\/ +-----------------------------+ \/\/ \/\/