Support » Requests and Feedback » Add Support .webp format imge

  • Resolved darvishi


    One of the great and modern formats. But WordPress is not supported! Please add this awesome format to WordPress. A very important feature in web design.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • All modern browsers now support this format. Like Firefox, Chrome, Opera

    Well, in your theme’s functions.php can add the following to at least allow you to upload a WEBP:

    add_filter( 'upload_mimes', 'my_myme_types', 1, 1 );
    function my_myme_types( $mime_types ) {
      $mime_types['webp'] = 'image/webp';     // Adding .webp extension
    //  unset( $mime_types['xls'] );  // Remove .xls extension
    //  unset( $mime_types['xlsx'] ); // Remove .xlsx extension
      return $mime_types;

    But, the image handling functions don’t all seem to deal with it as thumbnails aren’t generated.

    Thanks. But this code has a problem and the site does not go up (down) by adding it. Do not be able to add this feature to the next version of WordPress? It’s great

    • This reply was modified 8 months, 2 weeks ago by darvishi.

    We hope you add thumbs and support. Web designers need it.

    Andrew Nevins


    WCLDN 2018 Contributor | Volunteer support

    You’ve opened a support topic and you were rightly given support by Mark. If you do not want help and instead want to request a feature, you ought to be posting in the “Requests and Features” forum so that you don’t waste our volutneers’ time. I’ve moved your thread for now.

    thank you. I have a request for a feature.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    The problem isn’t webp support in WordPress, but webp support in the underlying libraries.

    WordPress is built in PHP, atop the various PHP extensions. Format support for images is handled by the underlying code, namely either the GD library or the ImageMagick library.

    When the PHP versions start to get updated (and you’ll note that WordPress is working along these lines already) then the newer versions of these libraries and PHP have support for the webp format, then it can be added to WordPress.

    I’ve uploaded this format using the code in functions theme. WordPress does not support this format at all. What are some of the features in this release? Can you refer to add this feature?

    • This reply was modified 8 months, 2 weeks ago by darvishi.
    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    @themefour WordPress has no support for the webp format at all. Like I said, we have to get PHP updated to a sane place first.

    @otto42 Excellent. However, do not you want to add this extension (.webp) to WordPress? Can you follow this up? I am ready to apply ten more times to add this format.

    • This reply was modified 8 months, 2 weeks ago by darvishi.
    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    It definitely won’t happen before 5.3, but it might happen this year.

    @otto42 I hope. On many Famous sites, I’ve used the format for images. thank you

    Will this format be supported in WordPress 5.3? I’m waiting for it!

    Moderator James Huff


    Volunteer Moderator

    There’s no need to keep asking, simply subscribe to the following tickets for updates:

Viewing 15 replies - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.