My wife and I are working on a programming project together. I have a
number of transparent .gif files that I've converted to BMP with
imagemagick's convert command. I'm trying to discover what their
background color is so that I can make the backgrounds transparent once
again. I've discovered the identify command. Here's one image
'identified':
[EMAIL PROTECTED] ourrpg $ identify -verbose ffight.bmp
Image: ffight.bmp
Format: BMP (Microsoft Windows bitmap image)
Class: DirectClass
Geometry: 64x64+0+0
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 1-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 55.8652 (0.219079)
Standard deviation: 104.988 (0.411717)
Green:
Min: 0 (0)
Max: 255 (1)
Mean: 192.945 (0.756648)
Standard deviation: 98.3791 (0.3858)
Blue:
Min: 0 (0)
Max: 255 (1)
Mean: 10.8623 (0.0425973)
Standard deviation: 44.2567 (0.173556)
Opacity:
Min: 0 (0)
Max: 255 (1)
Mean: 171.079 (0.670898)
Standard deviation: 119.821 (0.469887)
Alpha: rgba(0,255,0,1) #00FF0000
Histogram:
2748: ( 0,255, 0,255) #00FF0000 rgba(0,255,0,1)
668: (255, 57, 0, 0) #FF3900 rgb(255,57,0)
444: ( 0, 0, 0, 0) #000000 black
212: (247,214,181, 0) #F7D6B5 rgb(247,214,181)
24: (255,255,255, 0) #FFFFFF white
Rendering intent: Undefined
Resolution: 28.32x28.32
Units: PixelsPerCentimeter
Filesize: 16.1191kb
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: none
Page geometry: 64x64+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Signature:
35337a670266b1d6687c903e52b2cfe0568ef47b2ca46ea59ea0072736dc6a2a
Tainted: False
Version: ImageMagick 6.3.5 09/29/07 Q16 http://www.imagemagick.org
The background of the image looks green to me (0, 255, 0), but identify
claims it's white. Is there a way I can know for sure without having to
go through all the RGB codes? The convert created BMP's won't open in
gimp....
--
[EMAIL PROTECTED] mailing list