8-bit palleted png, remove alpha
Posted: 2010-11-19T15:44:06-07:00
I thought it better to make this a new post from the last one on how to recognize 8 bit palletted image.
So in my tests, I ran across an image that has an alpha channel.
I want to get rid of that channel, and have the final image still be 8 bit indexed.
Everything i try ends me up with a non-indexed RGB file, though it does remove the alpha.
I tried -channel RGB, -type, -depth, +matte...
I need some help because I think I am misunderstanding what i am reading on the alpha channel.
The identify -verbose on the original png gives this:
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 1280x853+0+0
Resolution: 72x72
Print size: 17.7778x11.8472
Units: Undefined
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit
So in my tests, I ran across an image that has an alpha channel.
I want to get rid of that channel, and have the final image still be 8 bit indexed.
Everything i try ends me up with a non-indexed RGB file, though it does remove the alpha.
I tried -channel RGB, -type, -depth, +matte...
I need some help because I think I am misunderstanding what i am reading on the alpha channel.
The identify -verbose on the original png gives this:
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 1280x853+0+0
Resolution: 72x72
Print size: 17.7778x11.8472
Units: Undefined
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit