Skip to content
Vacuum Image Optimizer1.2.2
1.2.21 min read

WebP

Generate WebP derivatives for JPEG and PNG sources and optimize supported WebP uploads.

WebP is the primary modern format in Vacuum Image Optimizer. The plugin generates WebP output for JPEG and PNG sources and can safely recompress uploaded WebP source files.

WebP derivatives

For JPEG and PNG source images, Vacuum writes a WebP derivative alongside the original. The JPEG or PNG source remains unchanged. Attachment metadata records the derivative path, URL, size, engine, and savings. If a tracked derivative becomes stale, it is rejected and regenerated atomically when processing runs.

WebP source optimization

For WebP uploads, Vacuum may recompress the source file itself. Before replacing a source, it verifies a backup copy and only proceeds when the candidate is smaller. If the source changes later, the plugin retains the older backup and creates a separate backup for the new source. Replacement uses a temporary file and atomic rename so an incomplete output is not published as the source.

Server support

WebP requires either:

  • Imagick with WEBP format support.
  • GD with imagewebp and compatible source read functions.

Use System Status to confirm read and write support.

Related articles