Hello, I have a problem to transform an image. I use a javascript script found in the Alfresco documentation. My version is 5.2. The script :// convert an image to JPG format and resize to thumbnail image
var thumbImage = document.transformImage('image/jpeg', '-resize 120');The log:
ERROR [org.alfresco.repo.jscript.ScriptNode] [defaultAsyncAction4] 08110207 Unsupported transformation: transformer.ImageMagick image/jpeg to image/png
Screenshot :
The image is well converted but the resize does not work. The mimetype (property of the image) can not change.
Being a beginner, I can not understand the log message.
Thank you in advance for your help.
Olivier
I had a problem with a "duplicate child name" when trying this.
var thumbImage = document.transformImage('image/jpeg', '-resize 120',document.parent.parent);
worked for me and the thumbnail is created on folder above the document (just for testing). But I didn't get the conversion error...
...ok, I first tried your original js-line with a png and everything works. The 120px Thumbnail is created. So it seems to be a problem with the setup.
I used Alfresco Community 5.2 on Ubuntu Linux and the image.magick version provided by alfresco installer for the test.
Regards,
Martin