Media Library widget does not render svg images

Created on 9 June 2019, about 5 years ago
Updated 28 February 2024, 4 months ago

I am using media library, media types and paragraphs to create content. There is a problem with rendering a .svg images.

How to reproduce:
To upload .svg image, use Svg Image module.
I had an image media type (Entity reference), attached to content type. I am using media library widget to add media. When I try to upload new image with .svg extension, it doesn't have thumbnail.

Order of reproducing:





Expected behavior:
Image should have style which render the .svg file.

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated about 19 hours ago

Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand John Pitcairn

    Note if you use a dedicated media type for SVGs (ie"logo" in my case), you can set the image formatter to output "original image" for all view modes, and that will display just fine in the media library and widget.

Production build 0.69.0 2024