potential bug with extracting alpha channel IM 6.4.3-7 beta
Posted: 2008-09-15T11:15:43-07:00
IM 6.4.3-7 beta Q16 Mac OSX (Monday beta 3:42 AM)
Trying to extract the alpha channel from:
image.png
convert -verbose info:
...
Depth: 16/8-bit
Channel depth:
red: 1-bit
green: 1-bit
blue: 1-bit
alpha: 8-bit
Channel statistics:
red:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: -0 (-0)
green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: -0 (-0)
blue:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: -0 (-0)
alpha:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
Alpha: none #0000000000000000
Test:
convert image.png -channel o image_o.png
The above seems fine
Anthony mentioned that -channel a is now different from -channel o. But either it is not working or I am premature in testing it.
convert image.png -channel a image_a.png
This is not different from -channel o
convert image.png -fx "u.a" image_fx_a.png
This is not correct as it should not be transparent. The majority (background) should be black and the letters white.
(get same result with convert image.png -channel rgba -fx "u.a" image_fx_a.png)
identify -verbose image_fx_a.png
...
Depth: 16/8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit
Channel statistics:
red:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
green:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
blue:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
alpha:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
Alpha: none #0000000000000000
Am I doing something wrong here?
Likewise:
convert image.png -fx "u.o" image_fx_o.png
This is not correct as it should not be transparent. The majority (background) should be white and the letters black.
Again, I apologize if I am testing prematurely
Fred
Trying to extract the alpha channel from:
image.png
convert -verbose info:
...
Depth: 16/8-bit
Channel depth:
red: 1-bit
green: 1-bit
blue: 1-bit
alpha: 8-bit
Channel statistics:
red:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: -0 (-0)
green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: -0 (-0)
blue:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: -0 (-0)
alpha:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
Alpha: none #0000000000000000
Test:
convert image.png -channel o image_o.png
The above seems fine
Anthony mentioned that -channel a is now different from -channel o. But either it is not working or I am premature in testing it.
convert image.png -channel a image_a.png
This is not different from -channel o
convert image.png -fx "u.a" image_fx_a.png
This is not correct as it should not be transparent. The majority (background) should be black and the letters white.
(get same result with convert image.png -channel rgba -fx "u.a" image_fx_a.png)
identify -verbose image_fx_a.png
...
Depth: 16/8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit
Channel statistics:
red:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
green:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
blue:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
alpha:
min: 0 (0)
max: 255 (1)
mean: 55.0361 (0.215828)
standard deviation: 103.896 (0.407436)
Alpha: none #0000000000000000
Am I doing something wrong here?
Likewise:
convert image.png -fx "u.o" image_fx_o.png
This is not correct as it should not be transparent. The majority (background) should be white and the letters black.
Again, I apologize if I am testing prematurely
Fred