Page 1 of 1
Why am I getting colors for 4 channels from a png image?
Posted: 2019-10-04T21:03:15-07:00
by Kennynguyen111
Don't PNG images only have 3 color channels?
e.g., #EDEDE9E9E1E1
identify -ping -format \"%w %h %k %b\" $tmp_fp_file
Re: Why am I getting colors for 4 channels from a png image?
Posted: 2019-10-04T22:02:25-07:00
by fmw42
No they can have 4 if you count the alpha channel. But you have 12 hex values. So that means you have a 3 channel 16 bit image. Your imagemagick is likely Q16 (default) which means 16-bit compile. So you can get that kind of value for colors. See
https://imagemagick.org/script/color.php