-unique-colors order vs. histogram order

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
blue-j
Posts: 68
Joined: 2007-06-12T14:03:18-07:00

-unique-colors order vs. histogram order

Post by blue-j »

it would be a great convenience in terms of synchronization for coding, as well as visibly possibly more pleasing, if the order of the -unique-colors operation

Code: Select all

convert colorbar.gif -unique-colors -depth 8 txt:-
was the same as the order in which you receive:

Code: Select all

convert colorbar.gif -define histogram:unique-colors=true -format %c histogram:info:-
am i missing a consideration here? would not be the first time!

thanks again!

J
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -unique-colors order vs. histogram order

Post by fmw42 »

I used AWK to sort in a number of different ways in my script, spectrumhist, at the link below. You may find that useful if on Unix.
Post Reply