Hi!
I’m glad Imgix now supports SVG and I’ve just uploaded some SVGs again. It’s working if I manually add fm=auto to the url but the graphql responsiveImage type is null.
Will it be possible to use graphql and imgixParams to get the transformed src of SVG images?
Thanks !
Hey, after some considerations we decided to revert the behaviour to the original one, so Imgix transformations are still not supported for SVG files and will be ignored. The reason is that Imgix sometimes fails to interpret SVGs correctly and returns unexpected results, so we prefer to ensure a safe result for everyone in all cases.
thank you @s.verna
Just a note:
I used to select the “images” pre-defined extensions option when modelling asset fields, assuming those were the Imgix accepted formats. However, svg is included in this list.
I’m now changing it to custom extensions.
To be honest, I’m very skeptical that it will ever be implemented 100% correctly. The SVG format is very “dynamic”, for example it allows to include text referencing external fonts… how could Imgix ever render them correctly? The risk of getting something different than expected will always be there unfortunately.