Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Watermarking on thumbnail depending on the asset's metadata

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

4 Replies

Avatar

Employee Advisor

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.

Avatar

Level 3

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

Avatar

Community Advisor

Did you get a workflow for watermarking thumbnails in the end?

Avatar

Correct answer by
Employee Advisor

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