Replace colors in the image from a color lookup table.
<?php $image = new Imagick('test.jpg');$clut = new Imagick();$clut->newImage(1, 1, new ImagickPixel('black'));$image->clutImage( $clut );$image->writeImage( 'test_out.jpg' );?>