How To Get The Most Out Of Smush Image Optimization

How To Get The Most Out Of Smush Image Optimization

Optimizing your images manually would involve a lot of resizing, a fair bit of coding, and heaps of time. Luckily, Smush does all the hard work for you and plenty more besides, all of which you will find covered in this guide to help you get the most out of the plugin.

For example, while Smush may be best-known for compressing images (without losing quality), it can also help defer your offscreen images with its lazy-load feature, convert your images to next-gen formats (WebP), and serve your images from our super-fast CDN available with Smush Pro.

Luckily, you don’t need to dedicate much time or effort to your images when you have Smush installed. Most features can be activated with one click.

Whether you’re a new user or just hoping to uncover some cool features you might have missed, this guide will help you get the most out of this plugin.

We look at how to:

  1. Smush All Your Images in Bulk
  2. Automatically Compress New Uploads
  3. Super Or Ultra-Smush For Double the Compression
  4. Display Your Full Size Images
  5. Convert Your PNGs to JPEGs
  6. Smush From the Media Library
  7. Optimize Directory Images
  8. Lazy Load Your Images For a Boost of Speed
  9. Utilize Smush’s CDN
  10. Serve the Correct Image Sizes
  11. Convert Your Images to Next-Gen Formats
  12. Save Time With Automatic Smush Configs
  13. Integrate With Popular WordPress Tools

So without further ado, here’s how to get the most out of Smush:

1. Smush All Your Images in Bulk

When you first install Smush, chances are you’ll have a backlog of images that need your attention.

The Bulk Smush feature scans your site for any images that would benefit from being compressed.

Screenshot of the bulk smush feature which shows 31 images which need smushing.
Each time you add new images, Smush will add them to this total.

All you have to do is click the button – Smush does all the hard work for you and lets you know when the job is complete.

If you have a lot of images to optimize, you’re also free to leave the plugin completely and come back to it, Smush will continue to compress your images in the background and you’ll be notified once the process is complete.

But rest assured, no matter how many images you have to optimize, thanks to built-in features like parallel image processing, which gives you 8x the normal processing speed, your images are in the best and fastest hands.

Screenshot showing the bulk smush successfully completed.
Much faster than compressing them yourself.

You can exclude certain image sizes from Bulk Smush if required. However, as Smush compresses without sacrificing quality, it may be beneficial to smush them all.

Screenshot of the various image sizes which are available to exclude.
Remove the ticks from the images sizes you want to exclude from being compressed.

One other feature worth noting is that when you click the Re-Check Images button, Smush performs an automatic scan of your Media Library to check if new images have been added since the last bulk smush.

Media Library Scan
Smush automatically scans your media library when you recheck images.

2. Automatically Compress New Uploads

Once you have used the Bulk Smush feature to catch up on your backlog of image compressing, you will seldom need to use it again.

This is because of the handy Automatic Compression feature. If you enable this, Smush will compress images as soon as you upload them to your site.

Smush also has a generous maximum file size limit of 256MB per image, so if you have any gigantic images to be uploaded, they’ll automatically be compressed and optimized for you too.

Screenshot showing the various image sizes that you can include when bulk smushing if you didn't want to select 'all'.
The days of routine image pruning can easily be a thing of your past.

3. Super Or Ultra-Smush For More Compression

If your main focus is on your site’s speed, you may want to take image compression a step further.

Super-Smush offers twice the compression of regular smushing by stripping out every bit of unneeded data, without reducing the quality of your images.

A screen showing the different Smush modes.
Take your image compression power to the next level.

Or, if you want to really amp up your compression powers, try the Ultra-Smush option for an impressive 5x compression on top of the already amazing Super-Smush. Ultra is only available with Smush Pro, but completely worth the upgrade if having the fastest possible sites is a priority for you.

New Ultra Smush delivers 5x greater image compression than Super Smush!Check it out here

If you don’t want to take it as far as Super or Ultra-Smush, you can instead strip the unnecessary metadata from your images, leaving only what is needed for SEO purposes. Photos often store camera settings in the file such as focal length, date, time and location – removing this will reduce your file size.

If you’re a photographer, you might want to keep this information, but it serves little purpose on most sites so is generally safe to remove.

4. Display Your Full Size Images

