Image
Stay organized with collections
Save and categorize content based on your preferences.
An image displayed in the card.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eImages are represented using JSON with fields for URL, accessibility text, height, and width.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eurl\u003c/code\u003e field specifies the image source and supports JPG, PNG, and GIF formats.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eaccessibilityText\u003c/code\u003e provides a description for screen readers and is required for all images.\u003c/p\u003e\n"],["\u003cp\u003eOptional \u003ccode\u003eheight\u003c/code\u003e and \u003ccode\u003ewidth\u003c/code\u003e fields can be used to specify the image dimensions in pixels.\u003c/p\u003e\n"]]],["The provided content details the JSON representation of an image. It includes a `url` (string) specifying the image's source, which must be a JPG, PNG, or GIF. An `accessibilityText` (string) is required for screen readers. Optional fields include `height` and `width` (integers) to define the image dimensions in pixels. All fields are contained within a JSON object with the provided schema.\n"],null,["# Image\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAn image displayed in the card.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------|---|\n| ``` { \"url\": string, \"accessibilityText\": string, \"height\": integer, \"width\": integer } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `url` | `string` The source url of the image. Images can be JPG, PNG and GIF (animated and non-animated). For example,`https://www.agentx.com/logo.png`. Required. |\n| `accessibilityText` | `string` A text description of the image to be used for accessibility, e.g. screen readers. Required. |\n| `height` | `integer` The height of the image in pixels. Optional. |\n| `width` | `integer` The width of the image in pixels. Optional. |"]]