public function grayscale() { $this->preModify(); $this->resource->setImageType(\Imagick::IMGTYPE_GRAYSCALEMATTE); $this->postModify(); return $this; }