Highlighted

Error in EPS thumbnail process steps

yagyesh11235

30-06-2016

Hi All,

 
I have uploaded a EPS file in DAM , the DAM update Asset workflow runs on image upload.
For eps file i am getting an error :
   
30.06.2016 17:44:40.769 *ERROR* [JobHandler: /etc/workflow/instances/server0/2016-06-30/model_531998837298215:/content/dam/xxx/yyy/zzz/digital/1st%20Source%20Elite_flat-black.eps/jcr:content/renditions/original] com.day.cq.dam.core.process.CommandLineProcess execute: failed to execute command [convert -define jpeg:size=319x319 1st%20Source%20Elite_flat-black.eps -thumbnail 319x319 cq5dam.thumbnail.319.319.png] for asset [/content/dam/xxx/yyy/zzz/digital/1st%20Source%20Elite_flat-black.eps]: 
org.apache.commons.exec.ExecuteException: Process exited with an error: 4(Exit value: 4)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at com.day.cq.dam.core.process.CommandLineProcess.execute(CommandLineProcess.java:235)
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:184)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:232)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:512)
at org.apache.sling.event.impl.jobs.queues.JobRunner.run(JobRunner.java:205)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
 
 
 
ImageMagick is Installed in my system and i am able to convert an eps file to png by running command   convert -define jpeg:size=319x319 1st%20Source%20Elite_flat-black.eps -thumbnail 319x319 cq5dam.thumbnail.319.319.png which is the same command that the process steps use.
 
Please let me if anybody faced similar issue or any pointer to this

Replies

Highlighted

amitgupta_adbe

Employee

10-07-2016

Please check the configuration of the workflow as explained in https://docs.adobe.com/docs/en/aem/6-0/develop/extending/assets/media-handlers.html#Command Line Based Media Handler

it should be something like convert -define jpeg:size=319x319 ${directory}/${filename} -thumbnail 319x319 ${directory}/cq5dam.thumbnail.319.319.png

I think that it need absolute path to the image

Highlighted

MC_Stuff

30-05-2017

Hi Yesh,

Provide full path for convert & sounds like the installation path of ImageMagick is not in your system library path.

Thanks,