Is there a way to use ImageMagick from the command line to determine the bit depth of a PNG?
I am using Photoshop to do this and it seems to give me contradictory results. Specifically I am using the Photoshop File->File Info menu.
Thanks
Mitch
How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
IM isn't designed to tell you anything about the contents of a file. exiftool is designed to do that.goofy166 wrote:Is there a way to use ImageMagick from the command line to determine the bit depth of a PNG?
snibgo's IM pages: im.snibgo.com
Re: How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
OH thanks I really appreciate this answer. I will download it. I am not a command line jock and on a Mac. Do you happen to know the terms I need to feed exiftool to get it to tell me the file details?
Mitch
Mitch
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
Once you've downloaded exiftool:
Look out for:
... or ...
Code: Select all
exiftool myfile.png
Code: Select all
Bit Depth : 8
Color Type : Palette
Code: Select all
Bit Depth : 16
Color Type : RGB
snibgo's IM pages: im.snibgo.com