SVG icons do not load due to being processed through image style

Created on 25 June 2024, 5 months ago
Updated 9 July 2024, 5 months ago

After adding support for Focal Point, SVG images stored in Icon media item stopped rendering.

The root cause is that the SVG images are get incorrectly processed by the image styles generator, resulting in an error.

Note that while currently OOTB the `Icon` media supports only svg files, the consumer sites may extend it, so the solution to completely remove the `Icon` media from the image styles processing will not work here. Instead, we need to add for a check for an svg file within processing of the media item when generating the URL.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024