Fix SVG rendering

Created on 16 June 2023, about 1 year ago

Problem/Motivation

The example on the module page doesn't work because the svg filter code is out of date.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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

Comments & Activities

  • Issue created by @mortona2k
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    This branch includes the patch from the Drupal 10 Compatibility issue.

    SVGs were not being displayed, instead the html to display it was getting printed. I fixed this by using the Markup renderer.

    To test, use the home page example, but just svg for the format. You should see the svg getting rendered without errors.

    This does not fix the ZGR viewer for svgs. I moved the $modurl line into the if statement so it wouldn't trigger an error, but that code needs to be updated. I'm guessing the jar files need to be placed somewhere and that url should point to them.

  • Status changed to Needs review about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle
Production build 0.69.0 2024