<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/image-attributes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Image Attributes"
}
-->

# Image Attributes

Retrieve images from a server and specify how they fit into an element.

## Topics

### Image Size

[height](/documentation/TVML/image-attributes-height)

Specifies the maximum height for an image.

[width](/documentation/TVML/image-attributes-width)

Specifies the maximum width for an image element.

[aspectRatio](/documentation/TVML/aspectratio)

Specifies the aspect ratio of an image.

### Image Display

[aspectFill](/documentation/TVML/aspectfill)

Stretches an image to fill the containing bounding box.

[contentsMode](/documentation/TVML/contentsmode)

Specifies how an image is expanded to fill its containing element.

[opaque](/documentation/TVML/opaque)

Indicates whether an image has a transparent background.

[mode](/documentation/TVML/mode)

Specifies how an image is displayed.

[type](/documentation/TVML/type)

Specifies how a badge is drawn.

[value](/documentation/TVML/value)

Specifies the value used for a fillable element.

### Image Retrieval

[src](/documentation/TVML/src)

Specifies the URL for an image.

[srcset](/documentation/TVML/srcset)

Specifies multiple URLs for an image.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)