ls *.gif | doeach.pl gifconv @_ ~/discards/gens/eps/@n.eps ls *.gif | doeach.pl gifconv @_ -format eps @b grep BoundingBox: @g @_.bb
Gifconv reads a GIF (Graphics Interchange Format) image file and converts it to another format: PostScript (or Encapsulated PostScript), PCX (a PC format), PICT (Macintosh), or PPM (Portable PixMap), using the xwpick backend. This is mainly useful because xwpick produces particularly well-behaved and compact PostScript. For the other formats, many other programs do the same job, eg. xv, pbmplus, or netpbm, and in fact these may be used to convert an image to the GIF format that gifconv requires as input.
PostScipt files produced by gifconv automatically understand on what kind of printer they are being printed. On Level 2 PostScript printers the native LZW/ASCII85 decoding filters will be invoked, while on Level 1 printers inline decompression code is executed. Rendering time on Level 2 printers is pretty fast. On Level 1 printers the image rendering is, of course, much slower, but still usually faster than for Run Length Encoded PostScript images.
For this particular image, the resultant Encapsulated Postscript file is 2.8 times smaller than that produced by xv (with xv's compress option).