Adds more context to the svg compatibility warning#31742
Adds more context to the svg compatibility warning#31742pierreozoux wants to merge 1 commit intomasterfrom
Conversation
Refers to this lengthy discussion: nextcloud/docker#1414
| msg: t( | ||
| 'core', | ||
| 'Module php-imagick in this instance has no SVG support. For better compatibility it is recommended to install it.' | ||
| 'Module php-imagick in this instance has no SVG support. For better compatibility it is recommended to install it, but by enabling this support you are adding a potential security risk.' |
There was a problem hiding this comment.
Adding this part without extra context and this message still being a recommendation is really not useful. :/
Also, by default, Nextcloud uses Imagick with SVG support only to generate some themed icons, which is a far lower exposure surface than the rendering previews for SVG files (which is disabled by default for a good reason).
It seems than nextcloud/docker#1414 is quite confused by all this.
There was a problem hiding this comment.
Ah, interesting! Scrolling by because I was trying to add a similar message, I hadn't realized that imagemagick was used for separate purposes. Let's see if we can finally solve nextcloud/docker#1414 by adding imagemagick to the image instead then.
There was a problem hiding this comment.
Interesting. If it is used to generate themed icons, is this happening all the time or only in certain cases (i.e., not mandatory)?
There was a problem hiding this comment.
It's used for instance to generate avatars containing the user's initials, and fallbacks to the samething with the GD library if it fails (GD may produce ugly things).
server/lib/private/Avatar/PlaceholderAvatar.php
Lines 134 to 136 in 12ed5c9
Pretty much the same goes with themed favicons and app icons when the base logo is an svg.
server/apps/theming/lib/IconBuilder.php
Lines 120 to 223 in 12ed5c9
So it's really as the message says, just better compatibility.
Refers to this lengthy discussion:
nextcloud/docker#1414