Image Optimizer resizes large JPEG and PNG uploads to a width you choose and recompresses them, keeping the new file only when it’s smaller or has been resized. It also makes WebP copies, and AVIF copies where your server supports it.
Visitors whose browsers support the newer formats get the smaller files, and everyone else gets the original. Each thumbnail uses its own copy, so crops and responsive sizes stay correct.
Features
- Resizes and recompresses new uploads to a maximum width
- Makes WebP and AVIF copies, optionally for every thumbnail size
- Serves them with picture tags, or site-wide through Apache rewrite rules (nginx rules are in the readme)
- Bulk optimiser for existing images that works in small batches and can resume
- Disk space estimate and a guard that stops before the disk gets too full
- Optional backup of originals, off by default
- Fixes phone photo orientation before recompressing