In a world where customers expect easy gratification, an ecommerce website that loads quickly is of utmost importance. Responsive images can assist with load times and conversions.
While image quality is essential for ensuring high conversion rates, image optimization is essential for user experience and website positioning on your online store. Learning methods to optimize images can yield big rewards, from enhancing your brand to attracting shoppers perusing Google images.
What’s image optimization?
Image optimization means ensuring your images look flawless on desktop and mobile and don’t hinder web performance. It involves modifying the image format, dimension, and backbone for a tool while maintaining quality.
Three essential elements play a task here:
- Image file format
- Image dimensions (height and width)
- Screen resolution
Why do you optimize images?
Images are essential for a very good online shopping experience. Customers won’t buy your products if they can not see them. Data from the HTTP Archive reveals that, on average, unoptimized images make up slightly lower than 38% of a complete webpage’s weight on mobile.
Image optimization helps lower your webpage’s weight and is a core tenet of excellent ecommerce website design, which leads to the next advantages:
Balanced speed and quality
Image optimization for web and mobile exists to balance speed and quality. Serving images that look good are essential in ecommerce. They create a greater browsing experience for shoppers.
Google has suggested that site speed is one in all the signals utilized by its algorithm to rank pages. A slow page means serps crawl fewer pages with their crawl budget, which may negatively affect your indexing.
Improved search performance
Optimized images help each readers and serps understand your website higher and get your content seen online. Recent data shows that images are returned for 18% of search queries on Google.
Image optimization can assist rank your images in Google’s image search, which may bring more traffic to your website and construct your brand.
The right way to optimize images for the net
1. Use concise and direct image names
It’s very easy to upload images to your website and keep the default file names your camera assigns. But with regards to image website positioning, it’s essential to make use of relevant keywords to assist your web page rank on serps.
Creating descriptive, keyword-rich file names is crucial for image optimization. Search engines like google crawl not only the text in your webpage but additionally your image file names.
Take this image, for instance:
You could possibly use the generic name your camera assigned to the image (e.g., DCMIMAGE10.jpg). Nonetheless, it could be a lot better to call the file 2012-Ford-Mustang-LX-Red.jpg.
Take into consideration how your customers seek for products in your website. What naming patterns do they use once they search? In the instance above, automobile shoppers may search terms like:
- 2012 Red Ford Mustang LX
- Ford Mustang LX Red 2012
- Red Ford Mustang LX 2012
Have a look at your website analytics to see what keywords your customers use to seek out you. Determine probably the most common naming patterns they use and apply that formula to your image file naming process.
In the event you’re not going to get that data-driven, be sure you use relevant, helpful keywords when naming your images (i.e., attempt to be descriptive).
Try this Q&A from Moz to grasp the importance of strategically naming the image files in your site. It could possibly definitely improve your on-page website positioning. It could possibly also help your pages and pictures rank higher on search engine results pages (SERPs).
2. Optimize your alt attributes fastidiously
Alt attributes are the text alternative to pictures when a browser can’t properly render them. They’re also used for web accessibility. Even when the image is rendered, when you hover over it, you will notice the alt attribute text (depending in your browser settings).
The alt attribute also adds website positioning value to your website. Adding appropriate alt attributes that include relevant keywords to the photographs in your website can show you how to rank higher in serps. It’s possible alt attributes are one of the best ways on your ecommerce products to indicate up in Google image and web search.
Let’s take a have a look at the source code of an alt attribute.
The primary priority with regards to image optimization is to fill out the alt attribute for every product image in your site.
Listed below are some easy rules for alt attributes:
- Describe your images in plain language, similar to you probably did on your image file names.
- In the event you sell products which have model numbers or serial numbers, use them in your alt attributes.
- Don’t stuff your alt attributes stuffed with keywords (e.g. alt=”ford mustang muscle automobile buy now low cost best price on sale”).
- Don’t use alt attributes for decorative images. Search engines like google may penalize you for over optimization.
Finally, do a sanity check once in a while. View the source of your web pages and check to see in case your alt attributes are there and still relevant. You’ll be surprised by what you miss while you’re moving on the speed of entrepreneurship.
3. Select your image dimensions and product angles correctly
It’s common practice to indicate multiple angles of your product. Going back to the Ford Mustang example, you wouldn’t want to indicate only one shot of the automobile, especially when you’re attempting to sell it. It might be in your best interest to indicate shots of:
- The inside
- The rear (especially that air spoiler)
- The edges
- The engine (it’s a Mustang in any case)
The perfect approach to capitalize on these extra photos is to fill out your alt attributes. And the best way you’d try this is by creating unique alt attributes for every product shot:
- 2012-Ford-Mustang-LX-Red-Leather-Interior-Trim.jpg -> using the alt attribute of: alt=”2012 Ford Mustang LX Red Leather Interior Trim”
- 2012-Ford-Mustang-LX-Red-Rear-View-Air-Spoiler.jpg -> using the alt attribute of: alt=”2012 Ford Mustang LX Red Rear View Air Spoiler”
The important thing here is so as to add descriptions to your base alt attribute so potential searchers land in your website. In the event you do the additional work, Google will reward you with searchers.
4. Resize your images
You should handle images in your website to make sure they appear good on all devices, especially on mobile and high-resolution screens.
To accommodate higher-density displays, which pack more pixels into the identical physical space as traditional ones, you wish a minimum of a 2x image to make images look crisp and never grainy. In context, in case your website has a picture slot that’s 200 pixels x 200 pixels, you’d need a picture that’s 400 pixels x 400 pixels to keep up sharpness on a high-resolution display. Nearly all mobile phones now have screen resolutions of 2x or higher.
The simplest approach to achieve that is by utilizing a content delivery network, or CDN. A CDN offloads the work of resizing images and serving the very best image format for a user’s device. It also improves the loading speed of the image file itself, as they’ve server locations closer to the tip user.
💡Note: In the event you’re a Shopify merchant, your Shopify theme uses our image CDN. Curious how it really works? Upload your personal image and try Shopify’s CDN. In the event you’re a theme developer, learn methods to write responsive image code in Liquid.
5. Select the correct image format
Image format is some of the essential things to get right in your website. Some file formats are higher-quality than others. Some take up extra space than others, which impacts your site load time.
To begin, there are two essential kinds of image formats: raster and vector.
Vector images are built upon mathematical formulas. Each time you wish graphics that may scale to different sizes without sacrificing quality, use vector graphics. Probably the most common vector image is the Scalable Vector Graphics (SVG) file. It’s an excellent alternative for logos, icons, and other easy graphics where you wish clarity and sharpness, regardless of the scaling.
Raster images are made up of pixels that may form highly detailed images, like photographs. The more pixels a picture accommodates, the larger and better resolution it would be.
Through time, newer and more improved codecs have been written for raster images. For instance, GIF was an early version of a picture codec for the net, but the standard was poor since the compression technique averaged nearby pixels. Newer techniques seek to code and compress in ways which can be harder for the human eye to detect. Which means that we will serve higher quality images with smaller file sizes once we use newer image formats. The next formats are probably the most commonly used on the net today:
- JPG: A widely used image format for photos. It uses lossy compression to scale back file size, but sacrifices some quality.
- PNG: A well-liked format for web designers since it handles graphics with transparent backgrounds. The file type retains all its original data when compressed, which makes it good for graphics and charts on a web site.
- WEBP: A contemporary format built for the net. It supports each lossy and lossless compression, offering smaller file sizes than JPG and PNG, while maintaining similar or higher quality.
- AVIF: The latest image format, AVIF compresses images well with less degradation.
Not all browsers support all versions. That is where a picture CDN can come in useful again, as it might probably robotically select the very best format for a specific browser and convert your original image. In the event you don’t use a CDN with this capability, then you will have to make use of the in your HTML.
💡Note: Shopify’s CDN robotically detects which file formats are supported by a browser and sends the very best option. For instance, it might probably convert images to WebP or AVIF, where supported, and send PNG or JPEG images as a fallback for older browsers.
6. Use image sitemaps
In case your site uses Javascript galleries, image pop-ups, or other “flashy” ways to enhance the general shopping experience, image sitemaps will help get your images noticed by Google.
Web crawlers can’t crawl images not called out specifically within the webpage source code. So, with a purpose to let crawlers learn about unidentified images, it’s essential to list their location in a picture sitemap.
You’ll be able to insert the next line in your robots.txt file, showing the trail to your sitemap:
Sitemap: http://example.com/sitemap_location.xml
Or you possibly can submit the sitemap to Google using the search console. Google has many guidelines for image publishing, which can help your website rank higher on SERPs. As well as, you should use Google sitemaps to present Google more information in regards to the images in your website, which can assist Google find more of your images than it could by itself.
As a Shopify merchant, you’ll get an robotically generated sitemap that features your product images. Which means that images in your product pages, and another essential images utilized in your blog or collections, are made discoverable to serps through your sitemap. This improves the probabilities your images will appear in search results and drive more traffic to your website.
Shopify updates the sitemap robotically every time latest pages or products are added, or existing ones are removed. So that you never should manually create or update your sitemap.
7. Use a very good image content delivery network (CDN)
Specialized image CDNs provide image transformation features so that you just only should upload one high-quality image, and they’re going to resize, reformat, and cache them based on each request.
With Shopify’s image CDN, file size is robotically optimized while you upload your image. The change in file quality isn’t noticeable to the human eye but will improve page load time. The CDN also robotically detects which file formats are supported on the client side and offers dynamic editing, which lets you crop and transform your image without losing the unique file.
💡Shopify merchants get access to a skilled services team to assist improve your website speed, in addition to conversion rate and search engine marketing.
8. Test your images
The whole point of optimizing images is to assist increase your bottom line. We’ve talked about reducing file sizes and getting the serps to index your images, but what about testing images to see what converts more customers?
- Test the variety of product images per page. Since load times are a difficulty for some non-hosted ecommerce sites, you could find reducing the variety of images on a page will increase click-through rates and sales. It’s also possible that providing quite a lot of images per page will improve the user experience and result in more sales. The one approach to find this out is to check it.
- Test what angles your customers prefer. You might see a rise in customer loyalty by providing the views your customers wish to see. An ideal approach to figure this out is to survey your customers about what they liked probably the most when viewing your product shots. Surveying and talking to your customers is an amazing habit to get into normally. Still, confirm by testing.
- Test what number of product listings it is best to have on category pages. Is it 10, 20, or 100 products? Test the variety of products you list on category pages to see what works best on your customers.
Image optimization tools
Now that you already know some image optimization best practices, let’s have a look at some image optimization tools and plug-ins you should use on your website.
Note that when you’re on Shopify or use a specialized image CDN, you do not want to make use of these tools. The one exception is SVGOMG—most image CDNs don’t offer optimizations for SVGs.
Squoosh
Squoosh is an easy-to-use web-based app for image compression. Simply drag and drop your image into the tool and pick from optimized image formats like JPEG XL, WEBP, PNG, and more.
TinyPNG
TinyPNG is one other popular image optimization tool on the net. It uses smart lossy compression techniques to scale back image file size on your web page (WEBP), JPEG, and PNG files.
You’ll be able to shrink images on your apps or store, plus shrink animated images. It focuses not only image compression, but additionally offers API integration and developer tools to integrate TinyPNG into custom software solutions.
TinyPNG’s API resizes images for thumbnails robotically, removing any unnecessary parts and adding more background. In the event you run your website on WordPress, it’s available as a plug-in.
SVGOMG
SVGOMG is one other easy image optimization tool. It gives several options to scrub and minify your SVG files. Simply upload or copy the source of your SVG to start out. You’ll be able to play with the varied controls and create an analogous image, but with less weight than the unique.
Keep photos functional with image optimization
Optimizing your images is important to running a successful online business. It not only enhances the look of your products, but additionally helps to create a smooth shopping experience and get you found online.
An ecommerce platform like Shopify robotically delivers your images in the very best format possible to viewers, so you possibly can increase sales and grow your enterprise online.
Image optimization FAQ
How do I optimize a picture without losing quality?
The perfect approach to optimize a picture without losing quality is to serve the correct image size using the correct image format for a given situation. You should utilize manual tools just like the ones listed in this text to generate your files together with writing the proper HTML for the browser to serve them. Or, use a specialized image CDN like on Shopify to robotically convert and deliver top-quality images on any device.
What’s the very best image optimizer?
Squoosh and TinyPNG are a few of the very best image optimizer tools available. They’re each web-based tools that provide a spread of format options, like JPG and PNG images. If you will have a more complex SVG, use SVGOMG to make it smaller.
Do I would like to optimize my images on Shopify?
You do not want to optimize images before you upload them. In the event you do, sometimes this can lead to a poor quality image that results in lower conversions and more returns. Shopify’s CDN robotically compresses images at a high quality setting that is best for ecommerce. Your theme code needs to be written using the Liquid image_url and image_tag to robotically make the most of many responsive image features.