Problems specifying transparency for gif
Posted: 2007-07-17T07:30:24-07:00
Sometimes it’s the simplest things that give you the most trouble….
I’m trying to specify the transparency of a gif image, and it’s not taking. I’m using IM “ImageMagick 6.3.0 11/05/06 Q16”, on windows in cygwin. I’m converting arrowrr.gif to s.gif and I’ve tried things like:
convert arrowrr.gif -transparent black s.gif
convert arrowrr.gif -transparent-color black s.gif
convert arrowrr.gif -background None -transparent-color black s.gif
And more combinations and putting them in different orders and such. However every time I do “identify –verbose s.gif” it says no transparency. The output in below, and is always the same. Thanks for any help.
$ identify -verbose s.gif
Image: s.gif
Format: GIF (CompuServe graphics interchange format)
Class: PseudoClass
Geometry: 7x11
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 1-bit
Green: 8-bit
Blue: 8-bit
Alpha: 1-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 82.7922 (0.324675)
Standard deviation: 119.405 (0.468253)
Green:
Min: 0 (0)
Max: 189 (0.741176)
Mean: 22.4026 (0.0878533)
Standard deviation: 47.0397 (0.184469)
Blue:
Min: 0 (0)
Max: 180 (0.705882)
Mean: 14.2857 (0.0560224)
Standard deviation: 43.8838 (0.172093)
Alpha:
Min: 255 (1)
Max: 0 (0)
Mean: 82.7922 (0.324675)
Standard deviation: 119.405 (0.468253)
Alpha: none #00000000
Colors: 3
Histogram:
52: none #00000000
20: rgb(255,39,10) #FF270A
5: rgb(255,189,180) #FFBDB4
Colormap: 3
0: black #000000
1: rgb(255,39,10) #FF270A
2: rgb(255,189,180) #FFBDB4
Rendering intent: Undefined
Resolution: 72x72
Units: Undefined
Filesize: 64b
Interlace: None
Background color: none
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: none
Page geometry: 7x11+0+0
Dispose: Undefined
Compression: LZW
Orientation: Undefined
Signature: 931d53aa59a3bf8ed21e1efc95e347532ba8d0e45d79085107138fe8e7b354c9
Tainted: True
Version: ImageMagick 6.3.0 11/05/06 Q16 http://www.imagemagick.org
I’m trying to specify the transparency of a gif image, and it’s not taking. I’m using IM “ImageMagick 6.3.0 11/05/06 Q16”, on windows in cygwin. I’m converting arrowrr.gif to s.gif and I’ve tried things like:
convert arrowrr.gif -transparent black s.gif
convert arrowrr.gif -transparent-color black s.gif
convert arrowrr.gif -background None -transparent-color black s.gif
And more combinations and putting them in different orders and such. However every time I do “identify –verbose s.gif” it says no transparency. The output in below, and is always the same. Thanks for any help.
$ identify -verbose s.gif
Image: s.gif
Format: GIF (CompuServe graphics interchange format)
Class: PseudoClass
Geometry: 7x11
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 1-bit
Green: 8-bit
Blue: 8-bit
Alpha: 1-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 82.7922 (0.324675)
Standard deviation: 119.405 (0.468253)
Green:
Min: 0 (0)
Max: 189 (0.741176)
Mean: 22.4026 (0.0878533)
Standard deviation: 47.0397 (0.184469)
Blue:
Min: 0 (0)
Max: 180 (0.705882)
Mean: 14.2857 (0.0560224)
Standard deviation: 43.8838 (0.172093)
Alpha:
Min: 255 (1)
Max: 0 (0)
Mean: 82.7922 (0.324675)
Standard deviation: 119.405 (0.468253)
Alpha: none #00000000
Colors: 3
Histogram:
52: none #00000000
20: rgb(255,39,10) #FF270A
5: rgb(255,189,180) #FFBDB4
Colormap: 3
0: black #000000
1: rgb(255,39,10) #FF270A
2: rgb(255,189,180) #FFBDB4
Rendering intent: Undefined
Resolution: 72x72
Units: Undefined
Filesize: 64b
Interlace: None
Background color: none
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: none
Page geometry: 7x11+0+0
Dispose: Undefined
Compression: LZW
Orientation: Undefined
Signature: 931d53aa59a3bf8ed21e1efc95e347532ba8d0e45d79085107138fe8e7b354c9
Tainted: True
Version: ImageMagick 6.3.0 11/05/06 Q16 http://www.imagemagick.org