Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Speed & performance · Guide

How to Use Imagify Plugin in WordPress: A Beginner's Guide

How to Use Imagify Plugin in WordPress: A Beginner's Guide

Short answer

Install Imagify from Plugins, create a free account to get an API key, and paste it into the Imagify settings. Keep automatic optimization and backups on, choose WebP or AVIF, then run Bulk Optimization from the Media menu to compress your existing images.

Key takeaways

  • Imagify compresses images on its own servers, not on your host.
  • An API key from a free account links your site to Imagify.
  • Keep the backup option on so you can restore originals.
  • Picture tags are the safest way to serve WebP or AVIF.
  • Use only one image optimizer to avoid double compression.

How do you use the Imagify plugin in WordPress?

Install Imagify, create a free account to get your API key, set your compression and next-gen format options in Settings > Imagify, then run Bulk Optimization to shrink the images already in your library.

Imagify is an image optimization plugin from WP Media, the team behind WP Rocket. It compresses images on Imagify's servers, so your hosting does not do the heavy lifting.

Once set up, it works in the background. New uploads are optimized automatically, and older images can be processed in one batch.

This guide covers every step, from installing the plugin to checking your results. If you want a short overview first, see what Imagify does.

What do you need before you start?

You need admin access to WordPress, an email address for an Imagify account, and ideally a recent backup, since bulk optimization changes your existing image files.

Imagify keeps a backup of originals when that option is on. Even so, a full site backup before any bulk change is a sensible habit.

Also check for other image optimizers. Running Imagify alongside Smush, ShortPixel or EWWW can compress images twice and waste your quota, so pick one tool.

Finally, look at the size of your media library. The free plan has a monthly data allowance, and large libraries may need a paid plan. Our guide on whether Imagify is free explains the limits in plain terms.

Step 1: How do you install Imagify?

Open Plugins > Add New Plugin, search for Imagify, click Install Now on the plugin by WP Media, then click Activate.

  1. Log in to your WordPress dashboard.
  2. Go to Plugins > Add New Plugin.
  3. Search for Imagify.
  4. Confirm the author is WP Media.
  5. Click Install Now, then Activate.

The free plugin is listed on the Imagify plugin page, which also shows current requirements and the changelog.

After activation, a notice asks you to create an account or enter an API key. That key links your site to Imagify's optimization servers.

Step 2: How do you connect your API key?

Click the prompt to create a free account, enter your email, confirm it, copy the API key from the email or your Imagify account, and paste it into Settings > Imagify.

  1. Click Create a Free Account in the notice, or visit the Imagify website.
  2. Enter your email address and confirm it.
  3. Copy the API key you receive.
  4. Go to Settings > Imagify in WordPress.
  5. Paste the key and save.

When the key is valid, the settings page shows your plan and how much of your quota remains this month.

If the key is rejected, check for a stray space at the start or end. Copying from an email sometimes picks one up.

Step 3: Which settings should you choose?

Keep automatic optimization on, keep a backup of originals, resize very large uploads to a sensible maximum width, and turn on next-gen formats such as WebP or AVIF.

Settings > Imagify holds everything. The options are grouped into a few sections, and the defaults suit most sites.

SettingRecommended choiceWhy
Optimize images automatically on uploadOnNew images are handled without extra work
Backup original imagesOnLets you restore or reoptimize later
Resize larger imagesOn, around 2000 to 2560 px wideHuge camera photos waste space and bandwidth
Next-gen formatWebP or AVIFSmaller files than JPEG or PNG
Display next-gen imagesPicture tags or rewrite rulesServes the new format to browsers that support it
Optimize thumbnailsOnWordPress serves thumbnails on most pages

Recent versions use a single Smart Compression mode that picks a strong level while keeping images looking right. Older versions offered Normal, Aggressive and Ultra levels instead, so your screen may differ depending on the plugin version.

If your images look soft after optimization, restore one and compare it side by side. Our guide on blurry WordPress images covers other causes, such as wrong thumbnail sizes.

Step 4: How do you set up WebP or AVIF?

Choose your next-gen format in Settings > Imagify, then pick how Imagify serves it, either through picture tags in the page HTML or through server rewrite rules.

WebP and AVIF are modern formats that usually produce smaller files than JPEG or PNG at similar quality. Our comparison of WebP vs AVIF explains the trade-offs.

