Watermarking on thumbnail depending on the asset's metadata

manpreetk

05-05-2019

Hi, I am following this - Watermarking to add digital watermark to assets. However I want to modify this process slightly, I want to apply thumbnail images to assets based on its metadata fields. So for example: I upload an image file that has a metadata 'hasright Ristriction' field called 'HAS RIGHTS RISTRICTION'. Now the condition for a thumbnail and it's watermark would be: if 'HAS RIGHTS RISTRICTION' is 'YES'     apply thumbnail image watermarked 'X' but else if 'HAS RIGHTS RISTRICTION' is 'NO'     don not watermark the image. Slightly confused on how I can get this done, any help would be appreciated. Thanks, Manpreet

Accepted Solutions (1)

Accepted Solutions (1)

Jörg_Hoh

Employee

06-05-2019

In Understanding how OR Split in workflow works  there is an example how the you can access the workflow metadata from a custom workflow step and set a property in there. And in the OR split you can the retrieve this value.

Does that help?

Jörg

Answers (2)

Answers (2)

manpreetk

06-05-2019

Hi Joerg,

I am able to fecth the metadata property "hsy:assetRightsRestriction" by creating a workflow but unable to figure out how to access this property in OR split?

Thanks,

Manpreet

Jörg_Hoh

Employee

05-05-2019

When you modify the workflow, you can implement an OR-split with the correct condition; and if that condition is met, the watermark step is executed; if it's not met, it runs through an empty step.

In case you cannot read your metadata directly inside the OR-split, you need to a step before which fetches the relevant asset metadata and adds it to the workflow metadata, which should be accessible by the OR split.