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.
Props
Image entity id in the CMS.
Internal CMS name.
Copyright or attribution text. Can be null.
Primary file for this image.
Optional artwork for a surface that requests onDark.
Optional image file for small screens. A missing upload is null.
Optional artwork for small screens on a surface that requests onDark.
Alternative text used for accessibility.
Controls mobile sources. Null disables them.
Whether the image is marked as AI-generated.
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.
Props
Image id in the CMS.
Alternative text.
Underlying file reference.
Optional artwork for a surface that requests onDark.
Optional image file for small screens.
Optional artwork for small screens on a surface that requests onDark.
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 field | CMS label | Public field |
|---|---|---|
image | Bild | file |
imageOnDark | Bild für dunkle Hintergründe | onDarkFile |
mobileImage | Bild mobile Ansicht | mobileFile |
mobileImageOnDark | Mobiles Bild für dunkle Hintergründe | mobileOnDarkFile |
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 artwork | Desktop priority | Mobile priority |
|---|---|---|
default | file | mobileFile → file |
onDark | onDarkFile → file | mobileOnDarkFile → 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.