If you upload an image that is larger than 2560px in either width or height, WordPress will automatically scale it down to generate a ‘web-optimized’ maximum image size.

If you are purposefully adding larger images and want to override this, you can use the image resizing option.

Screenshot of the resize my full size images button
You can set your own new maximum image size.

Bear in mind that your theme may also have its own maximum image size – you will need to check this before enabling this feature.

Want to disable automatic resizing of images altogether? You can enable Disable scaled images. This means scaled versions of images will not be generated, and only your original uploaded images will be kept.

If you are uploading full-sized images, you can also choose whether or not these will be included in Bulk Smush.

Screenshot of the settings for smushing original images.
Another couple of simple one-click features.

Make sure you enable the Backup original images selection if you want to store a copy of all your full-size images, in case you ever wanted to return them to their pre-smushed forms.

Learn more about how WordPress handles images by checking out this blog post.

5. Convert Your PNGs to JPEGs

There are some circumstances where one of these two file types is more suitable than the other. However, if your main concerns for your site are memory usage and speed, then using JPEGs instead of PNGs should be beneficial.

If you upload your images as PNGs, Smush can check to see whether converting them to JPEGs will reduce the file size.

Screenshot of the png to jpeg button
The files will remain as PNGs if there is no reduction in the file size.

You can, of course, make the same conversion outside of WordPress. However, using Smush removes the hassle and converts all your files in one swoop.

6. Smush From the Media Library

If you would prefer to select individual images for compression, look no further than your own media library.

Here, you will find a new column labelled ‘Smush’.

Screenshot of the column which appears in the media library upon activation of smush.
You can compress your images one-by-one.

If you have auto-compression turned off, any photos which you upload should be ready to smush from within your media library.

You can smush your images individually, or alternatively single out images to be ignored from bulk smushing.

7. Optimize Directory Images

While your uploads folder is typically the main folder where images are found, they may also reside elsewhere in your directory.

For example, plugins that create their own image copies may store those images in the plugins folder.

In cases like this, the Directory Smush feature helps you easily identify and compress images stored outside the uploads folder.

A screen showing the directory Smush feature
Find and optimize images stored outside of the typical uploads folder.

Simply choose which directories and subdirectories you want to scan, and Smush will optimize and compress all of the images in bulk, it’s that easy.

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

A look at how Smush enables you to scan directories.
Optimize selected directories and subdirectories with a click.

8. Lazy Load Your Images For a Boost of Speed

If you have pages with a lot of images, displaying them all at once can put a lot of pressure on the server.

Deferring your off-screen images is a good way to allow the server to concentrate on loading the elements of your site above the fold so that your visitor can get stuck straight in.

Screenshot of the lazy loading feature activated.
It takes one click to deactivate if you find it’s not right for your site.

If there are certain types of images or certain output locations you wish to exclude from lazy loading, you can easily add them here.

Screenshot of the different media types and output locations you can exclude.
Remove the ticks from any of the options that you don’t wish to include.

You can also exclude certain various post types, specific URLs, and CSS classes and IDs.

Basically, if you want to enable lazy loading, you can fine-tune exactly how and where it is enabled.

Once you have chosen which images will lazy load, you can then decide how you want the pre-loading images to appear.

Screenshot of the display animation options.
If you don’t want any form of animation, simply select ‘None’.

9. Utilize Smush’s CDN

The closer you are to the server that is providing your content, the faster it will load. A CDN (Content Delivery Network) is a series of servers which are spread around the globe, and when a browser makes the HTTP request, the content is served from the closest server to its location.

Smush Pro boasts a 121-point CDN, with a few extra tricks up its sleeve. It can automatically resize your images as well as convert them to Google’s own next-gen format, WebP.

Check out the video below to learn more about our CDN.

PW0JbDkhC54

If all you want is for your images to be served from the CDN, you do not need to delve any further into these.

However, there are a few useful tools that can be of benefit to your site, so they are worth checking out.

You can activate and configure the Smush Pro Image CDN right from your dashboard.

Screenshot of the CDN just after activation.
Once you have activated the CDN, you will see more options within Smush.

This will store and serve copies of all your JPG, PNG, and Gif images from the Smush edge servers – drastically improving speed.

Don’t Leave Your Background Images Out

As standard, only images used on your posts and pages will be served through the CDN.

