Intro

Images are a powerful way to capture the user’s attention and to communicate your message. You can use the image control to integrate images into your apps for dedicated purposes.

When to Use

Use the image control if:

Do not use the image control if:

Behavior and Interaction

Images can be non-interactive or interactive. Most commonly, clicking an image opens a lightbox or new tab/window and displays a larger version of the image. If you plan to open a popover or dialog, ensure that this information is announced by the screen reader beforehand (property: ariaHasPopup).

The control also offers an image map option, where one image can have several click areas. Don’t use this option. It’s a relic of past times and has the potential to cause usability issues.

Guidelines

Screen Reader Details

Image File and Quality

  • It is extremely important that you choose the right file format when saving your images. Four image formats are used consistently in browsers – PNG, JPG, GIF, and SVG.
  • When choosing the format for your image, always be conscious of the image quality and file size.
  • Optimize high-resolution images to avoid unnecessarily large files. Large image files can severely impede page performance.

Good quality

Poor quality

Responsiveness

The image size adapts responsively to the screen size.

You can also set a fixed width and/or height for an image.

Images on size S

Images on size M

Images on size L

Examples

Image on a small screen

Image in a carousel

Elements and Controls

Implementation

  • Image (SAPUI5 samples)
  • Image (SAPUI5 API reference)

Visual Design

  • No links