Cookies disclaimer

I agree Our site saves small pieces of text information (cookies) on your device in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing our website without changing the browser settings you grant us permission to store that information on your device.

Image Sitemaps

Image Sitemaps

Image SitemapsContents:

XML Image Sitemaps

XML image sitemaps are vital for the indexation of your images by search engines; they should be a concise list of all images that you want to be indexed.

XML Image Sitemap Benefits

They improve your chances of having your images appear in the Image Search results. This can help Google to discover images that may have otherwise not been found.

Validation

Ensure the XML file is properly formatted and passes validation tests. Simply run the file through a sitemap validator to test. Once submitted to Google Search Console, Google will inform you of problems with the XML sitemap but it is better to pre-empt this with your own tests first.

Components

Below we list the different components or metrics that can be added to an XML sitemap.

Image Sitemaps

Example Code

The code below is an example of how a single entry should look in an XML sitemap along with the opening code:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>http://example.com/page.html</loc>
    <image:image>
      <image:loc>http://example.com/image-1.jpg</image:loc>
    </image:image>
    <image:image>
      <image:loc>http://example.com/photo-1.jpg</image:loc>
    </image:image>
  </url>
</urlset>

We describe in more detail what each of the above components means and how it should be used.

Multiple Sitemaps

If a site has thousands of images it becomes more important to distribute these images over several sitemaps, this makes it easier to identify indexing issues.

By having smaller sitemaps, you can more easily see what images are not being indexed.

For example, you could have XML sitemaps for images used in your blog, for products, infographics, etc… If you have a single sitemap with all images listed in it, and you notice that only 50% of them are indexed, you have no way to easily dive deeper into the issue. Vs a series of smaller image sitemaps, you could more easily and quickly see where the problem exists (most of the time).

Sitemap Size

There should be no more than 1,000 links per sitemap and the maximum file size should not exceed 10MB, Sitemaps.org confirm this. This helps prevent your web server from being weighed down serving large files. 1,000 URLs is a lot of URLs, see the section on site structure below for more information on how to break this up.

Multiple Sitemap Structure

Sitemap structure should reflect site structure, for example:

  • Master Category (sitemap) – contains links to all other category sitemaps
  • Category 1 (sitemap) – contains all products in this category
  • Category 2 (sitemap) – contains all products in this category

Group similar content or content located in a similar location into sitemaps to create consistency and logical structure.

Sitemap Index

A Sitemap Index is the master XML sitemap that links to all other sitemap files or all of the files that contain links to all the other sitemaps.

Google Webmaster Tools

We cover this in more detail in another part of the knowledge base that addresses SEO Tools and how to use them. But for now, it is worth noting that the image sitemap should be submitted to Google Webmaster Tools.

Common Mistakes

We list below the most common mistakes we see with XML sitemaps.

Obsolete Entries

Ensure the sitemap is up to date and does not include duplicate entries or links to pages that are no longer present on the site. This can be an issue if you use a tool to create a sitemap and you do not filter out duplicate entries such as with trailing slashes and upper and lower case URL characters.

Including Disallowed Images

Do not include images in the image sitemaps that you have disallowed from being crawled by the robots.txt; this wasted Google’s time and provides no benefit to you. In fact, if this happens on bulk it can also cause other problems; such as seeing increased volumes of images not being indexed.

Incorrect Parameters

Stipulating incorrect parameters such as ‘loc’ or ‘title’ can slow or impede proper indexing of the images by Google.

Too Many Entries

Having too many links in a sitemap makes problem solving difficult when it comes to indexing errors, also if the total sitemap is too big it can cause performance issue.

Sign Up For Early Access
& Earn a Chance to Win 1 Years Free Subscription!

What You Get...

There's no obligation to become a full member after your trial, but we think that once you've seen what's available, you'll want to join us.

We are in the process of building our software and are ramping up to launch the Technical Auditing component in early 2018, soon to be followed by a suite of other components such as keyword ranking and backlink analysis.

Sign up today for 1 months free access and get a further 10% off of any package price when we launch for the first year as a reward for being an early subscriber.

Also, you will be entered into a lottery, where we will be giving away five 1-year subscriptions for free!

Sign up for early access today!