Preview Templates
Preview templates allow you to configure the image parameters used in attributes. By applying a template to an attribute of type "Image" or "Image Group," you will get images standardized according to the specifications in the preview template. This is convenient if the design of your project is sensitive to image sizes. By configuring the preview template, you can change the image parameters that the end user will see.
To get started with preview templates, open the "Settings" section and then navigate to the "Preview Templates" subsection. In this section, there is a list of already created templates, as well as a form for creating new ones.
Creation
In the creation form, specify:
- Name - A non-unique string.
- Marker - A unique string.
After filling in the details, click the "Create" button.
Configuration
Select the preview template you want to configure from the general list and click on the gear icon to enter edit mode.
You can configure the format for vertical, horizontal, and square images.
In the corresponding forms, fill in:
- Width and Height (Square Side) - Dimensions in pixels that the image will fit into.
- Centering Type - The line that will become the central axis when compressing the image.
- Marker - A unique string.
Deletion
Select the preview template you want to delete from the general list and click on the delete icon to enter edit mode. Confirm the action in the dialog box.