Imagify offers two display methods:

  • Picture tags. The plugin wraps images in a picture element with the next-gen file first and the original as a fallback. This works on almost any host.
  • Rewrite rules. The plugin adds rules to your server config so the browser gets the next-gen file at the same URL. This needs Apache with .htaccess, or manual rules on Nginx.

Picture tags are the safer choice for most sites. They can occasionally clash with themes or page builders that style images in unusual ways, so check a few pages after you turn them on.

If you use a CDN, confirm it passes the correct file to each browser. Some CDNs cache one version for everyone unless told otherwise.

Step 5: How do you bulk optimize existing images?

Go to Media > Bulk Optimization, confirm the settings shown, and click the button to start; keep the tab open until Imagify finishes processing your library.

  1. Open Media > Bulk Optimization.
  2. Check how much of your quota the job will use.
  3. Click Imagif'em all, or the start button shown in your version.
  4. Leave the page open while it runs.
  5. Review the totals when it completes.

The screen shows a running count of images processed, space saved and any errors. Large libraries can take a while, since each image and its thumbnails are sent to Imagify's servers.

If the job stops partway, refresh and start again. Imagify skips images it already optimized.

Watch your quota. If you run out mid-month, the rest of the library waits until the next month or until you upgrade. See how much Imagify costs for plan options.

How do you optimize or restore a single image?

Open the Media Library in list view, find the Imagify column, and use the optimize, reoptimize or restore links next to each image.

List view shows an Imagify column with the savings for each file. From there you can:

  • Optimize an image that was skipped or uploaded before Imagify was active.
  • Reoptimize at a different level, if your version offers levels.
  • Restore original, which puts back the backup copy.

Restoring only works if the backup option was on when the image was optimized. This is the main reason to leave backups enabled.

How do you check that Imagify is working?

Compare file sizes in the Media Library column, then test a page in PageSpeed Insights and look for fewer image warnings and smaller transfer sizes.

Run a page through PageSpeed Insights before and after optimization. Image related warnings, such as serving images in next-gen formats, should shrink or disappear.

You can also open your browser's developer tools, go to the Network tab and filter by images. If WebP or AVIF is working, the type column shows those formats for supported browsers.

Clear your page cache and CDN cache before testing. Otherwise you may see the old, unoptimized pages.

What problems can you run into with Imagify?

Common issues are a full quota, images not showing as WebP because of caching or server rules, conflicts with another optimizer, and timeouts on very large libraries.

ProblemLikely fix
Bulk optimization stopsRefresh and restart; check quota and server timeouts
WebP not servedClear caches; switch between picture tags and rewrite rules
Images look worseRestore originals and check resize width
Images compressed twiceDisable other optimization plugins
API key errorsRe-paste the key without spaces; check the account email is confirmed

If uploads fail entirely, the problem is usually not Imagify. See our guide to the HTTP error when uploading images for server-side causes.

Is Imagify enough for fast images?

Imagify handles compression, resizing and next-gen formats, but you still need correctly sized images in your theme and lazy loading to get the full speed benefit.

Compression makes each file smaller. It does not stop a theme from loading a 2000 pixel image into a 300 pixel box.

WordPress adds native lazy loading to most images, and our guide on lazy loading images explains how to fine tune it.

Put together, a good optimizer, sensible image sizes and lazy loading cover most of what image speed tests look for.

Frequently asked questions

Is Imagify free to use?

Imagify has a free plan with a monthly data allowance, which suits small sites that add a few images each month. Larger libraries or busy sites usually need a paid plan. Check the vendor's pricing page for current limits, since they can change.

Does Imagify reduce image quality?

Compression always removes some data, but Imagify aims to keep the visual difference small. If an image looks worse, restore the original from the Media Library and check your resize width, since a too-small maximum width can cause soft images.

Can I use Imagify with WP Rocket?

Yes. Both come from the same company and work well together. WP Rocket handles caching and file optimization, while Imagify handles image compression and next-gen formats. Clear the WP Rocket cache after changing Imagify display settings.

What happens if I deactivate Imagify?

Optimized images stay optimized, because the smaller files replaced the originals. Next-gen images may stop being served if Imagify was adding picture tags or rewrite rules. You can restore originals before deactivating if you want to undo the changes.

Why are my images not showing as WebP?

The most common causes are page or CDN caching, a server that ignores the rewrite rules, or a theme that bypasses picture tags. Clear all caches, try the other display method in the settings, and check the Network tab in your browser.

Sources

  1. Imagify plugin WordPress.org
  2. Imagify WP Media
  3. The Picture element MDN Web Docs
  4. PageSpeed Insights Google

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.