Closed temirovgroup closed 3 years ago
I decided to load SVG like this: php composer.phar require contao/imagine-svg (ausi)
php composer.phar require contao/imagine-svg
Further in the file: GalleryBehavior the replaceImage method replaced this code:
$originalImage = Image::getImagine()->open($path); //save image in original size
On this one:
if ($this->extension === 'svg') { $originalImage = (new \Contao\ImagineSvg\Imagine())->open($path); } else { $originalImage = Image::getImagine()->open($path); } //save image in original size
I decided to load SVG like this:
php composer.phar require contao/imagine-svg
(ausi)Further in the file: GalleryBehavior the replaceImage method replaced this code:
$originalImage = Image::getImagine()->open($path); //save image in original size
On this one:
if ($this->extension === 'svg') { $originalImage = (new \Contao\ImagineSvg\Imagine())->open($path); } else { $originalImage = Image::getImagine()->open($path); } //save image in original size