/** * @param $width * @param $height * @return $this|Imagick */ public function resize($width, $height) { if (!$this->isOriginal || !$this->isSvg()) { return parent::resize($width, $height); } $width = (int) $width; $height = (int) $height; $tmpFile = PIMCORE_SYSTEM_TEMP_DIRECTORY . "/" . uniqid() . "_pimcore_image_svg_resize_tmp_file.png"; $this->tmpFiles[] = $tmpFile; Console::exec(self::getBinary() . " -w " . $width . " -h " . $height . " -D -f " . $this->imagePath . " -e " . $tmpFile); $this->initImagick($tmpFile); return $this; }