AnsweredAssumed Answered

Adding a new rendition to an existing document

Question asked by neilecker on Oct 5, 2017
Latest reply on Oct 5, 2017 by jpotts

I'm looking for some guidance on how to add a new type of rendition to a set of nodes.  Basically I have a large number of .TIF files that I would like to create smaller JPEG or PNG renditions for to be used a website.

 

Using 'transformImage' I can easily create new versions of an image and store them in a folder which is really nice:

var node = search.findNode('workspace://SpacesStore/101bc9b8-1fc7-43fa-9ff3-f22c38bae133');
var destDir = search.findNode('workspace://SpacesStore/8e955a31-2bbe-4bda-af0e-7bea49ff4db0');
var transformedNode = node.transformImage("image/jpeg", '-resize 50%', destDir);

 

But I'm a bit lost with using the RenditionService (render | Alfresco Documentation ) to render a transformation like the above as a new rendition.

 

Thanks,

Neil

Outcomes