[PLUG] tools for converting txt to jpg or gif ?

Roderick A. Anderson raanders at acm.org
Tue Aug 6 18:16:00 UTC 2002


While looking for a method to convert large text-ish files to tiff I came 
up with this trick.

enscript <file.whatever> -p - | \
    gs -sDEVICE=tiffpack -sOutputFile=file%d.tiff

Or something very much like it.  :-)

With my copy of ghostscript (RHL 7.2) there is pngmono, pnggray, png16, 
png256, png16m, jpeg, jpeggray, and a bunch of others.

Enscript will also do some nifty formating if you want it to depending on 
the input source type: C, SQL, etc.


Rod
-- 
  "Open Source Software - Sometimes you get more than you paid for..."





More information about the PLUG mailing list