asTrueColor(); if (!imagefilter($new->getHandle(), IMG_FILTER_GRAYSCALE)) { throw new WideImage_GDFunctionResultException("imagefilter() returned false"); } if (!$image->isTrueColor()) { $new = $new->asPalette(); } return $new; } }