Convert Images to WebP on Upload

By Daniel Esparza

20+ active installationsVersion 1.1.0

Automatically converts JPG and PNG images to WebP when they are uploaded, reducing file size and improving performance.

Description

Convert Images to WebP on Upload converts JPG and PNG images to WebP at the moment they are uploaded. It uses Imagick when available, or GD as a fallback. Simple settings let you enable or disable the conversion and set the WebP quality.

GIF images are not converted, so animated GIFs keep their animation.

Video

Installation

  1. Upload the convert-images-webp-upload folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Convert to WebP in the admin menu to set the quality.

FAQ

Is the original image deleted?

Yes. The uploaded JPG or PNG is replaced by its WebP version before WordPress stores it, so only the .webp file is kept.

What does the server need?

Imagick, or GD with imagewebp support. If neither is available, images are uploaded without conversion.

Are GIF images converted?

No. GIF images are uploaded unchanged.

Screenshots

Changelog

1.1.0

  • GIF images are no longer converted (animated GIFs lost their animation).
  • Interface strings in English, ready for translation on translate.wordpress.org.
  • Readme: removed the “Preserve original” option and the [ciwup_info] shortcode, which do not exist.
  • Removed an unused default option.
  • Plugin header: added Requires at least, Requires PHP and License URI.

1.0.0

  • Initial release: WebP conversion on upload and settings page.