in reply to converting Jpeg to grayscale
$image->copyMergeGray($sourceImage,$dstX,$dstY, $srcX,$srcY,$width,$height,$percent) [download]