13 Comments

  1. Vishwajeet Kumar
    · Reply

    These changes to the media library are just awesome and time savings too. Glad to know that WordPress now supports WebP images that are fast to load and are of low sizes. Thanks for the update

    Regards,
    Vishwajeet Kumar

    Report

  2. Dominique Pijnenburg
    · Reply

    I like that filter to convert image formats! However, I’m a bit hesitant to use it. All modern versions of browsers support WebP, but support in Safari is still reported to be incomplete and there’s also people with older versions of browsers. And that’s OK if you use a solution like the one in WP Smush because it provides a fallback, the filter doesn’t (that I’m aware of).

    Report

  3. Ian M. Jones
    · Reply

    Heads up, there’s a typo in the example code for the “image_editor_output_format” filter …

    $formats['image/jpg'] = 'image/webp';

    … should be …

    $formats['image/jpeg'] = 'image/webp';

    … as “image/jpeg” is the standard mime type and WP does not use “image/jpg” by default.

    Report

  4. Paul Lacey
    · Reply

    Copy URL to clipboard! That makes me so happy. I feel like I want to book a call with ALL my clients to tell them this lol.

    Report

    • Caleb Mieszko
      · Reply

      Lol right? I’ve been wondering when they’d UX that part of it for us. Simple, elegant solution, and one I’m so relieved to have as I’m building two new sites chock full of uses for this!

      Report

  5. Caleb Mieszko
    · Reply

    Ah, awesome to see WebP image format and native WP image output hook support – finally! This is a qol and efficiency update I’ve been waiting for for ages.

    Report

  6. David Groh
    · Reply

    It is so sad, that media archives / folders – media files library are not present in the core…

    Report

    • Studio A7
      · Reply

      Yes, folders in library are MUCH more important and there are no any signs on horizon that this feature will appear. It’s pain in the a** since many years for web developers/designers. WordPress became business oriented CMS for company websites but was orignally designed for bloggers. So blogging heritage limit it. I suppose core developers don’t want to break comptibilty. Maybe there should be different versions/modes for bloggers and advanced users?

      Report

  7. Lobsang
    · Reply

    This is great! Where should I add the code to covert jpg to webp?

    Thank you!

    Report

  8. Anotia
    · Reply

    Wow, that’s quite a surprise XD

    Report

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: