WordPress Short Pixel Adaptive Image Plugin Settings & Setup in 2024

Short Pixel Adaptive Images - Settings

Lets Start with truth, Not Proper Images sizes cause Cumulative layout shift – CLS.

But I Choose FlyingPress / Cloudflare Over any Images Plugins in WordPress because both plugins also have these features means less Plugins. We talk about later in suggestion sections.

Lets Begins the tutorials.

Click On Advanced

Short Pixel Adaptive Images - Click On Advanced

1. Compression:

Compression Level – ON

  • Lossy – Small size, slightly lower quality.
  • Glossy – Good balance between size and quality.
  • Lossless – Original quality, larger file size.

Next Gen Support – ON

WebP and AVIF are new types of Next Gen image formats made for the web. They’re designed to make images smaller in size while keeping them looking good.

WebP images are about 26% smaller than PNGs and 25-34% smaller than regular JPEG.

AVIF images are even smaller, about 50% smaller than JPEG. However, not all web browsers support AVIF yet, so you might run into problems if you use it.

Remove EXIF – ON

EXIF data is like a set of notes that your camera or software adds to a photo. It includes things like where the picture was taken, the date and time, camera details, and more.

SPAI usually make images smaller by removing this extra information, except for the color profile.

Short Pixel tested this on about 7,646 images, and here’s what we found:

When we kept all the EXIF data, the total size was about 791.144 MB. When we removed the data, the size was about 723.552 MB.

So, taking out the EXIF data made the images about 8.5% smaller on average.

SHORT PIXEL AI - ADAPTIVE IMAGES - COMPRESSION

2. Behavior:

Fade In effects – DEPEND

By default, ShortPixel Adaptive Images loads images only when they are about to be seen on the user’s screen. This prevents sudden image appearances. The plugin also gently fades in images for a smoother experience. However, if you have issues with this or don’t want fading, you can turn it off

I Not a Fan of lazy loading because it’s a smart way to improve page scores, but it doesn’t mean your site is Good Speed. You should check TTFB of your website.

Smart Crop – DEPEND

Difference B/W SPAI & SPIO ?

SPAI – Smart cropping mainly works with background images set using CSS. Regular images in HTML tags usually don’t need it. SPAI uses image width and height to decide if it should use smart cropping, but the image should not fully fit the page, often achieved with “background-size: cover” in CSS

SPIO – Smart cropping in improves both the original image and its thumbnails by focusing on the right part, making them sharper and more visually pleasing. The thumbnails may be a bit larger, but the quality boost is worth it.

I generally prefer manual way because plugins consume server resources. Many useful features in these plugins are turned off & Depend which negatively impacts on your server. As a WordPress developer, I’m just informing you, your server needs to respond faster.

Replace Method – ON

Short Pixel Adaptive Images (SPAI) changes the way it replaces images on a website with optimized versions.

Use BOTH or SRCSET only if you’re directed to do so by support or if you’re absolutely sure you need them

API URL

Don’t change this setting unless you really know what you’re doing! Be Careful.

Lazy Load Threshold

This setting controls when images load on a web page. The default is 500 pixels, meaning images load when they’re 500 pixels away from being visible.

If unsure, don’t change it. You can’t turn off lazy loading entirely, but you can exclude specific images.

Images Hover Handling – OFF

Logged in Users – DEPEND

LQ Image Place Holder – DEPEND

LQIP, or Low-Quality Image Placeholder, is like a stand-in for high-quality images on a web page. It’s a tiny, low-quality image that loads quickly when you open a web page.

Then, once the page is fully loaded, these placeholders get replaced by the actual high-quality images.

LQIPs are great because they are very small in size and help web pages load faster, especially on slower mobile connections.

Short Pixel Adaptive Images (SPAI) does this cleverly by using a local cache on your website to store these placeholders, reducing the number of requests and helping with SEO, and they don’t consume any extra credits.

You might need to clear this cache if you replace images but keep the same names so that the correct LQIPs display.

Native Lazy Load – ON

In WordPress 5.5, images are lazily loaded by default. If you have activated this Option, it handles lazy loading, and here’s how it works:

Native Lazy Loading – SPAI will make your images lazy load just like WordPress does by default. The difference is that SPAI will also optimize and resize these images for better performance.

JavaScript Lazy Loading – It use JavaScript to handle lazy loading. This is more efficient because it loads only the images that are likely to be seen, especially on shorter pages with fewer images.

Note: In Both case, there is no compatibility issue either & there will not be any duplicated attributes or any conflicts with WordPress’ default behaviour.

Alter Width & Height – ON

If you want the image size attributes to match the actual image size after resizing. It’s helpful if you’re having issues with images on different screen sizes. However, it won’t add these attributes.

This won’t fix the warning message “Image elements do not have explicit width and height” on tools like Page Speed Insights.

Sizes From Post Meta – OFF

this setting in SPAI helps it figure out the size of each image it’s optimising. It tries different ways to do this

Enabling this option makes SPAI perform this database check when necessary. If you disable it, SPAI skips the database check.

You might want to disable it if your website’s database is working too hard when SPAI is active & Layout Shifts when Browser Rendered It.

Size Break Points – ON

It figures out the perfect size for each image based on your visitors’ devices, which is awesome because:

But, sometimes, you might want to set some rules.

This is where “size breakpoints” come in. They’re like rules that say, “Hey, if you’re resizing an image, make it this size or a bit bigger.”

For example, imagine your smallest image size is 50 pixels wide, and you set a “rounding factor” of 10%. This means SPAI will serve images at sizes like 50px, 55px, 61px, 67px, and so on.

It’s a bit like taking bigger steps instead of tiny ones when deciding the image size.

This can help your website work even better by reducing some hiccups, especially if you have lots of different page sizes. However, it might make your images a little larger than they need to be in some cases. But don’t worry, they’ll still look great.

New AI Engine – DEPEND

Short Pixel Adaptive Images (Version 3.0.0) brings a faster “New AI Engine” that doesn’t need JQuery, boosting website performance.

If you face problems, you can switch back to the old method. The advice is to use the new engine and contact support if issues arise

Top Bar Menu – DEPEND

This menu contains a maximum of three elements:

You will have to refresh the page once in order to see the changes.

Short Pixel Adaptive Images - Behaviour

3. Areas:

Lazy Load the Backgrounds – ON

Lazy-load the background images from inline STYLE blocks – if you have background images in inline style blocks on your HTML page, this option will lazy load them and therefore properly resize them. Example:

<html>
     <head>
	<title>ShortPixel</title>
	   <style>
	body {
		background-image: url("https://www.example.com/background.jpg");
 				background-color: #cccccc;
 			}
 	    </style>
     </head>
 	<body>
 		... 	
	</body>
</html>

Lazy-load and resize the background images in TAGS inline styles: if you have background images in the style attributes of your HTML tags, this option will lazy load them and therefore properly resize them. Example:

<div style="background-image:url('https://www.example.com/background.jpg')">...</div>

Background Maximum Width

This option will impose a maximum width on your background images. Knowing that lazy loading is required in order to create adaptive images, this is useful in the following cases:

Replace in CSS Files – DEPEND

SPAI added in its version 1.4.0 a new feature called Replace in CSS files.So we can replace the background images on CSS files with an optimized version. SPAI will do its job for such files, which is:

if enabled, works by default for CSS files on your domain. If you have CSS files from other domains, you can add them on the text box, separated by commas.

It’s also worth mentioning that SPAI will not change the structure of the CSS files, will not move CSS from the head to a file or back, nor will not merge files.

SPAI works fine with other plugins that minify CSS files. You can enable minification in SPAI and the other plugin, but if there’s a conflict, it’s best to let SPAI handle CSS minification

Serve JS From CDN – DEPEND

To serve your JavaScript files (ending in .JS ) from our CDN and optimize them, enable this option. It won’t affect JavaScript files from external domains

Replace in the JS Blocks – DEPEND

Some plugins or themes have galleries or other effects where images are served in JavaScript blocks, either separate JS files or inline JS snippets.

For example, you may have a little script on your homepage that sets a background image like this:

<script>
	function changeBackgroundImage() {
        	document.body.style.backgroundImage = "url('https://example.com/wp-content/uploads/image.png')";
	}
	document.addEventListener("DOMContentLoaded", changeBackgroundImage());
