WebberZone Image Optimizer Docs

WebberZone Image Optimizer WP-CLI

WebberZone Image Optimizer registers WP-CLI commands under wp wzio, useful for converting a library from a script, cron job, or deployment step without opening the admin screens.

wp wzio status

Shows which drivers and formats this server can encode, the currently configured formats, and how much of the library is converted.

wp wzio status

wp wzio convert

Converts one or more attachments immediately.

wp wzio convert 7214
wp wzio convert --formats=webp,avif --force

wp wzio queue

Adds every unconverted attachment to the background queue, the same queue the Bulk Optimize screen uses.

wp wzio queue

wp wzio run

Works through the queue in batches until it is empty (or a batch limit is reached).

wp wzio run

If another worker holds the queue lock, the command reports an error and exits rather than processing concurrently.

wp wzio clean

Deletes the generated WebP/AVIF files for one or more attachments. Original images are never touched.

wp wzio clean 7214

See also