WordPress image optimization: the full pipeline
WordPress image optimization is not a single action. It is a pipeline. The image must be analyzed for content. Metadata must be generated. The file must be compressed. The format may need conversion. Thumbnails must be regenerated. URLs must be updated across the database. Redirects must be added for old URLs.
Picture Optimizer handles every step. Install the WordPress plugin (Pro and up), pick a mode for the batch and run it. The pipeline runs from analysis to replacement without manual intervention.
What the plugin does to each image
1. The plugin sends the image to Picture Optimizer with your API key. 2. AI vision writes alt text, title, caption and a file name. 3. The image is compressed, and converted to WebP or AVIF if you chose it. 4. The original is swapped and thumbnails regenerated. 5. Every URL in posts, meta and widgets is updated, with redirects for the old ones. 6. Every original is backed up, so you can revert any image.
Compatibility
The plugin works with WordPress 5.8+ and PHP 7.4+, and with WooCommerce, Gutenberg and Elementor. Cloudflare, LiteSpeed Cache and WP Rocket are on the plugin's compatibility list.
The plugin changes only the image files and their links, not your theme's code, JavaScript or CSS.
How to optimize images in WordPress, step by step
1. Decide how the images get into WordPress. On Starter, compress new photos in the tool and send them to your media library with their alt text: WordPress blog image optimization shows that setup. For the images already in your library, use the WordPress image optimization plugin, on Pro and up.
2. Choose the output format: WebP or AVIF for the smallest files, or JPG to keep the original format.
3. Choose a quality preset, then export a sample of a few images and check the real file sizes.
4. Run the rest. The plugin replaces each original, regenerates the thumbnails and updates every link, with a redirect from the old URL.
5. If an image looks wrong, revert it: every original is backed up.
Questions
Common questions about this tool.

