Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] OT - finding rgb code of the background of an image
Date: Mon, 12 Nov 2007 20:26:56
Message-Id: 1194898652.17205.60.camel@camille.espersunited.com
1 My wife and I are working on a programming project together. I have a
2 number of transparent .gif files that I've converted to BMP with
3 imagemagick's convert command. I'm trying to discover what their
4 background color is so that I can make the backgrounds transparent once
5 again. I've discovered the identify command. Here's one image
6 'identified':
7
8 michael@camille ourrpg $ identify -verbose ffight.bmp
9 Image: ffight.bmp
10 Format: BMP (Microsoft Windows bitmap image)
11 Class: DirectClass
12 Geometry: 64x64+0+0
13 Type: PaletteMatte
14 Endianess: Undefined
15 Colorspace: RGB
16 Depth: 8-bit
17 Channel depth:
18 Red: 8-bit
19 Green: 8-bit
20 Blue: 8-bit
21 Alpha: 1-bit
22 Channel statistics:
23 Red:
24 Min: 0 (0)
25 Max: 255 (1)
26 Mean: 55.8652 (0.219079)
27 Standard deviation: 104.988 (0.411717)
28 Green:
29 Min: 0 (0)
30 Max: 255 (1)
31 Mean: 192.945 (0.756648)
32 Standard deviation: 98.3791 (0.3858)
33 Blue:
34 Min: 0 (0)
35 Max: 255 (1)
36 Mean: 10.8623 (0.0425973)
37 Standard deviation: 44.2567 (0.173556)
38 Opacity:
39 Min: 0 (0)
40 Max: 255 (1)
41 Mean: 171.079 (0.670898)
42 Standard deviation: 119.821 (0.469887)
43 Alpha: rgba(0,255,0,1) #00FF0000
44 Histogram:
45 2748: ( 0,255, 0,255) #00FF0000 rgba(0,255,0,1)
46 668: (255, 57, 0, 0) #FF3900 rgb(255,57,0)
47 444: ( 0, 0, 0, 0) #000000 black
48 212: (247,214,181, 0) #F7D6B5 rgb(247,214,181)
49 24: (255,255,255, 0) #FFFFFF white
50 Rendering intent: Undefined
51 Resolution: 28.32x28.32
52 Units: PixelsPerCentimeter
53 Filesize: 16.1191kb
54 Interlace: None
55 Background color: white
56 Border color: rgb(223,223,223)
57 Matte color: grey74
58 Transparent color: none
59 Page geometry: 64x64+0+0
60 Dispose: Undefined
61 Iterations: 0
62 Compression: Undefined
63 Orientation: Undefined
64 Signature:
65 35337a670266b1d6687c903e52b2cfe0568ef47b2ca46ea59ea0072736dc6a2a
66 Tainted: False
67 Version: ImageMagick 6.3.5 09/29/07 Q16 http://www.imagemagick.org
68
69 The background of the image looks green to me (0, 255, 0), but identify
70 claims it's white. Is there a way I can know for sure without having to
71 go through all the RGB codes? The convert created BMP's won't open in
72 gimp....
73
74 --
75 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT - finding rgb code of the background of an image Willie Wong <wwong@×××××××××.edu>
Re: [gentoo-user] OT - finding rgb code of the background of an image Alex Schuster <wonko@×××××××××.org>