Followup: SVG's should not use image styles

Created on 13 February 2023, almost 2 years ago

Problem/Motivation

We implemented fix for SVG and images styles in https://www.drupal.org/project/gutenberg/issues/3205572 🐛 SVG's should not use image styles Needs work

After the issue was fixed there was another suggestion by @codebymikey:

I believe a more robust way to address this functionality is to make use of the ImageStyleInterface::supportsUri method to ensure that the styles are only generated if the URI is actually supported by the style.

It'll avoid edge cases like .webp or .bmp file uploads breaking the site.

Proposed resolution

Discuss if this makes more sense. Implement if needed.

📌 Task
Status

Active

Version

2.6

Component

Code

Created by

🇪🇪Estonia hkirsman

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

Comments & Activities

Production build 0.71.5 2024