10-05-2017 07:07 AM
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
10-05-2017 09:15 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.