Reads a portable pixmap as input. Produces X11 pixmap (version 3) as output which can be loaded directly by the XPM library.
For example, to convert the file
xbmtopbm dot | ppmtoxpm -name dot
or, with a rgb text file (in the local directory)
The -name option allows you to specify the prefix string which is printed in the resulting XPM output. If not specified, will default to the filename (without extension) of the -name or ppmfile, (i.e. your input is from Standad Input), the prefix string defaults to the string noname.
This option names a PGM file to use as an alpha (transparency) mask. The file must contain an image the same dimensions as the input image. ppmtoxpm marks as transparent any pixel whose position in the alpha mask image is at most half white.
If you don't specify -alphamask, ppmtoxpm makes all pixels in the output opaque.
An option to match the closest (rather than exact) color name mnemonic from the rgb text would be a desirable enhancement.
Copyright (C) 1990 by Mark W. Snitily.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided
This tool was developed for Schlumberger Technologies, ATE Division, and with their permission is being made available to the public with the above copyright notice and permission notice.
Upgraded to XPM2 by Paul Breslaw, Mecasoft SA, Zurich, Switzerland (email@example.com) Thu Nov 8 16:01:17 1990