WordPress.org

Plugin Directory

Compresso – Image Optimizer, Compress & Convert Images to WebP

Compresso – Image Optimizer, Compress & Convert Images to WebP

Description

πŸš€ Make your site faster by shrinking your images β€” automatically.

Images are usually the heaviest thing on a WordPress page. Compresso shrinks them by up to 80% and converts them to modern WebP, so your pages load faster and score better on PageSpeed β€” without any visible drop in quality.

The difference: Compresso just works. On first activation it sets up the optimization tools it needs automatically β€” no command line, no manual installs, no developer required. Activate it, and every image you upload is optimized automatically. Everything runs on your own server β€” your images are never sent to a third-party service, there are no monthly limits, and there’s nothing to sign up for.

At a Glance

  • βš™οΈ Nothing to configure β€” Compresso sets up its optimization tools automatically
  • ⚑ Automatic on upload β€” New images are optimized the moment you add them
  • πŸ“¦ Bulk optimize β€” Clean up your entire existing media library in one click
  • πŸ–ΌοΈ WebP conversion β€” Smaller, modern images served automatically (JPG, PNG, GIF)
  • πŸ”’ 100% local β€” Your images never leave your server
  • ♾️ No limits, no API keys β€” Optimize as many images as you want, free

Quick Links

  • Support β€” https://wordpress.org/support/plugin/compresso/

What Compresso does

Compresso optimizes your images across your whole workflow, so you don’t have to think about it. New uploads are compressed automatically in the background, and you can bulk-optimize everything already in your media library in one pass. As your site grows, your images stay light.

By compressing your images and converting them to WebP, Compresso reduces your total page size β€” which means faster load times, better Core Web Vitals, and a smoother experience for visitors, especially on mobile.

Choose how much to compress

You don’t need to understand compression to get great results. Pick a preset and Compresso handles the rest β€” or fine-tune the quality for each format if you want more control.

  • πŸ›‘οΈ Lossless β€” No quality loss at all. Best for logos, illustrations, and images you re-optimize often
  • βš–οΈ Balanced β€” The best trade-off between quality and file size. A great default for most sites
  • ⚑ Aggressive β€” Maximum compression for the smallest possible files, ideal for image-heavy pages

Modern formats: WebP

Compresso automatically creates WebP versions of your JPG, PNG, and GIF images. WebP files are smaller than the originals while looking just as good, and Compresso serves them only to browsers that support them β€” falling back safely to the original format everywhere else. WebP conversion is included free, with no limit on the number of images.

Who it’s for

  • πŸ“ Bloggers and content sites β€” Upload images all day; they’re optimized automatically, no manual work
  • πŸ–ΌοΈ Image-heavy and media-rich sites β€” Galleries, portfolios, and landing pages where images drive most of the page weight
  • πŸš€ Performance-focused sites β€” Anyone chasing better PageSpeed scores and Core Web Vitals
  • πŸ—„οΈ Established sites with big libraries β€” Bulk-optimize thousands of existing images without re-uploading anything
  • 🌍 Sites without a CDN β€” Everything happens locally, so you don’t need any external service

Optimization tools

Compresso uses trusted open-source, command-line optimizers to do the actual compression. On first run it automatically downloads the right tools for your server β€” you don’t install anything yourself. These are the tools it uses:

  • jpegoptim β€” JPEG optimization. https://github.com/tjko/jpegoptim β€” GPL-2.0-or-later
  • jpegtran β€” JPEG lossless transforms (libjpeg-turbo). https://libjpeg-turbo.org/ β€” BSD-3-Clause
  • pngquant β€” PNG lossy compression. https://pngquant.org/ β€” GPL-3.0-or-later
  • optipng β€” PNG lossless optimization. http://optipng.sourceforge.net/ β€” zlib
  • oxipng β€” PNG lossless optimization. https://github.com/shssoichiro/oxipng β€” MIT
  • gifsicle β€” GIF optimization. https://www.lcdf.org/gifsicle/ β€” GPL-2.0-or-later
  • cwebp β€” WebP conversion (libwebp). https://developers.google.com/speed/webp β€” BSD-3-Clause
  • svgo β€” SVG optimization. https://github.com/svg/svgo β€” MIT

If these tools can’t run on your host, Compresso falls back to PHP’s GD library, which still optimizes JPEG and PNG images.

JavaScript libraries (assets/js/)

  • Alpine.js v3.15.12 β€” lightweight reactivity for the admin UI. https://alpinejs.dev/ β€” MIT. Shipped as alpine.min.js; unminified source available from the upstream project.
  • SortableJS v1.15.7 β€” drag-and-drop reordering. https://sortablejs.github.io/Sortable/ β€” MIT. Shipped as sortable.min.js; unminified source available from the upstream project.

Screenshots

Installation

  1. Search for Compresso in the WordPress plugin directory at https://wordpress.org/plugins/compresso/
  2. Click Install Now, then Activate
  3. Open the Compresso menu β€” that’s it. New uploads are optimized automatically, and you can bulk-optimize your existing images anytime.

Alternatively, upload the plugin files manually to /wp-content/plugins/compresso/ and activate.

FAQ

Will this make my images look worse?

No. The default “Balanced” preset makes files dramatically smaller with quality changes you won’t notice. If you want zero quality loss, choose the “Lossless” preset β€” and you can always fine-tune the quality for each format yourself.

Does this plugin send my images to external servers?

No. All image processing happens locally on your server. Your images never leave your site, and there are no API keys or accounts to set up.

Can I optimize images that are already on my site?

Yes. Use Bulk Optimize to compress everything already in your media library β€” even thousands of images β€” without re-uploading anything. New uploads are then optimized automatically.

What is WebP, and do I need it?

WebP is a modern image format that’s much smaller than JPEG or PNG while looking just as good. Compresso creates WebP versions of your images automatically and serves them to browsers that support them, falling back to the original format for any that don’t β€” so your site stays fast and fully compatible.

Do I need special hosting or to install anything?

No. On first run, Compresso automatically downloads the small optimization tools it needs for your server β€” there’s no command line and nothing for you to set up. If a tool can’t run on your host, it falls back to PHP’s built-in image library.

Will it work with my theme and page builder?

Yes. Compresso optimizes the images in your media library, so it works with any theme or page builder. There’s nothing to configure.

What happens to my original images?

By default, Compresso replaces your images with optimized versions. With Pro, you can turn on automatic backups so you can restore the originals at any time.

Will this slow down my site?

No β€” optimization runs in the background and doesn’t affect your site’s frontend. Smaller images actually make your pages load faster.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Compresso – Image Optimizer, Compress & Convert Images to WebP” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release