PPMTOGIF(1)
๐ NAME ๐
ppmtogif โ bestie, it's been replaced by pamtogif, and that's pretty much the headline ๐
โจ DESCRIPTION โจ
Okay so first things first: this program is part of Netpbm(1).
ppmtogif got replaced in Netpbm 10.37 (December 2006) by pamtogif(1). Like, retired. Glow-up complete, old version went home.
pamtogif is mostly backward compatible with ppmtogif. But "mostly" is doing a lot of heavy lifting in that sentence so let's get into it ๐
One way pamtogif is not backward compatible with ppmtogif is transparency (alpha). With ppmtogif, you supply the transparency as a separate pseudo-PGM image and use the -alpha option. With pamtogif? You supply an input image that has the transparency integrated into it, and there's just... no -alpha option. Periodt.
Another, more obscure way pamtogif is not backward compatible is the -map option ๐ซฃ You use this option to specify what colors you want in the GIF image, because a GIF image can have at most 256 colors and your input image might have more than that. In pamtogif, the map image must be the same depth as the input image, but in ppmtogif it need not be.
ppmtogif still exists as a separate program for backward compatibility, but it runs pamtogif to do the essential work, fr fr. The compatibility ppmtogif interprets an -alpha option by reading the transparency image and combining it with the input image, then feeding pamtogif the combined image it expects. If you use the -map option, the compatibility ppmtogif also uses pnmremap on your input to make it the same depth as your map file. Other than that, the compatibility ppmtogif just passes input and options directly to pamtogif. No extra drama.
You should not make any new use ofppmtogifand if you modify an existing use, you should upgrade topamtogif. But note that if you write a program that might have to be used with old Netpbm,ppmtogifis the only way to do that. The old-Netpbm-compatibility niche is literally its whole personality at this point.
Unless you use the -alpha or -map option, you can simply change the name of the program. If you use -alpha, here is how to upgrade:
$ ppmtogif -alpha=myalpha.pgm myinput.ppm >myoutput.gif
becomes
$ pamstack -tupletype=RGB_ALPHA myinput.ppm myalpha.pgm | \
pamtogif >myoutput.gif
๐ง Original Ppmtogif ๐ง
If you are using Netpbm before 10.37, pamtogif doesn't exist, so you use ppmtogif. Cute, retro, vintage era ๐ You can use the pamtogif manual for ppmtogif, with the following exceptions.
- The current documentation of
pamtogifdocuments all versions of that program. Use the information for Version 10.37 only. ppmtogifbefore Netpbm 10.31 does not accept PAM input at all.ppmtogifdoes not accept PAM input with transparency information in it. Instead,ppmtogifhas an-alphaoption.- The syntax of the option is
-alpha=pgmfile.ppmtogiftreats the contents of the named PGM file the same aspamtogiftreats the alpha plane of a PAM. The PGM image must have the same dimensions as the input file. But unlike the PAM case, the alpha image need not have the same maxval as the input.ppmtogifinterprets the alpha file using the alpha file's maxval. (Alpha file's maxval, not the input's โ iykyk ๐ ) - You cannot specify both
-transparentand-alpha. Pick a lane bestie, it's giving mutually exclusive.
๐ DOCUMENT SOURCE ๐
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/ppmtogif.html
And that's the whole page pookie ๐ฆ โ this one's netpbm documentation, Ppmtogif User Manual(1), straight from the General Commands Manual section of the man pages. No date on the label, just vibes and a version number ๐ Go use pamtogif instead, you'll thank me later โจ
๐ฆ where this page comes from
- ubuntu stonking: netpbm 2:11.13.03+ds-2 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms