The variant generation process
The records of the following repositories define the image variants that can be generated.
- DAMVariantSizes
- DamVariants
The record's attributes include values such as the dimensions of the variant, the image quality, whether to include a watermark, the text of the watermark, and compression quality. One of repository's attributes is Regex Rule. If it is set, it contains a regex pattern expression. If the image's filename matches the pattern specified in Regex Rule, the variant defined by the record is generated. For more information and examples, see Governing Image Variant Creation with Regex Rules.
When an image is uploaded:
- DAMVariantSizes records are checked to see if the image's filename matches any of the Regex Rules in the records. If a rule applies, the variant is generated. Multiple rules may apply.
- If none of the rules apply, the Regex Rules in the DAMVariants repository's records are checked. If a rule applies, the variant is generated.
- If no Regex Rules apply, the variant is generated according to each record in DAMVariants that has an empty Regex Rule attribute.
Define or edit a variant
To define a new variant or to edit an existing variant:
- Stop all DAM processing:
- Ensure that no users, workflows, or enterprise processes are placing files in
the
DAMDrop
folder. - Stop DAM services:
enable-dam-manager-service
enable-dam-variant-processor-service
- Stop DAM tasks. Open the task manager and if any of the following tasks are
running, stop them:
enable-dam-manager-service
enable-dam-variant-processor-service
DAMReportUtility.exe
MonitorDAMDrop.exe
RegenerateDAMVariant
- Ensure that no users, workflows, or enterprise processes are placing files in
the
- Open either the DAMVariants or DAMVariantSizes repository in a repository view by opening the Feature bar, opening the DAM folder, and selecting the repository.
-
Open the variant's record:
- To define a new variant, click Add on the tool bar. A new record will be created and opened in the editor.
- To edit an existing variant, select it and click Edit on the tool bar. The record will be opened in the editor.
- To define a variant, the required attributes must be set. For more information, see:
- Click Save.
- Restart EnterWorks Services