Allow SVG uploads in widget (svg_image compatibility)

Created on 26 March 2020, about 5 years ago
Updated 30 January 2023, over 2 years ago

Though obviously SVG images can't be cropped the way other mimetypes are, it'd still be nice to allow their upload with the Focal Point widget.

I'm using https://www.drupal.org/project/svg_image β†’ which allows SVG images in core's image widget.

  • With the "Image (Focal Point)" widget, I can't upload an SVG ("Only files with the following extensions are allowed...").
  • If I change the field widget to core's "Image" widget, I can upload SVG files.
  • I can then change the widget back to the "Image (Focal Point)" widget, and there are no problems with the SVG I'd uploaded: I can see it in my Media admin listing; I can see it in the Media library; I can use it on a page and it looks totally fine; I can even edit the Media entity and replace the SVG file.

I'm hoping it would be a really simple fix to allow the mimetype to be uploaded even if SVGs can't take advantage of any of Focal Point's awesomeness.

Thanks!

✨ Feature request
Status

Postponed

Version

1.0

Component

Other Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kasey_MK

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024