When the Google Search Console returns errors for the sitemap, such a result represents a potential error that will cause the ranking of the website to be underestimated. In addition to the main sitemap, the Search Console panel displays an index of pictures based on map coordinates. In addition, users frequently search for pictures. In turn, they go to the website to see them. Create an Image Sitemap to improve your chances of being found in Google image search results. Title and alt attributes must also be filled in correctly. Both effect image ranking positively.
Image sitemaps include URLs and other details about the specific images you want Google, Bing, and other engines to index. Sitemaps are formatted with standard XML tags, and they are used by most search engines. Your standard sitemap needs to contain relevant details about images on your site for Google to understand them. Type of image, topic, title, caption, and location are a few examples. Using this method, website owners can determine which images are most relevant for their pages.
Make a separate file for each picture that organizes its information. In this way, the pictures will be more likely to be indexed. The sitemap.xml file on the website can also be edited by adding the appropriate tags.
Sitemap tags specific to images can be found below. Please use the required tags; optional tags are encouraged for a better user experience.
An image's metadata contains its information. Using
<url> tags, you can include up to 1,000
This is the URL for the image. Occasionally, your main website may not host the same image URL. I don't have a problem with this as long as both domains are verified on Google Search Console. To ensure that you're using a verified hosting site in Google Search Console, you can, for example, use a content delivery network like Google Sites to host your images. Please check your robots.txt file to ensure that any content you would like indexed is not blocked.
A caption for the image.
The geographic location of the image.
The title of the image.
The license of the image can be found at the following URL. You may also use the image metadata.
1<?xml version="1.0" encoding="UTF-8"?> 2<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" 3 xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"> 4 <url> 5 <loc>https://jpegxl.io/image-sitemap</loc> 6 <image:image> 7 <image:loc>https://jpegxl.io/photo1.jpg</image:loc> 8 </image:image> 9 <image:image> 10 <image:loc>https://jpegxl.io/photo2.jpg</image:loc> 11 </image:image> 12 </url> 13 <url> 14 <loc>https://jpegxl.io/another-article</loc> 15 <image:image> 16 <image:loc>https://jpegxl.io/picture.jpg</image:loc> 17 <image:caption>This is an image caption</image:caption> 18 <image:geo_location>London, England</image:geo_location> 19 <image:title>An image title</image:title> 20 <image:license>https://jpegxl.io/license</image:license> 21 </image:image> 22 </url> 23</urlset>