This one time, at band camp, Peter Rundle wrote: > Does anyone know of a simple cmd-line utility that can remove the alpha > channel from a .png?
man pngtopnm These two switched look like they'll do what you want. Kinda crappy that it doesn't support alpha channels! -mix Compose the image with the transparency or alpha mask against a the background. When a background chunk is available that color is taken, else black will do. -background color If no background color chunck is present in the png-file, or when another color is required this parameter can be used to set the background color of images. This is especially useful for alpha-channel images or those with transparency chunks. The for‐ mat, to specify the color in, is either (in the case of orange) "1.0,0.5,0.0", where the values are floats between zero and one, or with the syntax "#RGB", "#RRGGBB" or "#RRRRGGGGBBBB" where R, G and B are hexa-decimal numbers. -- Rev Simon Rumble <[EMAIL PROTECTED]> www.rumble.net The Tourist Engineer Just because you're on holiday, doesn't mean you're not a geek. http://engineer.openguides.org/ "Bore, n. A person who talks when you wish him to listen." - Ambrose Bierce: The Devil's Dictionary -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html