org.im4java.core.CommandException: magick: no images for write '-write'
Posted: 2016-06-03T09:31:02-07:00
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
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