Image type

Object containing properties of a image file.

Fields

sizeSizerequired except for SVG images
The size of the image.

srcFilerequired
The path to the image file.

  • Must have file extension "jpeg", "jpg", "jpe", "jif", "jfif", "png", "svg" or "webp".

Examples

{
  "size": {
    "width": 512,
    "height": 512
  },
  "src": "images/developer-logo-512.png"
}