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

  • Resolved darvishi

    (@themefour)


    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 13 replies - 1 through 13 (of 13 total)
  • darvishi

    (@themefour)

    All modern browsers now support this format. Like Firefox, Chrome, Opera

    MarkRH

    (@markrh)

    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.

    darvishi

    (@themefour)

    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 2 months ago by  darvishi.
    darvishi

    (@themefour)

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

    Moderator Andrew Nevins

    (@anevins)

    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.

    darvishi

    (@themefour)

    thank you. I have a request for a feature.

    darvishi

    (@themefour)

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org 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.

    darvishi

    (@themefour)

    @otto42
    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 2 months ago by  darvishi.
    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org 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.

    darvishi

    (@themefour)

    @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 2 months ago by  darvishi.
    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

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

    darvishi

    (@themefour)

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

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