Create Derivative as View

Once assets have been repurposed using an AutoTask, you have the ability to then export the results of the repurposed asset as a view of those affected assets. 

<task>
    <matchCriteria type="and">
        <criteria type="action" value="attributeChange"></criteria>
		<criteria name="Shrink me" type="attribute" value="Please do"></criteria>
        <criteria name="fileType" type="attribute" value="jpg|jpeg|tif|tiff"></criteria>
    </matchCriteria>
    <repurpose format="png" height="100"></repurpose>
    <exports>
        <export name="Shrunken" type="view"></export>
    </exports>
</task>

matchCriteria

This task is triggered when the attribute Shrink me is changed to the value Please do for any number of jpg, jpeg, tif, or tiff asset file types.

repurpose

Any assets affected by the AutoTask's matchCriteria will be repurposed as png files with a height of 100 pixels; because a width parameter is not specified, the asset's width will adjust proportionally as its height is shrunk. 

exports

The results of the repurpose action are then attached as views to their corresponding asset. 

 

 

Was this article helpful?
0 out of 0 found this helpful