O'Reilly logo

Alfresco 3 Web Content Management by Vinita Choudhary, Pallika Majmudar, Amita Bhandari, Munwar Shariff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Image transformation in WCM

Alfresco leverages the power of ImageMagick for image transformations. Refer to Chapter 2, Installation and Configuration for installing ImageMagick. Alfresco JavaScript provides some APIs to perform image transformations. The prerequisite for this is to have ImageMagick installed. The Script node has the APIs mentioned in the following section for image transformation.

Image transformation APIs

Alfresco provides the following APIs for image transformations. transformImage is overloaded with different parameters. You can use any of these based on your requirement:

  • transformImage(string mimetype): This will transform an image to a new type specified in mimetype and will return the transformed image node if successful ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required