- Issue created by @hkirsman
- Status changed to Closed: outdated
about 2 months ago 8:46am 15 October 2024 Work on this is being handled in 📌 Clean up gutenberg.settings config Active , and relevant credit is being attributed to that issue instead
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.
Discuss if this makes more sense. Implement if needed.
Active
2.6
Code
Work on this is being handled in 📌 Clean up gutenberg.settings config Active , and relevant credit is being attributed to that issue instead