AnsweredAssumed Answered

Transform a image with Javascript

Question asked by larade on Sep 11, 2017
Latest reply on Sep 12, 2017 by larade
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

Outcomes