I'm debating if its easy/worth while to turn all image requests to webp extensions (foobar.webp) and than somehow rewrite back to original path (so file is found) and add to the end of querystring paramter for ImageSharp to make it webp format.
This is what I'm thinking:
Given in umbraco media section i have image /media/some-old-image.jpg
When I will be serving this image via cshtml I would change extension to webp
Than I would add rewrite rule for webp images to rewrite url to jpg
And add query string for imagesharp to output image as WebP
Does this makes sense? Or is there some better way, to turn all images currently inside Umbraco to WebP format?
Awesome, thank you! This made the process very easy for us. One small suggestion would be to use Github releases so it's easy to see which versions are out there and then merge v2 or v1.0.2 into the main branch. Or just see if you can set either of those as the default branch. When you click on the link you provided it wasn't immediately obvious to me that there was any source code posted at all.
Turning all images to WebP
I'm debating if its easy/worth while to turn all image requests to webp extensions (foobar.webp) and than somehow rewrite back to original path (so file is found) and add to the end of querystring paramter for ImageSharp to make it webp format.
This is what I'm thinking:
Does this makes sense? Or is there some better way, to turn all images currently inside Umbraco to WebP format?
You can try using my package, it should do it automatically
https://www.dyfort.com/products/umbraco-autoimage-optimize/ or https://www.nuget.org/packages/Dyfort.Umbraco.AutoImageOptimize/
nice, thanks! is it open source?
Yes, I'll push source shortly
still no github?
https://github.com/yawkale/Dyfort.Umbraco.AutoImageOptimze/ any feedback are welcome
Awesome, thank you! This made the process very easy for us. One small suggestion would be to use Github releases so it's easy to see which versions are out there and then merge v2 or v1.0.2 into the main branch. Or just see if you can set either of those as the default branch. When you click on the link you provided it wasn't immediately obvious to me that there was any source code posted at all.
is working on a reply...