Sitemap specifications

To have TinEye index your site please submit a URL to a sitemap XML file. TinEye requires sitemaps to meet the following requirements:

1) Pages should use the image sitemap format, where the important images on a page are specified. The sitemap will contain a list of <url> tags. Each <url> tag contains exactly one <url> tag specifying a web page and at least one <image:image> tag containing the URL to an important image on that page. A <url> tag can contain multiple images associated with a single page. Please follow these guidelines when selecting which images to include:

  • Only include images that are at least 300px in both dimensions
  • Only images that are closely associated with the content of a page. Do not common images that are present on many pages throughout the site. Images such as logos can be associated with the homepage.
  • Please do not include multiple versions (e.g., different sizes) of the same image
  • Preferably, images should have no watermarks
  • No banners or advertisements

The sitemap specification allows for additional information in each <url> entry, but this information is not used by TinEye and will be ignored.

CORRECT:


      <?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/sample1.html</loc>
          <image:image>
            <image:loc>http://example.com/image1.jpg</image:loc>
          </image:image>
          <image:image>
            <image:loc>http://example.com/photo1.jpg</image:loc>
          </image:image>
        </url>
        <url>
          <loc>http://example.com/sample2.html</loc>
          <image:image>
            <image:loc>http://example.com/image1.jpg</image:loc>
          </image:image>
        </url>
      </urlset>
      

INCORRECT (logo.jpg on multiple pages, same image listed in multiple sizes):


      <?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/sample.html</loc>
          <image:image>
            <image:loc>http://example.com/logo.jpg</image:loc>
          </image:image>
          <image:image>
            <image:loc>http://example.com/image-small.jpg</image:loc>
          </image:image>
          <image:image>
            <image:loc>http://example.com/image-medium.jpg</image:loc>
          </image:image>
          <image:image>
            <image:loc>http://example.com/image-large.jpg</image:loc>
          </image:image>
        </url>
        <url>
          <loc>http://example.com/sample2.html</loc>
          <image:image>
            <image:loc>http://example.com/logo.jpg</image:loc>
          </image:image>
        </url>
      </urlset>
      

For more information on image sitemaps, see the following page: support.google.com/webmasters/answer/178636

2) If your sitemap is very large (over 50,000 pages or a file size greater than 10MB) it needs to be split across multiple files that are each below that limit. In this case please submit a single sitemap index file specifying the location of each of the sitemaps. This sitemap index file will contain a list of <sitemap> tags. Each <sitemap> tag will contain exactly one <loc> tag specifying a sitemap location. The individual sitemaps may be compressed using gzip, in which case it must have an extension of “.xml.gz” instead of “.xml”. Compression will save bandwidth, especially if your sitemaps are very large. Each <sitemap> tag will also contain a <lastmod> tag specifying the last time that sitemap was modified. The date should be in W3C Datetime format, specified here. When updating your sitemaps, please only change the <lastmod> date for sitemaps that have actually been modified. This helps us continually keep your indexed images up-to-date.

CORRECT:


      <?xml version="1.0" encoding="UTF-8"?>
      <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
        <sitemap>
          <loc>http://www.example.com/sitemap-october2014.xml.gz</loc>
          <lastmod>2014-10-01T18:23:17+00:00</lastmod>
        </sitemap>
        <sitemap>
          <loc>http://www.example.com/sitemap-january2015.xml.gz</loc>
          <lastmod>2015-01-01</lastmod>
        </sitemap>
      </sitemapindex>
      

INCORRECT (all sitemaps have the same <lastmod> date):


      <?xml version="1.0" encoding="UTF-8"?>
      <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
        <sitemap>
          <loc>http://www.example.com/sitemap-october2014.xml.gz</loc>
          <lastmod>2015-01-01</lastmod>
        </sitemap>
        <sitemap>
          <loc>http://www.example.com/sitemap-january2015.xml.gz</loc>
          <lastmod>2015-01-01</lastmod>
        </sitemap>
      </sitemapindex>
      

If you have any questions about our sitemap specifications or would like to discuss your submission, please get in touch, we are happy to hear from you.

For more information on sitemap index sitemaps, see the following page: support.google.com/webmasters/answer/75712

The full sitemap specification is available at sitemap.org