Skip to Content

Image types

Audience: Integrators and developers.

These contracts describe the public image objects returned by the backend. The CMS upload fields use different names, as listed below.

ImageProps

ImageProps is the full CMS image object used by most visual banners.

Placeholder image

Props

id●
string
required

Image entity id in the CMS.

name●
string
required

Internal CMS name.

imageRights●
string | null
required

Copyright or attribution text. Can be null.

file●required

Primary file for this image.

onDarkFile●

Optional artwork for a surface that requests onDark.

mobileFile●required

Optional image file for small screens. A missing upload is null.

mobileOnDarkFile●

Optional artwork for small screens on a surface that requests onDark.

alt●
string
required

Alternative text used for accessibility.

breakpoint●
'mobile' | 'tablet' | null
required

Controls mobile sources. Null disables them.

aiGenerated●
boolean
required

Whether the image is marked as AI-generated.

cars●
CarConsumptionData[]
required

Car consumption entries associated with the image. Can be empty.

Notes

  • Always render alt. Use an empty string for an image that serves only as decoration.

SimpleImageProps

SimpleImageProps contains the files and alternative text used by logos and image links. It omits the full image’s name, rights, AI flag, and car consumption data.

Placeholder image

Props

id●
string
required

Image id in the CMS.

alt●
string
required

Alternative text.

file●required

Underlying file reference.

onDarkFile●

Optional artwork for a surface that requests onDark.

mobileFile●

Optional image file for small screens.

mobileOnDarkFile●

Optional artwork for small screens on a surface that requests onDark.

breakpoint●
'mobile' | 'tablet' | null

Controls mobile sources. Omission uses mobile; null disables them.

CMS upload fields

All four uploads belong to the same ImageList record. They are files, not relationships to other image records.

CMS fieldCMS labelPublic field
imageBildfile
imageOnDarkBild für dunkle HintergründeonDarkFile
mobileImageBild mobile AnsichtmobileFile
mobileImageOnDarkMobiles Bild für dunkle HintergründemobileOnDarkFile

The three alternate uploads are optional. A CMS record without its main image upload does not produce a public image object.

Artwork and source selection

The current surface requests default or onDark artwork. Light or dark appearance alone does not select the image. Components can explicitly request artwork, as ordinary photographs do with default.

Requested artworkDesktop priorityMobile priority
defaultfilemobileFile → file
onDarkonDarkFile → filemobileOnDarkFile → onDarkFile → mobileFile → file

Missing on-dark uploads mean the editor considers the default artwork suitable for both placements. An on-dark desktop file takes priority over a default mobile crop. Each selected file supplies its own dimensions.

mobile applies through 640px and tablet through 768px. Native picture sources select the viewport file. A null breakpoint disables mobile sources. An omitted SimpleImageProps.breakpoint uses the mobile threshold. CMS responses supply the selected breakpoint or null.

Use Configure theme surfaces to assign artwork to a surface and check it in both appearances.

Last updated on