Enable SVG Support for ImageMagick

By default, Plesk does not install support for SVG graphics for security reasons. If you absolutely need support for SVG graphics, you can install the additional ImageMagick package at a later time.


If you have a managed server, please contact our support team, who can perform the installation for you.



Installation

Run the following command as the root user via SSH:

apt install libmagickcore-7.q16-10-extra



Checking SVG Support


PHP 8.2:

/opt/plesk/php/8.2/bin/php -r 'print_r(Imagick::queryFormats("SVG"));'
Array
(
    [0] => SVG
)


PHP 8.3:

/opt/plesk/php/8.3/bin/php -r 'print_r(Imagick::queryFormats("SVG"));'
Array
(
    [0] => SVG
)


PHP 8.4:

/opt/plesk/php/8.4/bin/php -r 'print_r(Imagick::queryFormats("SVG"));'
Array
(
    [0] => SVG
)


PHP 8.5:

/opt/plesk/php/8.5/bin/php -r 'print_r(Imagick::queryFormats("SVG"));'
Array
(
    [0] => SVG
)