Allow limited localhost support to test PICTURE tag syntax

I understand the plugin doesn’t support localhost. I’m not looking to optimize image via localhost, i.e., sending images via API to shortpixel for compression.

Instead, I’m trying to test out the <picture> tag setting and functionality within ShortPixel that the plugin generates.

This shouldn’t require communicating with outside servers as it’s just checking to see if files exist on the hard disk and swapping out the image tag.

I’m manually creating WEBP and AVIF files in the uploads folder to see how it would perform on a localhost dev server.

Is there a way to enable at least this capability? Otherwise, I have to test it on a live or staging server.

If not, could you either 1) enable it within a future update or 2) put this function into a standalone plugin?



This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer