Improve SVG Image Field integration

Created on 19 December 2024, 4 months ago

Problem/Motivation

SVGs in the Media Library grid display do not display correctly when using the Vector Image media type installed by SVG Image Field. (I am the SVG Image Field module maintainer).

Steps to reproduce

  1. Install Drupal.
  2. Install Gin.
  3. Install SVG Image Field, following instructions and ensuring the "Vector Image" media type is created.
  4. Update the "Media Library" (Manage Display) to ensure the SVG Image is configured to show "Inline" and "Apply Dimension" 220x220 (for standardization with other SVG images. (Note: the "Apply Dimensions" is a new feature provided by the module).
  5. Upload a Vector Image sized larger than 220 x 220.
  6. Go to /admin/content/media-grid.

Proposed resolution

Apply the same media library styles used on img tags, to svg tags.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024