Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "145) Why does XpmCreatePixmapFromData fail with a pixmap containing"
Next document is "147) How can I use Motif's pre-defined pixmaps?"

146) How can I convert a Sun/GIF/TIFF image to a pixmap?

[Last modified: Oct 94]

Answer:  An application called "xv" (interactive image display for the X
Window System) is useful for displaying and converting many image formats.
From the man page:

     xv is an X11 program that displays images in the GIF,  JPEG,
     TIFF,  PBM, PGM, PPM, X11 bitmap, PDS/VICAR, Sun Rasterfile,
     and PM formats on 1-, 2-, 4-, 6-, 8-, 16-, 24-, and 32-bit X
     displays.   xv  will also read compress-ed versions of these
     files.

You can get "xv" (shareware by John Bradley et al) from:

        ftp://ftp.cis.upenn.edu/pub/xv
or:
        ftp://ftp.x.org/R5contrib/xv-3.01.tar.gz

Another useful conversion package is "pbm" (portable bitmap file format) by
Jef Poskanzer et al, available from:

        ftp://ftp.x.org/R5contrib/netpbm-1mar1994.tar.gz
or:
        ftp://ftp.x.org/R5contrib/pbmplus10dec91.tar.Z (much older :-)

You might also want to check the X11 FAQ for additional conversion options:

        ftp://ftp.x.org/contrib/faqs/FAQ

Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "145) Why does XpmCreatePixmapFromData fail with a pixmap containing"
Next document is "147) How can I use Motif's pre-defined pixmaps?"