Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Error in EPS thumbnail process steps

Avatar

Level 2

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
3 Replies

Avatar

Employee

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

Avatar

Level 9

Hi Yesh,

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

Thanks,

Avatar

Level 1

Try writing "magick" before the command. (just before convert)

It worked for me on windows