ThemeREX Smart Media Optimizer

Description

Official page · Documentation

ThemeREX Smart Media Optimizer cleans the original image once, when it is uploaded, before WordPress makes its sub-sizes. Every size WordPress makes inherits the result. It is not a compression service: everything runs on your own server, with no account, no quota and no external requests.

What makes it different

  • One pass, before the sub-sizes. The original is fixed once, so no size keeps the GPS data, a wrong orientation or an unreadable name.
  • Privacy without quality loss. GPS location and camera details are removed from JPEG files without re-encoding them. The colour profile is kept.
  • Readable file names. Cyrillic and accented file names become clean Latin names in the same step, and the attachment keeps the original name as its title.
  • Failures are visible. If a step fails, the image keeps a note that you see right after the upload, instead of a silent half-processed file.

What it does

  • File names. Cyrillic (Ukrainian and Russian) file names are transliterated to Latin, accents are removed, and the names are lowercased with hyphens: “Фото з Відпустки (1).JPG” becomes “foto-z-vidpustky-1.jpg”. The attachment keeps the original name as its title.
  • Resizing and cropping. Images larger than the maximum width and height are scaled down, or cropped to exactly that size.
  • Orientation. Photos are rotated by their EXIF orientation, so they never lie on their side.
  • EXIF removal. EXIF, XMP and IPTC data (GPS location, camera details) are removed from JPEG images without re-encoding them. The colour profile is kept.
  • Colour profiles. Wide-gamut photos (Display P3, Adobe RGB) keep their colour profile in the image and in all its sub-sizes, also with the GD library.
  • Title, caption and alt text. The values WordPress reads from the image metadata are kept after EXIF removal.
  • Processing issues. When a step fails, the image keeps a note about it. The note is shown right after the upload, in the attachment details and in the list view of the media library.
  • Edited images. If your site saves images in another format, an image edited in WordPress keeps pointing to the file that was saved.
  • JPEG quality (optional). JPEG images can be re-encoded with the quality you set. The result is kept only if the file gets smaller.

Animated GIF and SVG files are left as they are: they are only renamed.

The settings are on the Media Smart Optimizer screen. Each step has its own option.

Pro version

ThemeREX Smart Media Optimizer Pro is available from themerex.net and installs in place of this free plugin, keeping your settings. It adds:

  • WebP conversion on upload
  • Replace Media: swap an image and keep its ID, title, caption and alt text
  • Conversion of existing images to WebP, with the links updated
  • Image check, which fixes images broken by format conversions
  • Priority support

Everything in this plugin works without the Pro version, with no limits and no account.

Screenshots

Installation

  1. Install the plugin from the Plugins Add New Plugin screen, or upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin on the Plugins screen.
  3. Open Media Smart Optimizer and choose the steps for your uploads.

FAQ

Does the plugin change images already in the media library?

No. Only new uploads are processed.

Is the uploaded file kept?

No. The plugin replaces the uploaded file with the processed one, so make sure the settings suit you before uploading many images. If a step fails, the file stays as it was.

Which image library does it need?

GD or Imagick, the libraries WordPress itself uses for images. EXIF data is removed from JPEG files without either of them.

What happens to images too large for the server memory?

The upload is refused with a message that tells how large the image may be, instead of failing with an “HTTP error” after the file is saved.

Does the plugin send any data to other sites?

No. All processing is done on your server.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“ThemeREX Smart Media Optimizer” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release.