Using ImageMagick with AEM6.3 using commandline gives error 137

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vhebbar
Posts: 1
Joined: 2018-04-17T02:01:06-07:00
Authentication code: 1152

Using ImageMagick with AEM6.3 using commandline gives error 137

Post by vhebbar »

Hi,

There is an integration done with AEM 6.3 with ImageMagick as recommended in the below link.
https://helpx.adobe.com/experience-mana ... agick.html

This actually executes the below command.
convert, -define, jpeg:size=419x419, {fileName}, -thumbnail, 419x419, cq5dam.thumbnail.419.419.png

Some times this gives an error as below. Please note this is not consistent. The size of the image is around 1 GB.

17.04.2018 03:16:53.727 *ERROR* [JobHandler: /etc/workflow/instances/server0/2018-04-11/XXX_896:/content/dam/XXX/XXX/XXX/XXX/XXX/XXX/1234.tif] com.day.cq.dam.core.process.CommandLineProcess execute: failed to execute command [[convert, -define, jpeg:size=419x419, 35827483.tif, -thumbnail, 419x419, cq5dam.thumbnail.419.419.png]] for asset [/content/dam/XXX/XXX/XXX/XXX/XXX/XXX/1234.tif]:
org.apache.commons.exec.ExecuteException: Process exited with an error: 137 (Exit value: 137)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153)
at com.day.cq.dam.core.process.CommandLineProcess$2.run(CommandLineProcess.java:276)
at com.day.cq.dam.core.impl.jmx.AssetUpdateMonitorImpl$UpdateStep.checkAndRun(AssetUpdateMonitorImpl.java:978)
at com.day.cq.dam.core.process.CommandLineProcess.execute(CommandLineProcess.java:194)
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:258)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Since there was no details of the error 137, i am posting this message to get further details.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Using ImageMagick with AEM6.3 using commandline gives error 137

Post by fmw42 »

I do not think this is an imagemagick error. What is your Imagemagick version and platform?
Post Reply