ciao Rafael Laboissiere, > $ ./color-count.pl test.png > [255, 0, 0]: 458 > [129, 92, 35]: 140 > [255,255,255]: 1467 > [129,188,131]: 435 the same result with imagemagick 'identify' Thank you for the code (and the time) -- Paolo Pedaletti