http://www.perlmonks.org?node_id=497355

johnnywang has asked for the wisdom of the Perl Monks concerning the following question:

Given an image, I'd like to replace some color (say red) with another color (say white). What's the best way to go about it? I've looked into PerlMagick (are there more complete documentations? the one at http://www.imagemagick.org/script/perl-magick.php doesn't explain function parameters in detail). I guess I could get the rgb value at every pixel and replace it one by one, isn't there something easier, or fuzzy(i.e., replace colors in certain rgb range)? Thanks.