PixelKeep

Description

PixelKeep compresses your Media Library on your own server. Your images never leave it.

  • Compresses JPEG, PNG, GIF and WebP files, keeping transparency and animation.
  • Backs up each original and restores it byte for byte.
  • Works in the background, so uploads stay fast and bulk runs continue after you close the browser.
  • Never replaces a file with a larger one, and always removes GPS location data.
  • Creates WebP and AVIF copies and serves them through picture elements, with your original as the fallback.
  • Includes presets, a before and after comparison, and WP-CLI commands.
  • Searchable history with CSV export, a chart of real savings, maintenance tools and Site Health checks.
  • Supports multisite with network defaults and per-site settings.
  • Can use pngquant, oxipng, jpegoptim, cwebp and avifenc if your server has them.

Privacy

PixelKeep does not contact any external server, does not track anything, and adds nothing to your public pages. All processing happens on your own server. To keep background work moving, the plugin’s bundled Action Scheduler library sends requests to your own site.

Source code and libraries

All PHP, JavaScript and CSS in this plugin is unminified source. To rebuild the package, run composer install and bin/build.sh.

PixelKeep bundles Action Scheduler (GPL-3.0-or-later).

Installation

  1. Upload the plugin and activate it.
  2. Go to PixelKeep Bulk Optimization and click Scan library.
  3. Click Optimize pending images.

New uploads are optimized automatically. On Nginx, add the rule shown on the plugin’s pages to fully block the backup folder.

FAQ

Does it create WebP and AVIF?

Yes, once you turn them on under Settings Modern formats. Your originals stay as they are, and browsers that support neither format load the original. A copy is only kept when it is smaller, so with Lossless WebP on, most photos get none.

What does my server need?

PHP 8.2 or newer, WordPress 6.9 or newer, and the Imagick or GD extension. Imagick is preferred: GD cannot process animation or convert colors to sRGB.

Can I undo it?

Yes, while backups are on, which is the default. Use Restore on one image, on selected images in the Media Library, or on all images from the Bulk Optimization page.

Does it run programs on my server?

Only if you turn on Use local programs, which is off by default. It then starts pngquant, oxipng, jpegoptim, cwebp or avifenc if they are already installed. The plugin does not download or include any of them, and images stay on your server.

Why was an image skipped?

The Media Library shows the reason. Common ones are a file too large for the available memory, and an animated image on a server that only has GD. Skipped files are not changed at all.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“PixelKeep” is open source software. The following people have contributed to this plugin.

Contributors

Translate “PixelKeep” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.2.0

  • WebP and AVIF delivery now covers images in themes, page builders and templates. Tested with Divi 5; builder editors are left alone.
  • History search, filters and CSV export.
  • Chart of space saved per day.
  • New tools: rebuild records, verify backups, find orphaned backups.
  • Site Health tests and debug information.
  • Multisite network defaults with per-site settings.
  • Optional local programs, off by default.
  • Action Scheduler updated to 4.2.0. WordPress 6.9 or newer is now required.

1.1.0

  • Added WebP and AVIF copies, picture delivery, optional server rules, and the Format Conversion page.
  • Added wp pixelkeep convert.
  • The backup warning now comes from a real test, and notices appear only where they are relevant.

1.0.0

  • First release.