Problems with SVG images

Hello,
we are experiencing issues with SVG images uploaded in resource files in different solutions. :smiling_face_with_tear: When we use SVG images, they are visible in Create, but they do not show in the preview. When we upload PNG images, they display correctly. We dont see any errors in the browser inspect log, and the image file is present with a valid URL.
We also have tried tweaking sizes and other properties, but it seems completely random when SVGs work and when they dont.

The image only shows up like this in the preview of the app:

image

3 Likes

Hi! Thank you for letting us know. I experienced the same issue when I tried to recreate your problem. I’ll share this with the team and set up a challenge for it :slight_smile:

1 Like

Any updates on this? It is also not possible to display SVGs from file objects

I found the issue here. Rendering of SVGs breaks when responsive image is enabled. By disabling this, displaying SVGs works again

Apologies for the delayed response here. The issue was correctly registered but was not picked up by our team.

This is now fixed in production for both SVG previews in Resource Files in Create as well as responsive SVGs in the client. It may take up to 72 hours for the broken images to start working (due to caching).

2 Likes