Closed (works as designed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
image system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jan 2019 at 07:03 UTC
Updated:
4 Sep 2020 at 15:58 UTC
Jump to comment: Most recent
Comments
Comment #2
nikkitam commentedComment #3
babusaheb.vikas commentedFor uploading .svg image you need to install svg_insert and svg_image module.
Please check the link for these modules:-
https://github.com/58bits/insert_svg
https://www.drupal.org/project/svg_image
## Installation
1. Download and enable the module as usual.
2. Go to your filters admin (admin/config/content/formats).
3. Edit the format on which you want to enable the insertion of SVGs.
4. Drag the 'S' icon to the "Active toolbar".
5. Configure the plugin settings in the vertical tabs above the toolbar
Save.
Comment #4
babusaheb.vikas commentedComment #5
lukusComment #6
lukusI've installed the svg_image module, but it doesn't seem to function correctly with media.
Comment #7
joseph.olstadComment #8
cilefen commentedComment #9
cilefen commented#3060504: Media Library widget does not render svg images
Comment #11
jwilson3At this point, there are several contrib modules that provide SVG capabilities, so it is hard to know what combination of them works. Below is my preferred recipe, but if you're still on the fence about how to choose the right SVG media module from Drupal 8 contrib, you may find my comparison of the 3 modules helpful to guide your decision making: https://drupal.stackexchange.com/a/280837/3167
This is my recipe that works with Media in Core, and leverages SVG Image Field (copied from https://drupal.stackexchange.com/a/280836/3167)
Comment #12
feuerwagenComment #13
joseph.olstadThere is a contrib module to help with svg images, a new release today.
https://www.drupal.org/project/svg_image
Comment #15
phenaproximaThe Media module itself has no opinion about SVG images. The Image module, on the other hand, doesn't normally allow SVG to be uploaded into any image field, due to the various security and integration issues (i.e., image styles). This is the case regardless of whether the media system is in use.
The SVG Image module does seem to be a good solution here. Getting SVG support into core's image system would be outside the scope of the Media module right now.
I think that, given all these things (and the fact that other issues exist to add SVG support to core), I'm closing this as "works as designed".