Computer Science


ppmtogif(1)                                           ppmtogif(1)

NAME
       ppmtogif - convert a portable pixmap into a GIF file

SYNOPSIS
       ppmtogif [-interlace] [-sort] [-map mapfile] [-transparent
       color] [ppmfile]

DESCRIPTION
       Reads a portable pixmap as input.  Produces a GIF file  as
       output.

OPTIONS
       -interlace
              Tells  the  program  to  produce  an interlaced GIF
              file.

       -sort  Produces a GIF file with a sorted color map.

       -map   mapfile

              Uses the colors found in the mapfile to create  the
              colormap  in  the  GIF  file, instead of the colors
              from ppmfile.  The mapfile can be any ppm file; all
              that  matters is the colors in it. If the colors in
              ppmfile do not match those in mapfile  ,  they  are
              matched  to  a "best match". A (much) better result
              can be obtained by using the  following  filter  in
              advance:

              ppmquant -floyd -map mapfile

       -transparent color
              Mark  the  given  color  as  transparent in the GIF
              file.  The color is  specified  as  in  ppmmake(1).
              Note  that this option outputs a GIF89a format file
              which might not be understood by your software.

       All flags can be abbreviated to their shortest unique pre-
       fix.

SEE ALSO
       giftoppm(1), ppmquant(1), ppm(5)

AUTHOR
       Based  on  GIFENCOD by David Rowley <mgardi@watdcsu.water-
       loo.edu>.  Lempel-Ziv compression based on "compress".

       Copyright (C) 1989 by Jef Poskanzer.

                           30 June 1993                         1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page