• Resolved rustykins

    (@rustykins)


    Hi Marko,

    If there is a specific image that I already converted to webp using my own tool that I am happy with the file size and quality, can I upload this image to replace the one that was created by the plugin (same name), and it all still works?

    Another words, the plugin is able to still create the <picture> tags etc to detect the browser and deliver webp when appropriate?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi,

    Thank you for reaching out.

    If you’ve already created your own WebP version of an image and want to replace the one Imagify generated, here are a few points to keep in mind:

    1. File Naming and Compatibility: Imagify typically names WebP images in a .jpg.webp format to ensure smooth fallback to the original format. Uploading a WebP file directly may not integrate seamlessly with the <picture> tag Imagify generates, as the plugin’s conversion structure won’t detect your manually uploaded WebP files the same way.
    2. Selective Exclusion from Next-Gen: If there are just a few specific images you’d prefer to keep as is, you can add a custom HTML class to prevent them from being displayed in Next-Gen format:
      • For WebP, use imagify-no-webp
      • For AVIF, use imagify-no-avif

    This way, Imagify will skip optimization for these images, while still converting others.

    Hope this helps.

    Best regards,
    Saransh

Viewing 1 replies (of 1 total)

The topic ‘Uploading my webp image’ is closed to new replies.