org.im4java.core.CommandException: magick: no images for write '-write'

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
kamal2222ahmed
Posts: 13
Joined: 2016-05-06T14:25:33-07:00
Authentication code: 1151

org.im4java.core.CommandException: magick: no images for write '-write'

Post by kamal2222ahmed »

Does im4java current version 1.4.0 supports ImageMagick 7.1.0-3 ??

The older versions used convert, but it seems with 7.1 /usr/bin/convert is a link, and the actual command is magick, i personally think BOTH should work and we have backward compatibility for im4java with regards to versions of ImageMagick. but since the upgrade, i get the following exception:

Caused by: org.im4java.core.CommandException: org.im4java.core.CommandException: magick: no images for write '-write' '/data/digitalEvidence/78c8d5bb-0000-49e6-a8f0-33a79ea86004/10000070/0.PDF' at CLI arg 3 @ error/operation.c/CLINoImageOperator/4730.
at org.im4java.core.ImageCommand.run(ImageCommand.java:215)
at gov.dhs.uscis.elis2.digitalevidence.backend.factoryImpl.ConversionFileRetrievalServiceImpl.getFilePageCount(ConversionFileRetrievalServiceImpl.java:119)
... 23 more
Caused by: org.im4java.core.CommandException: magick: no images for write '-write' '/data/digitalEvidence/78c8d5bb-0000-49e6-a8f0-33a79ea86004/10000070/0.PDF' at CLI arg 3 @ error/operation.c/CLINoImageOperator/4730.
at org.im4java.core.ImageCommand.finished(ImageCommand.java:249)
at org.im4java.process.ProcessStarter.run(ProcessStarter.java:314)
at org.im4java.core.ImageCommand.run(ImageCommand.java:211)
... 24 more
kamal2222ahmed
Posts: 13
Joined: 2016-05-06T14:25:33-07:00
Authentication code: 1151

Re: org.im4java.core.CommandException: magick: no images for write '-write'

Post by kamal2222ahmed »

i upgraded ImageMagick from 6.7.2.7-2.el6 to 7.0.1-3
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: org.im4java.core.CommandException: magick: no images for write '-write'

Post by snibgo »

What is the command that is being executed? V7 has a stricter syntax checker than v6. In addition, there are a small number of changes.

EDIT: I should add, there have been many other changes since 6.7.2.
snibgo's IM pages: im.snibgo.com
kamal2222ahmed
Posts: 13
Joined: 2016-05-06T14:25:33-07:00
Authentication code: 1151

Re: org.im4java.core.CommandException: magick: no images for write '-write'

Post by kamal2222ahmed »

the command "identify" is being executed
plus im4java-1.2.0.jar is being used, i am upgrading the jar to 1.4.0 now. But not sure if that will solve the problem
Post Reply