# Image Optimizer for WordPress

> Save uploaded JPEG and PNG images as WebP or AVIF, set the compression quality and downscale huge uploads. Uses your server's GD/Imagick, no external…

TW-PRF-08 Performance


Save uploaded JPEG and PNG images as WebP or AVIF, set the compression quality and downscale huge uploads. Uses your server's GD/Imagick, no external service.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Image Optimizer

**Part number**
: TW-PRF-08
**Section**
: [Performance](https://togglework.app/features/performance/)
**Settings**
: 5 (2 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Images are usually the heaviest part of a page, and the main image is often the element Google uses to time Largest Contentful Paint. Photos straight from a phone or camera can be several megabytes and thousands of pixels wide, far more than any screen shows.

Saving them as WebP or AVIF at a sensible size and quality makes them a fraction of the weight with no visible difference.

### What it does

- Saves new JPEG and PNG uploads as WebP or AVIF (AVIF falls back to WebP where the server can’t make it).
- Keeps PNG transparency; can leave PNGs alone for lossless screenshots.
- Sets the compression quality (default 80).
- Downscales huge uploads to 2560 pixels on the longest side.
- Strips camera and location data from resized images.
- Uses your own server (GD or Imagick). No external service, no per-image fee.

![Image Optimizer settings screen in the Toggleworks WordPress plugin, showing Output format, Convert PNG images too, Quality, Downscale uploads larger than (px)](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-image-optimizer.webp?v=1795524214)

The Image Optimizer screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch Image Optimizer on. WebP at quality 80 is a good default.
2. Upload a test photo and compare the file size in the Media Library.
3. To convert images you uploaded before, use [Bulk WebP Converter](https://togglework.app/features/performance/webp-converter/).

## What you can set

Switch Image Optimizer on in Toggleworks → Performance, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Output format
- Convert PNG images too
- Quality
- Downscale uploads larger than (px)
- Strip EXIF/IPTC metadata from resized images

## Good to know

- AVIF needs a recent version of GD or Imagick on your server. If it isn’t available, files are saved as WebP instead.
- Turn off PNG conversion if you publish diagrams or screenshots where every pixel matters.

[Guide: How to speed up a WordPress site, in the right order](https://togglework.app/guides/speed-up-wordpress/)

## One less plugin to install

Image Optimizer does a job people often install a separate plugin for:

- Compressing images on uploadOften done with Smush

## Comes with 187 more parts

Image Optimizer is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Performance parts](https://togglework.app/features/performance/)

### People also look for it as

- webp
- avif
- compress
- quality
- upload
- resize
- big image
- exif
- media

## Often switched on with it

- [Image Service (on-the-fly AVIF)](https://togglework.app/features/performance/image-service/) — TW-PRF-09 · Serve every image at the exact width the screen needs, as AVIF or WebP when the browser supports it — generated on first request… · 3 settings
- [Media Replace](https://togglework.app/features/core/media-replace/) — TW-COR-14 · Upload a new file over an existing media item. The ID and URL stay the same, so every link and embed keeps working. · Own screen in wp-admin
- [Bulk WebP Converter](https://togglework.app/features/performance/webp-converter/) — TW-PRF-18 · Convert your existing media library to WebP in the background and serve the smaller files automatically. Originals are kept, so… · 3 settings
- [Image Sizes](https://togglework.app/features/performance/image-sizes/) — TW-PRF-10 · Stop generating image sizes the site never uses. Each upload creates fewer files, saving disk space and upload time. · 2 settings
- [SVG Upload](https://togglework.app/features/core/svg-upload/) — TW-COR-24 · Let chosen roles upload SVG images. Every file is sanitized (scripts, event handlers and external references removed) before it… · 1 setting
- [Media Tools](https://togglework.app/features/performance/media-tools/) — TW-PRF-12 · Everyday Media Library upgrades: tidy file names, watermark uploads, rename and duplicate files, download several as a ZIP, find… · 16 settings

## Questions

**Is Image Optimizer included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Image Optimizer among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Image Optimizer slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Image Optimizer only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Image Optimizer before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/performance/image-optimizer/
