How to deliver webp format to WP REST API
-
I use both EWWW Image Optimizer plugin and WP Offload Media Lite to generate webp format for upload image and offload to S3. I choose JS Webp Rewriting option to deliver webp format to my site and it works well. But when I call WP rest api :
https://domain.com/wp-json/wp/v2/posts?_embed&slug=this-is-post-slug (GET)
, it just returns jpg/png format, not webp. I expect it returns webp such as JS Webp Rewriting do with my site. Is there any options on EWWW Image Optimizer plugin to setting or I need to custom manually somewhere in my source code?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to deliver webp format to WP REST API’ is closed to new replies.