</script>

If this is the case, you will need to enable this option if you want Short Pixel AI to optimize these images. Once enabled, you will also be able to choose to lazy load these images. 

If you don’t lazy load them, the images will not be able to be properly resized either.

Replace in the JSON Data – DEPEND

Some parts of your website, like sliders or interactive elements, need to fetch data from your website in a special way. This data often comes back in a code-like language called JSON, which contains important info, including links to images.

JSON AJAX calls to replace image URLs – Tells Short Pixel to look inside this JSON data and replace any image links it finds. But there’s a catch: Short Pixel doesn’t always know exactly where these images will show up, so it might not resize them perfectly.

Lazy-load JSON URLs – It replaces those image links with ones that load lazily, which means they’ll be resized correctly by Short Pixel’s special code.

When you test your website, reload a page twice. Sometimes, images might not display perfectly on the first load but will be fine after.

To check if your site uses this JSON stuff, use your browser’s Developer tools (press F12 or Cmd+Alt+’ on Mac) and look at the network activity. If you see anything starting with “{” or “[“, it’s a JSON call. If you find URLs with your website’s name (like “https://example.com/…”), these options can help you out.

Integrate With Lity – DEPEND

Lity Light box is like a magic box on your website. It makes images pop up and look fancy when you click on them. If your website uses this magic box, you should turn on this option in the plugin.

When it’s on, the plugin will make sure that the images inside the magic box are the right size and look really good.

By doing so, the plugin will check for the Lity light box component in your pages, and it will replace its images with properly resized and optimized ones.

If you are not sure whether you are actually using Lity, follow these instructions:

SHORT PIXEL AI - ADAPTIVE IMAGES - AREAS

4. Exclusions:

Excluded Selectors

You can choose specific parts of your website to treat differently with SPAI. You can specify which parts of your website to exclude from SPAI’s optimization.

Lazy loadResizingWebP ServingOptimization
Don’t Lazy loadNoNoYesYes
Don’t ResizeYesNoYesYes
Leave out Completely NoNoNoNo
Exclusion table

Excluded URL

You can tell the SPAI tool to ignore certain images on your website by specifying their web addresses (URLs).

To exclude these pages, you can just enter the complete URL of the page for groups of images or specific paths for individual images.

Excluded Pages

Short Pixel Adaptive Images - Exclusions

5. Clear CSS Cache:

If you keep serving the old CSS file, the old images will persist. Clear the CSS cache to update them.

Pricing:

Short Pixel Adaptive Image have is 3 Pricing Plans:

a – Unlimited Plan

DomainPrice
1$8 /month
5$33 /month
10$58 /month
Unlimited Plan

b – Monthly Plan with Unlimited Websites

DataMonthly Plans Price
500 MbFree
35 GB$4 /month
80 GB$9 /month
275 GB$25 /month
500 GB$42 /month
1 TB$84 /month
Monthly Plan with Unlimited Websites

c – Credit Plan with No Website – Only CDN

DataFixed Price
50 GB$10
150 GB$20
250 GB$30
500 GB$59
850 GB$99
3 TB$249
Credit Plan with No Website – Only CDN

Suggestions:

I prefer using FlyingPress, and Cloudflare Pro – Mirage and Polish – (Sometimes it’s Free built in with some hosting like Rocket Net, which has Cloudflare Enterprise, far better than the Pro version & Cloudflare is a CDN & DNS Not a Plugin ).

These plugins offer features that eliminate the need for multiple overlapping plugins, streamlining your workflow and site maintenance.

If I’m looking for free plugins, I’d choose Short Pixel Adaptive Image. We discuss in detail about Best Images Optimization Plugins in a Blog.

Flying PressCloudflare ProShort Pixel
CDNFlying CDNMirage and PolishOwn
ResizeYesYesYes
Lazy LoadYesYesYes
CompressionYesYesYes
ResponsiveYesYesYes
Free Plan LimitNo Free PlanNo Free Plan500 Mb
WebPYesYesYes
Other FeaturesExtremeNormalLow
Price60/Year+20/MoFree
Comparison Table

Comments for Algorithm, Peace Out.

Leave a Reply

Your email address will not be published. Required fields are marked *