Post processing
Last updated
Last updated
©2024 Scaleflex SAS
Post processing settings can be accessed from the Settings > DAM > Automations > Post processing (tab) menu.
Remember that post-processes marked with a * require Visual AI credits.
When a post process automation task is activated, it will run automatically on each upload. If not activated, the task can be manually triggered for certain uploads via the Upload API using the postprocess parameter (e.g., postprocess=remove-background
).
Once a post process is selected, the user is requested to set the following parameters:
Parameter | Description |
---|---|
| Sets if the post processing is SYNC (synchronous, -during the upload- preventing the asset to actually be stored while it's analysed) or ASYNC (asynchronous, meaning that the analysis job will be queued, allowing for the asset to immediately be available in the library) |
| When enabled, the post process will apply to every upload. When disabled, it allows you to prepare, test parameters, and temporarily put on hold the post-process while not losing the configuration. |
| Defines conditions under which the post processing will be triggered. If "no trigger rules" is selected, the post processing will trigger with every upload. |
| Some post-process running in sync mode allow to determine attributes for a file that can be used to decide whether or not to take a predetermined validation action at upload (eg. Notice or Refuse the upload) |
When setting up a post-process, trigger rules can be specified. These rules specify conditions that must be met to activate the related task. If left empty, the task will be run on each upload.
Trigger rules are evaluated to determine whether the task is run manually or automatically.
The following variables may be used to construct rules:
Property | Asset type | Description | Example |
---|---|---|---|
Image/Video width (px) | images / videos | Horizontal image dimensions / frame size (in pixels). |
|
Image/Video height (px) | images / videos | Vertical image dimensions / frame size (in pixels). |
|
Image format | images | The file type of the image. |
|
File size (B) | images / videos | The size of the asset in bytes. |
|
Video bitrate (bps) | videos | The video bitrate in bits per second. |
|
Video duration (s) | videos | The video duration in seconds. |
|
Upload folder path | images / videos | The location in which the asset is getting uploaded. |
|
As mentioned, the synchronous tasks provide a mechanism to validate uploads using validation rules. Possible actions when conditions have been met are:
Refuse - The upload is rejected.
Notice - A notice is issued, added to the file information and returned in the API response.
Setting up many synchronous tasks might significantly slow down the upload process.
Process | Validation rule | Example |
---|---|---|
Count faces |
|
|
Not Safe For Work |
|
|
Recognize number plate |
|
|
Recognize text (OCR) |
|
|
Validate image properties |
|
|
Validate video properties |
|
|
Please note that when marked "Unavailable", a post-process will not run and first it needs to be activated. That happens with a request to our Support Team, and in the meantime, triggering will be prevented regardless of the configuration of the post-process.
When the activation is provided and your account has enough Visual AI credits to run it, the post-process will be applied to all uploads, if the "Run on every upload" option is set to "Enabled".
Refer to the Upload post-processes on the Automation page for a list of available post-processes.