WebP Uploads

WebP Uploads

Creates WebP versions for new JPEG image uploads if supported by the server.
Rating:
2.9
star-rating-1star-rating-2star-rating-3star-rating-4star-rating-5
Active Installations:
100000+
Last Updated:
Jan 27, 2025
WordPress Version:
6.6 or higher
Tested up to:
6.7.2

WebP and AVIF Support

Enhance your media uploads with modern image formats

This plugin enables WebP and AVIF support for media uploads in WordPress. It automatically generates AVIF images if supported on the server, otherwise, it uses WebP as the output format. You can choose the output format in the Media Settings. It also allows easy regeneration of images using plugins like Regenerate Thumbnails or via WP-CLI.

Generate modern image formats (WebP or AVIF) for new uploads, improving image quality and website performance.

Regenerate existing images

Easily convert pre-existing images to modern formats using a plugin or WP-CLI command for a consistent and optimized media library.

Optimize Image Formats

Improve website performance with WebP and AVIF

2.5.0

Enhancements

  • Switch to wp_content_img_tag filter for improved image handling. (1772)

2.4.0

Enhancements

  • Automatically opt into 1536×1536 and 2048×2048 sizes when generating fallback images. (1679)
  • Convert WebP to AVIF on upload. (1724)
  • Enable end user opt-in to generate all sizes in fallback format. (1689)

2.3.0

Enhancements

  • Introduce webp_uploads_get_file_mime_type helper function. (1642)
  • Rename webp_uploads_get_file_mime_type to webp_uploads_get_attachment_file_mime_type to clarify scope. (1662)

Bug Fixes

  • Fix bug that would prevent uploaded images from being converted to the intended output format when having fallback formats enabled. (1635)

2.2.0

Enhancements

  • Convert uploaded PNG files to AVIF or WebP. (1421)

Bug Fixes

  • Account for responsive images being disabled when generating a PICTURE element. (1449)

2.1.0

Enhancements

  • Improve disabling checkbox for Picture Element on Media settings screen. (1470)

Bug Fixes

  • Add missing full size image in PICTURE > SOURCE srcset. (1437)
  • Correct the fallback image in PICTURE element. (1408)
  • Don’t wrap PICTURE element if JPEG fallback is not available. (1450)
  • Fix setting sizes attribute on PICTURE > SOURCE elements. (1354)
  • Remove string type hint from webp_uploads_sanitize_image_format() to prevent possible fatal error. (1410)

Documentation

  • Explain how to regenerate images in the Modern Image Formats readme. (1348)

2.0.2

Enhancements

  • I18N: Add context to Modern Image Formats section title. (1287)

Bug Fixes

  • Improve compatibility of styling picture elements. (1307)

2.0.1

Bug Fixes

  • Fix fatal error when another the_content filter callback returns null instead of a string. (1283)

2.0.0

Features

  • Add picture element support. (73)
  • Add AVIF image format support. Add setting for output image format to choose between WebP and AVIF. (1176)

Enhancements

  • Improve Settings->Media controls for Modern Image Formats. (1273)
  • Remove obsolete fallback script now that picture element is supported. (1269)

1.1.1

Enhancements

  • Prepend Settings link in webp-uploads. (1146)
  • Improve overall code quality with stricter static analysis checks. (775)
  • Bump minimum PHP requirement to 7.2. (1130)

Documentation

  • Updated inline documentation. (1160)

1.1.0

  • Add link to WebP settings to plugins table. (1036)
  • Rename plugin to “Modern Image Formats”. (1101)
  • Use plugin slug for generator tag. (1103)
  • Delete option when uninstalling the Modern Image Formats plugin. (1116)
  • Bump minimum required WP version to 6.4. (1062)
  • Update tested WordPress version to 6.5. (1027)

1.0.5

  • Exclude “.wordpress-org” directory when deploying standalone plugins. (866)

1.0.4

  • Bump minimum required PHP version to 7.0 and minimum required WP version to 6.3. (851)

1.0.3

  • Add standalone plugin assets. (815)

1.0.2

  • Fix WebP handling when editing images based on WordPress 6.3 change. (796)

1.0.1

  • Bump tested up to version to 6.3. (772)

1.0.0

  • Initial release of the Modern Image Formats plugin as a standalone plugin. (664)

image type

By patrikmuse on November 4, 2024

the images are compressed correctly but the type remains image/jpeg and I don't know if this can lead to future problems

My website got broken

By ℭ𝔟𝔟𝔩 (zendyteam) on October 26, 2024

I hope I'm not the single one here with the same problem. My website images now not getting loaded properly. Need to refresh a couple of times to see pictures by picture. It shows that my pictures are missing and look like broken images (404 images not found). Now WordPress automatically .avif not .jpg as I upload my Pictures.

P.S. I want to know if is a way do disable/uninstall this crap?

Doesn't work

By artyberty on October 10, 2024

Just does not do anything. No message. No Error. Just not converting any images. Since there is also not a lot of documentation or community around this plugin I will give up and do this externally.

Don't Regenerate Thumbnails!

By mkautsarjuhari on October 6, 2024

Don't ever regenerate thumbnail with this plugin, it will broke a lot of Images on the frontend because Block editor is still mentioning the old extension rather than AVIF or WEBP. so if you don't want a lot of your images is broken, don't use it.

Atleast until the problem is fixed.

Lots of Broken Images for Thumbnails

By yoursiteneedsme (charrabennett) on July 18, 2024

This plugin worked like it says but it did not change all of the images in the blog posts - only some. So I have a ton of broken images because they are referencing the .jpg and not the .avif

I even tried regenrate thumbnails and that did not fix the issue.

All of the broken images are the thumnails that are resized. It would be better if it did not automatically delete those images so that at least if it didnt replace them all in the blog posts the old image would still resolve.

Works very well

By sigtunasimklubb on May 21, 2024

Works very well for me. Would love to see .png format conversion .

Doesnt work at all..

By Kenneth (wazone) on May 10, 2024

This does not work! Automatic make jpg to webp? No it doesnt.

Works perfect!

By Anja Pestov (anjape) on March 25, 2024

Simple Plugin, that does it's one simple job very good. Definitely a recommendation!

Causes error 500 on peepso avatar upload

By pscolv on February 5, 2024

I've had a hard time with an issue making it impossible for my users to upload their profile avatar (using Peepso plugin). Trying to debug the Ajax call, I've observed an error 500 message, making the whole website unresponsive when being called upon avatar confirmation.

After proceeding by elimination, I finally located the issue to this new extension I had installed some time ago.

Next time I'll be more prudent...

Works like a charm, but there's no option to convert old images

By Panos Sakalakis (meymigrou) on January 20, 2024

The plugin does exactly what it says; Adds support for WebP images and automatically converts the pictures you upload to that specific format. However, not having the option to convert existing images is a big feature missing from the plugin for me.

I don't know what you have in your future plans, but what would you recommend for converting old images to WebP and deleting their original format to save disk space? I'm currently using WebP Express, but I wonder if you recommend something else?

Try other plugins too!

QQWorld Auto Save Images

Automatically keep the all remote picture to the local media libary when you publishing posts, and automatically set featured image.

Try Demo More Details

WOW Slider

WOW Slider is a Wordpress slider with stunning visual effects and tons of professionally made templates.

Try Demo More Details

ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization

Start serving properly sized, smart cropped & optimized images, plus CSS, JS and fonts from our CDN with a click; Automatic AVIF & WebP support.

Try Demo More Details
Author Site Author Site

Try WebP Uploads With InstaWP

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.