CommandException: return code: 3

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Chady
Posts: 1
Joined: 2016-06-22T09:04:21-07:00
Authentication code: 1151

CommandException: return code: 3

Post by Chady »

I am converting .tif images to .jpeg format and getting the following exception for several images:

org.im4java.utils.BatchConverter$ConvertException: org.im4java.core.CommandException: return code: 3
at org.im4java.utils.BatchConverter.addException(BatchConverter.java:302)
at org.im4java.utils.BatchConverter.processTerminated(BatchConverter.java:203)
at org.im4java.process.ProcessStarter.runAndNotify(ProcessStarter.java:377)
at org.im4java.process.ProcessTask$1.run(ProcessTask.java:71)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.im4java.core.CommandException: return code: 3
at org.im4java.core.ImageCommand.finished(ImageCommand.java:255)
at org.im4java.process.ProcessStarter.runAndNotify(ProcessStarter.java:367)
... 7 more

What does return code: 3 mean? I hope someone can help me.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: CommandException: return code: 3

Post by Bonzo »

I would check to see if the error code comes from the org.im4java.utils.BatchConverter code
Post Reply