Page 1 of 1

-unique-colors order vs. histogram order

Posted: 2014-02-22T20:50:58-07:00
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

Re: -unique-colors order vs. histogram order

Posted: 2014-02-22T21:51:18-07:00
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.