What is ImageObject structured data, and how do you add it?
guide // , 4 min read, by Darthwares
ImageObject structured data is a standardized format for providing detailed information about an image file on a web page. You add it by nesting an ImageObject schema type with a valid contentUrl or url property inside parent structured data like Article, Organization, or Product markup. Structured data provides a standardized format for describing a page and classifying its content for search crawlers.
On this page // 5 sections
The short version
- An ImageObject represents the actual bytes of a media object like an image or video file.
- Schema properties for images accept either a plain URL string or a fully described ImageObject.
- Google requires a valid contentUrl or url property when using the ImageObject type.
- You can test your implementation and resolve critical errors with the Rich Results Test tool.
What is ImageObject structured data?
Structured data is a standardized format for providing information about a page and classifying the page content. Within Schema.org, an item image property can be specified as a simple URL string or as a fully described ImageObject. An ImageObject represents the actual bytes of the media object, such as an image file or a video file.
Using an ImageObject allows site owners to attach detailed metadata directly to the visual asset. For instance, an ImageObject can include textual captioning from a media object, such as the text of a meme. It also supports additional metadata fields, such as the usageInfo property to indicate further information about a creative work.
How is ImageObject used in parent schema markup?
ImageObject is commonly nested inside larger structured data types to provide search engines with direct visual context. Google documents that adding Article structured data to news, blog, and sports article pages helps Google understand the web page and show better title text, images, and date information in search results across Google Search, Google News, and the Google Assistant. For article pages, you should use images that are relevant to the article content rather than generic logos or captions.
An ImageObject can explicitly indicate whether an image is representative of the page content. Examples include an image showing a classic banana bread recipe with walnuts or a photograph of a business hotel located in the alps. Identifying representative media helps search crawlers associate the correct visual asset with the primary topic of the page.
Image markup also plays a key role in organization and product schemas. Google recommends placing Organization markup on your home page or a single descriptive page like an about us page to help Google understand administrative details and disambiguate your organization in search results. Adding a logo property helps Google determine which logo to display in search results and knowledge panels.
For e-commerce pages, Product markup makes content eligible for merchant listing experiences on Google Search, including the shopping knowledge panel, Google Images, popular product results, and product snippets. These listings highlight specific details such as price, availability, shipping, and return policies. Product-level return policies should only be used to override a standard merchant-level policy or when no standard policy exists, as product-level policies support only a subset of merchant-level properties.
What properties belong in an ImageObject?
An ImageObject must include specific address properties so search bots can retrieve the underlying image file. Google documents that if you use the ImageObject type, you must make sure that it has a valid contentUrl property or url property that follows standard URL guidelines.
Once your markup syntax is constructed, you should verify that it contains no code structural errors. You can validate your code using the Rich Results Test tool and fix any critical errors that are detected during testing.
How do you troubleshoot ImageObject implementation?
Troubleshooting ImageObject markup requires checking URL validity, image relevance, and error reports in testing tools. Follow this three-step diagnostic procedure to verify and fix structured data issues on your web pages.
- 01Check that your ImageObject includes a valid contentUrl or url property pointing directly to the image file address.
- 02Verify that the visual asset is directly relevant to the core page content, replacing site logos with topic-specific images.
- 03Test the target page in the Rich Results Test tool and resolve all critical syntax and property errors reported.
| Symptom | Check | Fix |
|---|---|---|
| Image missing in search results | Verify contentUrl or url property syntax | Add a valid contentUrl or url property that follows standard URL guidelines. |
| Validation failure in testing tool | Run structured data error diagnostic | Use the Rich Results Test to identify and resolve critical code errors. |
| Generic logo chosen for article preview | Inspect image relevancy in Article schema | Replace generic logo references with primary images relevant to the article topic. |
Common questions
Can an image property be represented as a plain URL string?
Yes. Schema.org defines the image property to accept either a standard URL string or a fully described ImageObject.
What does an ImageObject represent in structured data?
An ImageObject represents the actual bytes of a media object, such as an image file or a video file.
What property specifies the image file address in an ImageObject?
Google documents that an ImageObject must contain a valid contentUrl property or url property following standard URL guidelines.
Where should Organization structured data be placed?
Google recommends placing Organization structured data on your home page or a single descriptive page such as your about us page.
How should you validate your ImageObject markup?
You should validate your code using the Rich Results Test tool and fix any critical errors that are found.
Primary sources and further reading
This article was researched and written by an AI model and published automatically. It was written from sentences that were checked to appear on the pages below, but a person has not reviewed the text. If something is wrong, tell us at chibivikramathithan@darthwares.com and we will correct it.