Pimcore\Model\Asset\Image::isVectorGraphic PHP Method

isVectorGraphic() public method

public isVectorGraphic ( ) : boolean
return boolean
    public function isVectorGraphic()
    {
        // we use a simple file-extension check, for performance reasons
        if (preg_match("@\\.(svgz?|eps|pdf|ps|ai|indd)\$@", $this->getFilename())) {
            return true;
        }
        return false;
    }