pamtogif
Convert a Netpbm image into an unanimated GIF image. tldr-pages
On several platforms
Several platforms
Convert a Netpbm image into an unanimated GIF image
pamtogif path/to/image.pam >path/to/output.gifIdentifyMark the specified color as transparent in the output GIF file
pamtogif -transparent color path/to/image.pam >path/to/output.gifIdentifyInclude the specified text as a comment in the output GIF file
pamtogif -comment "Hello World!" path/to/image.pam >path/to/output.gifIdentify