Output colormap to text (not histogram)
Posted: 2018-04-12T02:24:13-07:00
Hello,
when using identify -verbose image.png for an indexed image, I get following information:
[...]
Colors: 10
Histogram:
1689805: ( 62, 55, 61) #3E373D srgb(62,55,61)
891326: ( 68, 65, 96) #444160 srgb(68,65,96)
531139: ( 80, 67, 80) #504350 srgb(80,67,80)
502187: ( 94, 80,105) #5E5069 srgb(94,80,105)
293317: ( 98,100,154) #62649A srgb(98,100,154)
448022: (100, 94,130) #645E82 srgb(100,94,130)
307128: (133,114,144) #857290 srgb(133,114,144)
704235: (152,144,175) #9890AF srgb(152,144,175)
238666: (153, 89, 91) #99595B srgb(153,89,91)
875255: (210,206,218) #D2CEDA srgb(210,206,218)
Colormap entries: 11
Colormap:
0: (133,114,144,255) #857290FF srgba(133,114,144,1)
1: ( 80, 67, 80,255) #504350FF srgba(80,67,80,1)
2: (152,144,175,255) #9890AFFF srgba(152,144,175,1)
3: ( 62, 55, 61,255) #3E373DFF srgba(62,55,61,1)
4: (210,206,218,255) #D2CEDAFF srgba(210,206,218,1)
5: ( 68, 65, 96,255) #444160FF srgba(68,65,96,1)
6: ( 94, 80,105,255) #5E5069FF srgba(94,80,105,1)
7: (153, 89, 91,255) #99595BFF srgba(153,89,91,1)
8: (100, 94,130,255) #645E82FF srgba(100,94,130,1)
9: ( 98,100,154,255) #62649AFF srgba(98,100,154,1)
10: (255,255,255,255) #FFFFFFFF white
[...]
So far so good. Now when using convert image.png -unique-colors -depth 16 image.txt, the text file includes the values and color order from the histogram. I would need the Colormap values (and order) instead. How can I do that using the command line tool?
Thanks,
Joe
when using identify -verbose image.png for an indexed image, I get following information:
[...]
Colors: 10
Histogram:
1689805: ( 62, 55, 61) #3E373D srgb(62,55,61)
891326: ( 68, 65, 96) #444160 srgb(68,65,96)
531139: ( 80, 67, 80) #504350 srgb(80,67,80)
502187: ( 94, 80,105) #5E5069 srgb(94,80,105)
293317: ( 98,100,154) #62649A srgb(98,100,154)
448022: (100, 94,130) #645E82 srgb(100,94,130)
307128: (133,114,144) #857290 srgb(133,114,144)
704235: (152,144,175) #9890AF srgb(152,144,175)
238666: (153, 89, 91) #99595B srgb(153,89,91)
875255: (210,206,218) #D2CEDA srgb(210,206,218)
Colormap entries: 11
Colormap:
0: (133,114,144,255) #857290FF srgba(133,114,144,1)
1: ( 80, 67, 80,255) #504350FF srgba(80,67,80,1)
2: (152,144,175,255) #9890AFFF srgba(152,144,175,1)
3: ( 62, 55, 61,255) #3E373DFF srgba(62,55,61,1)
4: (210,206,218,255) #D2CEDAFF srgba(210,206,218,1)
5: ( 68, 65, 96,255) #444160FF srgba(68,65,96,1)
6: ( 94, 80,105,255) #5E5069FF srgba(94,80,105,1)
7: (153, 89, 91,255) #99595BFF srgba(153,89,91,1)
8: (100, 94,130,255) #645E82FF srgba(100,94,130,1)
9: ( 98,100,154,255) #62649AFF srgba(98,100,154,1)
10: (255,255,255,255) #FFFFFFFF white
[...]
So far so good. Now when using convert image.png -unique-colors -depth 16 image.txt, the text file includes the values and color order from the histogram. I would need the Colormap values (and order) instead. How can I do that using the command line tool?
Thanks,
Joe