• themefour

    (@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 15 replies - 1 through 15 (of 17 total)
  • Thread Starter themefour

    (@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.

    Thread Starter themefour

    (@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 6 years ago by themefour.
    Thread Starter themefour

    (@themefour)

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

    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.

    Thread Starter themefour

    (@themefour)

    thank you. I have a request for a feature.

    Thread Starter themefour

    (@themefour)

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com 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.

    Thread Starter themefour

    (@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 6 years ago by themefour.
    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com 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.

    Thread Starter themefour

    (@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 6 years ago by themefour.
    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

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

    Thread Starter themefour

    (@themefour)

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

    Thread Starter themefour

    (@themefour)

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

    Moderator James Huff

    (@macmanx)

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Add Support .webp format imge’ is closed to new replies.