If you want your background image to be served from the same speedy CDN as the rest of your images, Smush has you covered.

Screenshot of the background images option.
Your background images will reach your visitor quicker if served through our CDN.

You will need to ensure that your background images are properly declared with CSS in your theme’s files.

10. Serve the Correct Image Sizes

Ideally, you should never serve an image larger than what will be displayed on the user’s screen. Using original or full-size images when a smaller image will do makes your pages take longer to load while your browser waits for the images to render.

Smush’s CDN houses a handy feature to resize your image to fit the container, without needing to touch a line of code.

Screenshot of the automatic resizing option.
As the resizing is done from the CDN, your original images will remain full size.

11. Convert Your Images to Next-Gen Formats

JPEG 2000, JPEG XR, and WebP are modern image formats with superior compression capabilities. This means they produce much smaller image files so you can greatly improve your page speed.

Images served in the WebP format can benefit from more than 25% compression, and when you think about the number of images on your site, that’s a tonne of space that can be saved.

Smush Pro gives you two options for converting your images to next-gen formats.

1.Convert images with Smush Local WebP

The Local WebP feature in Smush Pro enables you to serve images from your Media Library in next-gen WebP format, without needing the Smush CDN.

A screenshot of the LocalWebP feature from the main Smush dashboard
Serve images in next-gen formats without the need for Smush’s CDN.

The conversion to WebP is lossy when converting from JPEG images, and lossless when converting from PNG images.

Note that once you have configured this feature, you will need to run a Bulk Smush again for your existing images to get a WebP version created for each one.

Local WebP also only works for images in your Media Library and cannot create WebP versions of images found in other directories.

2.Convert images with Smush CDN

Smush’s CDN offers the option to convert your images to WebP in just one click.

Screenshot of the webp conversion button.
All the legwork is taken care of by Smush.

Not all browsers support next-gen formats, which is something you would usually have to bear in mind when deciding to make the switch.

However, if you enable the WebP Conversion feature, Smush will automatically check whether or not a browser supports this format, and if not, will serve it in the original one. This ensures that none of your visitors are compromised.

12. Save Time With Automatic Smush Configs

If you manage multiple sites, this feature will save you hours of time by allowing you to apply your preferred Smush settings to any site with a click.

All you have to do is follow the already mentioned steps in this article and set Smush up exactly how you want it.

Then navigate to Settings > Configs and simply hit ‘Save Config’ to save your current settings as a new config, which you can apply to other sites instantly.

A screenshot showing the Smush Configs module
Set up Smush with your ideal settings and apply to other sites with a click.

You can also choose from a number of default configs and you can integrate with The Hub site management tool to easily apply your configs to multiple sites at once.

13. Integrate With Popular WordPress Tools

A screen showing brands that Smush is compatible with
Smush plays nicely with and enhances your favorite WordPress tools.

Smush is fully compatible with your favorite WordPress tools and has direct in-plugin integrations with Gutenberg, Amazon S3, Gravity Forms, WPBakery builder, and NextGen Gallery.

Like most Smush features, all of these integrations can be activated with a click and allow for more specialized and targeted image optimization for the tool you’re integrating with.

Support at Your Fingertips

Now you know the ins and outs of this little plugin, it’s time to get stuck in and see how your site can benefit.

Smush is a very user-friendly plugin, so you should have no trouble managing your images.

If, however, you find yourself in need of some friendly advice, members should look no further than our awesome support team who are available 24/7.

And when you’re ready to take your image optimization to the next level, give Smush Pro a try and automatically unlock advanced features like our 121-point CDN, 5x Ultra Smush – plus – free access to the entire WPMU DEV suite of plugins and site management tools.

You can also check out the plugin documentation and view new updates and features coming soon in our roadmap.

What do you love most about Smush? Or perhaps you think there's something missing?! Let us know in the comments!

Rick Crawshaw Rick Crawshaw is a writer at WPMU DEV. Before joining the company and learning the ins and outs of WordPress web development, he worked as a freelance copywriter and marketer. You might also recognize his punny style from our weekly WordPress newsletter The WhiP. Follow Rick on Twitter.

Kirstan Norman Kirstan is a digital marketer from Yorkshire, England... She formerly wrote for the WPMU DEV blog on anything and everything WordPress, and provided copy for other areas of the website and business.