- Issue created by @joseph.olstad
It is not possible to apply an image style to an SVG image however the images in the media browser apply the "thumbnail" view mode which applies an image style for "thumbnail".
This is a problem for image formats like SVG which are vector based and do not need or cannot be image processed in the same way as bitmap type image formats are.
I'm thinking this could be fixed with a preprocess for image type and a special twig for the thumbnail format. However there's likely better ideas out there, just focused on the most common issue out of the box which would be thumbnail since that affects the media browser.
Install WxT 6.1.x or WxT 5.4.x
Add an SVG image as a media image
Open the media browser, try and find it, notice the image is not rendered.
There's possibly a few solutions, perhaps even a core patch which would skip all image processing for svg and just return the original image. However otherwise, a preprocess for image type and a doctored twig for the thumbnail image view mode
Review possible solutions
TBD
TBD
N/A
Active
6.1
Code