You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am facing with some undocumented behaviour
If I have svg image as a source and enable all features with AVIF/WebP support detection, svg image will not be processed and imgproxy return svg image.
Looks like it skips everytime, when we have svg source image with missing extension
So, everytime, when I have svg source, I need to add any extension, just to force this feature with detection. For example https://example.com/imagereturns svg image https://example.com/image@jpegreturns in respect of accept header, webp or avif
Could you please explain to me, why it works like this? Is there any problem with conversion svg?
The text was updated successfully, but these errors were encountered:
SVGs are not rasterized unless the resulting format is explicitly specified. In the vast majority of cases rasterizing SVG doesn't bring any benefit. The only case I know where it makes sense is email.
However, having a rasterize_svg option may be useful 🤔
In some cases svg icon is much more easier to draw, but iOS application have troubles with svg and choose webp format (or pdf but this is really bad way :))
I will try to implement this option and bring pull request to you
Thank you
Hi, I am facing with some undocumented behaviour
If I have svg image as a source and enable all features with AVIF/WebP support detection, svg image will not be processed and imgproxy return svg image.
Looks like it skips everytime, when we have svg source image with missing extension
imgproxy/processing_handler.go
Lines 371 to 375 in 5d4a612
So, everytime, when I have svg source, I need to add any extension, just to force this feature with detection. For example
https://example.com/image
returns svg image
https://example.com/image@jpeg
returns in respect of accept header, webp or avif
Could you please explain to me, why it works like this? Is there any problem with conversion svg?
The text was updated successfully, but these errors were encountered: