setSize(100,100); // size should just be enough for color analysis $imagick->readImage($image_path); $imagick->transformImageColorspace(imagick::COLORSPACE_HSL); $saturation_channel = $imagick->getImageChannelMean(imagick::CHANNEL_GREEN); $saturation_level = $saturation_channel['mean']/65535; print $saturation_level; ?>