I am not sure that is true.

convert -size 100x100 gradient: grad100.png

identify -verbose grad100.png
Image: grad100.png
   Format: PNG (Portable Network Graphics)
   Class: DirectClass
   Geometry: 100x100+0+0
   Resolution: 72x72
   Print size: 1.38889x1.38889
   Units: Undefined
   Type: Grayscale
   Base type: Grayscale
   Endianess: Undefined
   Colorspace: RGB
   Depth: 16-bit
   Channel depth:
     gray: 16-bit


Thus the gradient is 16-bit gray png.



convert grad100.png \( grad100.png -flip \) \( grad100.png -rotate 
180 \) -combine grad100c.png

identify -verbose grad100c.png
Image: grad100c.png
   Format: PNG (Portable Network Graphics)
   Class: DirectClass
   Geometry: 100x100+0+0
   Resolution: 72x72
   Print size: 1.38889x1.38889
   Units: Undefined
   Type: Palette
   Endianess: Undefined
   Colorspace: RGB
   Depth: 16-bit
   Channel depth:
     red: 16-bit
     green: 16-bit
     blue: 16-bit


Thus an RGB color 16-bits per channel png



convert grad100c.png -depth 8 grad100c8.png

identify -verbose grad100c8.png
Image: grad100c8.png
   Format: PNG (Portable Network Graphics)
   Class: DirectClass
   Geometry: 100x100+0+0
   Resolution: 72x72
   Print size: 1.38889x1.38889
   Units: Undefined
   Type: Palette
   Endianess: Undefined
   Colorspace: RGB
   Depth: 8-bit
   Channel depth:
     red: 8-bit
     green: 8-bit
     blue: 8-bit


-depth 8 used to convert 16-bit per channel png to 8-bit per channel png



convert grad100c.png PNG24:grad100c8b.png

identify -verbose grad100c8b.png
Image: grad100c8b.png
   Format: PNG (Portable Network Graphics)
   Class: DirectClass
   Geometry: 100x100+0+0
   Resolution: 72x72
   Print size: 1.38889x1.38889
   Units: Undefined
   Type: Palette
   Endianess: Undefined
   Colorspace: RGB
   Depth: 8-bit
   Channel depth:
     red: 8-bit
     green: 8-bit
     blue: 8-bit


PNG24: used to convert 16-bit per channel png to 8-bit per channel png




>Thanks for the pointer. From what I see there, it seems that IM
>doesn't support 16-bit grey-scale PNG, which is fine with me since
>that's not what I wanted anyway.
>
>>  also -depth 8
>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to