'Azure CDN Image Conversion to webp using ImageProcessor

I have a lot of images jpg and png which are usually served via CDN however I now want to optimize them by converting them to webp on the fly. I've tried to create a custom ImageService to handle them but it is not being triggered. I've put in all the necessary settings in the imageprocessor Security.config but still no luck. Any suggestions welcome.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source