Horde_Image_Imagick::setType PHP Method

setType() public method

Sets the output image type.
public setType ( string $type ) : string
$type string An image type (png, jpg, etc.)
return string The previous image type.
    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;
    }