NC 21 complaints that SVG support is not available for php-imagick on my server. However, ImageMagick is installed as well as php-imagick and using identify -list format
show SVG as a valid format. So I donât know what I need to do to get this to work and the documentation doesnât mention that topic at all.
SVG support is disabled by default due to security concerns as described here. It also explains how you can enable additional formats:
See also:
Thanks for the links but thatâs not related to my issue. The issue is new to NC 21 and it complaints about missing SVG support in php-imagick, not in the NC configuration.
I got SVG support to work on imagemagick by installing it manually with lots of extra options when compiling it from source.
But the PHP extension php-imagick is a separate thing which is not influenced by that. So it still lacks SVG support.
Hello Jurge,
also on my side I install NC 21 and back warning on support SVG, follow your topic to solve.
Thanks
M.
apt-get install libmagickcore-6.q16-6-extra <-- this will add the needed library.
@swindhab thatâs already installed at my host, so there must be something else missing.
on my side I fix problem, thanks
I just set up a new instance with NC 21 and all I had to do was installing these two components:
apt install php-imagick imagemagick
After this, the warning in the admin UI was goneâŚ
Iâm using the docker image so I guess that they should apt install those libraries from now on in their base images.
For me the same. I use a docker installation and cannot install it all the time. That should be integrated into the image of nextcloud
The same goâs for me. They should include the package in the docker image.
Hello, I had the same problem. And I solved it with these steps:
if you are using docker then:
1 . find out the docker container IDâ> docker ps
2 isuue command â docker exec CONTAINER ID /bin/bash -c âapt update && apt install -y libmagickcore-6.q16-6-extraâ
I works for me. But after giving docker-compose down and docker-compose up -d, The problem is there again. I read this is Version 21 problem. and have not found a perment solution yet. However, SVG warning is not critical.
I hope this helps
My problem here: libmagickcore-6.q16-6-extra is already the newest version (8:6.9.10.23+dfsg-2.1ubuntu11.2).
,
php-imagick is already the newest version (3.4.4+php8.0+3.4.4-1+ubuntu18.04.1+deb.sury.org+1).
and imagemagick is already the newest version (8:6.9.10.23+dfsg-2.1ubuntu11.2).
All installed on one machine, no Docker
You can create a new docker image based on the official Nextcloud image to add extra features.
FROM nextcloud:21-fpm
RUN apt-get update && apt-get install -y smbclient libsmbclient-dev libmagickwand-dev && rm -rf /var/lib/apt/lists/*
RUN pecl install inotify && docker-php-ext-enable inotify
RUN pecl install smbclient && docker-php-ext-enable smbclient
When doing the same as âDecaTecâ has done, i recognize some php8.0 installations. Iâm feared now. I remember having seen similar on my nextcloud predecessor instance when doing some regular updates and the the server became unusable. I donât know if it does not boot at all but in any case i canât ssh anymore as well as connect NC-Instance. It was Raspberry Pi 3B with 32bit OS, NC20. Recent instance (new from scratch) is NC21 on RPI 4B 64bit OS.
Iâm feared to reboot now
Does your server behave as expected?
Suggestions welcome, thx
I received prompts that the latests versions were already installed on my Ubuntu 20.04 server.
I had to manually uninstall the imagemagick and php-imagick packages:
sudo apt remove imagemagick
sudo apt remove php-imagick
Then install them again using:
sudo apt install php-imagick imagemagick
All checks passed after that.
Thanks!!! Remove with purge then install works for me (NC21, Ubuntu 20.04.2, PHP 7.4.9).
True but in the mean time you can docker exec into the nextcloud app container (if you annoyed with the warning like me), like in my case:
docker exec -it --user root nextcloud_app_1 apt update
docker exec -it --user root nextcloud_app_1 apt install imagemagick
@jurgenhaas Iâm having the same issue, could you detail your solution? What options did you use to enable SVG. Did you compile and manually install imagemagick or php-imagick? or both?
@christiancloud Iâm not having a solution, unfortunately. When I posted this issue here, I tried everything possible. Installing, updating, reinstalling all sorts of components. With no luck.
But whatâs even more strange: eventually the warning from NC 21 disappared. I really have no idea what âsolvedâ the problem - I just know it wasnât be, at least not intentional.