Thanks Fred! Ingenious UNIX script :) On Mac OS Lion term the first line needed ammending, but the following was an equivalent:
for color in `/opt/bin/convert -list color | awk '{print $2}'`; do
hexcolor=`/opt/bin/convert xc:"$color" txt: | tail -n 1 | sed -n 's/^.*\([\#][0-9,A-F,a-f]*\) *.*$/\1 ...
Search found 4 matches
- 2012-03-12T17:39:54-07:00
- Forum: Users
- Topic: identify -list Color (as 6 hex digits)
- Replies: 4
- Views: 9920
- 2012-03-12T14:04:56-07:00
- Forum: Users
- Topic: identify -list Color (as 6 hex digits)
- Replies: 4
- Views: 9920
identify -list Color (as 6 hex digits)
Hey all,
How do I format identify -list Color to show the real names and hex values in two columns? Is there a way to convert from rgb() using some IM internal?
Currently as a default I get:
yellow4 rgb(139,139,0) X11
Thanks,
Adam
EDIT: I should mentioned I want to use this output for use in ...
How do I format identify -list Color to show the real names and hex values in two columns? Is there a way to convert from rgb() using some IM internal?
Currently as a default I get:
yellow4 rgb(139,139,0) X11
Thanks,
Adam
EDIT: I should mentioned I want to use this output for use in ...
- 2012-03-08T10:58:29-07:00
- Forum: Users
- Topic: Identifying small clusters of colour
- Replies: 3
- Views: 6200
Re: Identifying small clusters of colour
Great tips guys! Only just had a chance to check the links Anthony; the new Conditional Dilation is timely, and very useful thank you 

- 2012-03-04T07:35:15-07:00
- Forum: Users
- Topic: Identifying small clusters of colour
- Replies: 3
- Views: 6200
Identifying small clusters of colour
Hi All,
I have a PNG composed very simply of either transparent or black:
76040: ( 0, 0, 0, 0) #00000000 none
10360: ( 0, 0, 0,255) #000000 black
There a random clusters of pixels I want to identify, and alter the colour of, without affecting the rest of the image. Over the CLI how can I ...
I have a PNG composed very simply of either transparent or black:
76040: ( 0, 0, 0, 0) #00000000 none
10360: ( 0, 0, 0,255) #000000 black
There a random clusters of pixels I want to identify, and alter the colour of, without affecting the rest of the image. Over the CLI how can I ...