public function setType($type) { $old = parent::setType($type); try { $this->_imagick->setImageFormat($this->_type); } catch (ImagickException $e) { // Don't care about an empty wand here. } return $old; }