I'd like to use ImageProcessor to serve WebP images - i've installed the necessary plugin and works great. Problem is that WebP doesn't work in IE11 and we still need to support the browser
I think the best way around this would be to use an IIS Rewrite to parse querystrings for format=webp and replace it with format=jpg when the user agent is MSIE but I have no idea how to create that rewrite.
WebP / IE11 / ImageProcessor / IIS Rewrite
I'd like to use ImageProcessor to serve WebP images - i've installed the necessary plugin and works great. Problem is that WebP doesn't work in IE11 and we still need to support the browser
I think the best way around this would be to use an IIS Rewrite to parse querystrings for format=webp and replace it with format=jpg when the user agent is MSIE but I have no idea how to create that rewrite.
Thanks!
Hi Dan
Could you use the Picture element to serve your image?
Example stolen from @Soren in this thread:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/94579-how-to-use-webp-format-with-the-image-processor#comment-300798
regards
Marc
Thanks for mentioning, @Marc.
@Dan, you can also handle it serverside - shown here by Kieron https://kieron.codes/blog/using-webp-images-in-umbraco/
I prefer the picture tag though :)
Thanks for these suggestions - both are really useful. I went for the server side solution as it's an existing site and it minimised code changes.
is working on a reply...