Problem/Motivation

In the 2.0.x branch, SVG image field provides support for the core Media Library. That said, it still requires manual configuration, for example to set up a new Vector Image media type.

Proposed resolution

Provide default configuration (perhaps in a submodule) to implement this directly, so site builders can get this functionality up and running quickly, and also provide a reliable "known good" configuration to assist in troubleshooting and support.

Remaining tasks

  • Configure a media type with all known best practices
  • Export the configuration
  • Create a submodule, with the configuration in a config/install directory
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mandclu created an issue. See original summary.

Arthur Lichtenberger’s picture

I am a professor putting together a multi-school user facility operations plan in the time of Covid. I would like to use SVG vector image files on the user sign-up webpage. But when I go to insert such a file, its not supported. Is there a setting I could change to allow this? Note, these images come from Autocad floor plans (of large regions), output to PDF and scaled down to small size while maintaining crisp image boundaries. Saving as SVG keeps the crisp look, saving at a png, jpeg etc makes everything blurry.

mandclu’s picture

Could you upload a sample file? I just want to rule out that the problem is in how the files are being saved,

mandclu’s picture

Status: Active » Needs review
FileSize
8.61 KB

First attempt at providing a pre-made media bundle in a submodule.

mandclu’s picture

mandclu’s picture

FileSize
8.62 KB

Realized I had an illegal character in the info.yml file. Here's an updated patch.

mandclu’s picture

Issue tags: +midcamp2021
mandclu’s picture

FileSize
8.5 KB

Updated patch, to improve some issues identified during testing. In particular, it's recommended to install the Medial Library before the submodule, if the two will be used together.

mandclu’s picture

FileSize
8.5 KB

Apostrophes in yml files are tricksy.

mandclu’s picture

FileSize
8.5 KB

Once more with feeling.

  • mandclu authored 0bcf017 on 2.0.x
    Issue #3187471 by mandclu: Provide a preconfigured Vector Image media...
mandclu’s picture

Status: Needs review » Fixed

Merged in what we have so far, hopefully can refine further as necessary based on feedback.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.