
Ever wanted to mock the Cloudflare Image API locally? Here is a sample WordPress plugin that enables cdn-cgi/image/... routes locally and supports only image resizing.
Here is the code: https://gist.github.com/kasparsd/ad32dd602cc72fc824547f484d34449e which I created when testing the Image Pilot plugin integration. https://wpelevator.com/plugins/image-pilot