Solution for: #10: How can I tell if a PNG has transparency?
Use the command-line tools from ImageMagick
- ivan on April 15, 2009, 06:18 PM UTC
If you have the ImageMagick package installed (available for UNIX/MacOSX/Windows), the 'identify' command-line tool can dump information on a given file if it's of a format supported by ImageMagick.
To dump transparency information about a file use the following command:
"identify -format %A <filename>"
This will return a simple "True" or "False" depending on whether the image has a transparency layer or not.
To dump transparency information about a file use the following command:
"identify -format %A <filename>"
This will return a simple "True" or "False" depending on whether the image has a transparency layer or not.