Show navigation ≫
≪ Hide navigation
Objects > Image

Description

Defines an image to be rendered considering multiple resolutions and formats for different screens and devices.

Structure

Optional parameters are indicated as "(Optional)".

Parameter Meaning Notes
url (string) The url of the image.
  • Always specify the url of the image with the highest available resolution.
width (integer) (optional) The width of the image.
  • If no width is specified, Connected Web parsers will maybe render the image pixeled or even don't render it.
height (integer) (optional) The height of the image.
  • If no height is specified, Connected Web parsers will maybe render the image pixeled or even don't render it.
type (string) (optional) The mime type of the image.
  • Mime type will help Connected Web parsers to decide how to render the image, for instance maybe to prevent to render multiple gif images at once.
size (integer) (optional) The size of the image, in bytes.
  • Can be used to estimate the time necessary to download the image.
caption (string) (optional) The plain text caption of the image.
allow_storage (boolean) (optional) Allows to store the image regardless of the original one has been removed or not.
resolutions (associatvie array of media_versions_objects) (optional) Other resolutions of the image.
  • If other resolutions of the image are already available, it's possibile to specify them in an associative array of resolutions. Each key of the array is the width of the resized image.
  • This parameter requires a Connected Web Media Versions Object. See the Objects > Media Versions documentation to understand more.
Continue to the Video Object definition

Example

{
			
    "url": "https://fbwcdn.com/image/main/connectedweb/showcase/image1.jpg",
    "width": 1920,
    "height": 1080,
    "caption": "Between two rocks."

}
Show navigation ≫
≪ Hide navigation