cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new rendition to an existing document

neilecker
Confirmed Champ
Confirmed Champ

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

1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator

Here's an oldie-but-goodie, going all the way back to March of 2009. It might help you figure out how to register a thumbnail definition, which is what you're trying to do.

Grasping Thumbnails in Alfresco 3 | ECM Architect