• Resolved webymi

    (@webymi)


    Is there a way to disable the WebP conversion for images in a certain post type?
    OR is there a way to exclude files on a per image basis?

    Use case: I have a Custom Post Type that stores information that is later sent via email. Many email clients don’t support WebP, so I just need the default image. Is this possible?

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

    (@wp_media)

    Hi @webymi!

    This is Joseph from Imagify, and I’ll gladly assist you here!

    Unfortunately, it is not possible to disable WebP conversion for images of a specific post type or to exclude files on a per-image basis.

    Regarding your specific use case, since Imagify keeps both the optimized JPG/PNG version of your images along with the WebP versions on your server after optimization, perhaps you could find a way to have the email use the optimized JPG/PNG images rather than the WebP.

    All file naming conventions are as follows:

    The optimized JPG/PNG images end up with the exact same name as before. So, for example:

    https://example.com/wp-content/uploads/2021/10/image01.jpg

    And the WebP is named like this:

    https://example.com/wp-content/uploads/2021/10/image01.jpg.webp

    I hope that can help you find a solution that can work for you!

    Please let me know if you have any further questions on this and I’ll be very happy to assist however I can!

    Best regards,
    Joseph

Viewing 1 replies (of 1 total)

The topic ‘Exclude Post Type from WebP’ is closed to new replies.