Skip to main content
2 events
when toggle format what by license comment
Sep 5, 2022 at 17:54 comment added Ron Currently, I'm using <picture> with str_replace to change .png/.jpg to .webp in the src URL, so it's OK if it just creates a copy without WP knowing. Right now, all the content is a placeholder, so converting old images isn't necessary, just new ones. The WebP is used in full size exclusively, so smaller sizes are not needed. Until 6.1 is released, is there any hook I can use to generate a WebP copy of the photo?
Sep 5, 2022 at 17:20 history answered Tom J Nowell CC BY-SA 4.0