Image Schema
Last updated
Was this helpful?
Last updated
Was this helpful?
Schemas are structured definitions that describe the format, rules, and relationships of data within a system. They ensure consistency and validate inputs. In Beefree SDK, the Simple Image Schema defines how image blocks are configured and rendered within email, page, and popup builders. It manages image sources, alt text, click behavior, and styling such as padding. This documentation breaks down the schema's properties, requirements, and usage examples to help you implement and customize image blocks effectively.
Reference the for more information.
This section summarizes the purpose and key characteristics of the Simple Image Schema.
Schema Name: Simple Image
Purpose: Defines image elements with support for alt text, links, dynamic sources, and styling.
Related Schemas:
definitions.schema.json
(for padding definitions)
Below is the JSON Schema definition and a detailed breakdown of each property.
The following table lists the field descriptions along with their corresponding data type, whether or not they are mandatory, and their description.
src
string
The source URL of the image
alt
string
The alt text for the image
href
string
The URL the image links to
dynamicSrc
string
The dynamic source URL of the image
target
enum
The target for the link
padding-top
integer
The top padding (0-60)
padding-right
integer
The right padding (0-60)
padding-bottom
integer
The bottom padding (0-60)
padding-left
integer
The left padding (0-60)
customFields
object
Custom fields
locked
boolean
Whether the module is locked.
Note: Not available for Single Content AddOn.
Reference an example of the schema in the following code snippet.
Consider the following when working with the Simple Image Schema in Beefree SDK:
Accessibility: Always provide meaningful alt
text for screen readers and fallback scenarios.
Extensibility: Use customFields
for non-standard properties.
No
No
No
No
No
No
No
No
No
No
No