Page 1 of 1
How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
Posted: 2018-03-08T11:12:05-07:00
by goofy166
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
Re: How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
Posted: 2018-03-08T11:23:00-07:00
by snibgo
goofy166 wrote:Is there a way to use ImageMagick from the command line to determine the bit depth of a PNG?
IM isn't designed to tell you anything about the contents of a file. exiftool is designed to do that.
Re: How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
Posted: 2018-03-08T11:40:33-07:00
by goofy166
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
Re: How to tell an 8-bit indexed PNG from a 24 bit RGB PNG
Posted: 2018-03-08T12:55:03-07:00
by snibgo
Once you've downloaded exiftool:
Look out for:
Code: Select all
Bit Depth : 8
Color Type : Palette
... or ...