Set Alpha to 1 bit
Posted: 2007-09-18T18:57:46-07:00
Hi all,
I have an image with the following properties
Format: PNG (Portable Network Graphics)
Class: DirectClass
Type: TrueColorMatte
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 8-bit
I want to change the same to the following, ie with Alpha Channel Depth as 1. (I believe, this is what happens when switch from RGB to Indexed in GIMP)
Format: PNG (Portable Network Graphics)
Class: PseudoClass
Type: PaletteMatte
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 1-bit
I tried the "convert in.png -type PaletteMatte -channel Alpha -depth 1 out.png", this did set the Alpha Channel Depth to 1, but also made the image greyscale.
Also tried "convert in.png -type PaletteMatte -channel RGB -depth 8 -channel Alpha -depth 1 out.png" in vain to achieve the same result as above.
Please help me.
--
Regards,
Libin Varghese
I have an image with the following properties
Format: PNG (Portable Network Graphics)
Class: DirectClass
Type: TrueColorMatte
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 8-bit
I want to change the same to the following, ie with Alpha Channel Depth as 1. (I believe, this is what happens when switch from RGB to Indexed in GIMP)
Format: PNG (Portable Network Graphics)
Class: PseudoClass
Type: PaletteMatte
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 1-bit
I tried the "convert in.png -type PaletteMatte -channel Alpha -depth 1 out.png", this did set the Alpha Channel Depth to 1, but also made the image greyscale.
Also tried "convert in.png -type PaletteMatte -channel RGB -depth 8 -channel Alpha -depth 1 out.png" in vain to achieve the same result as above.
Please help me.
--
Regards,
Libin Varghese