Used Im4Java-1.4.0v to interface my java application to underlying IM library.
Code: Select all
Caused by: org.im4java.core.CommandException: org.im4java.core.CommandException: convert.exe: WriteBlob Failed `-' @ error/png.c/MagickPNGErrorHandler/1804.
at org.im4java.core.ImageCommand.run(ImageCommand.java:219)
at com.my.IMagick.cropImage(MagickComparison.java:209)
... 11 more
Caused by: org.im4java.core.CommandException: convert.exe: WriteBlob Failed `-' @ error/png.c/MagickPNGErrorHandler/1804.
at org.im4java.core.ImageCommand.finished(ImageCommand.java:253)
at org.im4java.process.ProcessStarter.run(ProcessStarter.java:314)
at org.im4java.core.ImageCommand.run(ImageCommand.java:215)
... 12 more
Code: Select all
IMOperation operation = new IMOperation();
operation.addImage(); ---> for buffered input image
operation.crop(width, height, startX, startY);
operation.addImage("png:-"); ---> output image place holder