public function getVectorRasterDimensions() { $targetWidth = 5000; $factor = $targetWidth / $this->getWidth(); return ["width" => $this->getWidth() * $factor, "height" => $this->getHeight() * $factor]; }
/** * @return array */ public function getVectorRasterDimensions() { if ($vectorDimensions = $this->getVectorFormatEmbeddedRasterDimensions()) { return $vectorDimensions; } return parent::getVectorRasterDimensions(); }