Hi Bernard, Thanks for the quick reply. So we kept digging deeper and a coworker found that if she did the following, it worked. ConvertCmd cmd = new ConvertCmd(); String enginePath = "C:\\Program Files\\ImageMagick-7.0.5-Q16"; // create the operation, add images and operators/options IMOperation op = new IMOperation(); op.addImage("C:\\WorkStuff\\badOriginal.jpeg"); op.resize(800,600); op.addImage("C:\\WorkStuff\\fixedHappy2.jpg"); // execute the operation cmd.setSearchPath(enginePath); cmd.run(op);...
So I am continuing to dig deeper, decided to use the Info Object to investigate the bad image, and a good image (copy of bad)'s differences. String incomingFileBad = "C:\\WorkStuff\\badOriginal444.jpeg"; String incomingFileGood = "C:\\WorkStuff\\badRandomProp.jpeg"; String mimeType = "image/jpg"; String enginePath = "C:\\Program Files\\ImageMagick-7.0.5-Q16"; Info imageInfoBad = null; Info imageInfoGood = null; try { imageInfoBad = new Info (incomingFileBad); imageInfoGood = new Info (incomingFileGood);...
So I am continuing to dig deeper, decided to use the Info Object to investigate the bad image, and a good image (copy of bad)'s differences. String incomingFileBad = "C:\\WorkStuff\\badOriginal444.jpeg"; String incomingFileGood = "C:\\WorkStuff\\badRandomProp.jpeg"; String mimeType = "image/jpg"; String enginePath = "C:\\Program Files\\ImageMagick-7.0.5-Q16"; Info imageInfoBad = null; Info imageInfoGood = null; try { imageInfoBad = new Info (incomingFileBad); imageInfoGood = new Info (incomingFileGood);...
System.out.println("We're going to get the image info. For two images."); String incomingFileBad = "C:\\WorkStuff\\badOriginal444.jpeg"; String incomingFileGood = "C:\\WorkStuff\\badRandomProp.jpeg"; String incomingFileNormal = "C:\\WorkStuff\\001.jpg"; String mimeType = "image/jpg"; String enginePath = "C:\\Program Files\\ImageMagick-7.0.5-Q16"; Info imageInfoBad = null; Info imageInfoGood = null; Info imageInfo3 = null; try { // imageInfo = new Info (incomingFileBad, true); // imageInfo2 = new...
:::java System.out.println("We're going to get the image info. For two images."); String incomingFileBad = "C:\\WorkStuff\\badOriginal444.jpeg"; String incomingFileGood = "C:\\WorkStuff\\badRandomProp.jpeg"; String incomingFileNormal = "C:\\WorkStuff\\001.jpg"; String mimeType = "image/jpg"; String enginePath = "C:\\Program Files\\ImageMagick-7.0.5-Q16"; Info imageInfoBad = null; Info imageInfoGood = null; Info imageInfo3 = null; try { // imageInfo = new Info (incomingFileBad, true); // imageInfo2...
Oh sorry, here is the image file in question. And a link to it: https://drive.google.com/open?id=0B-9pALoPVAUeMmU1RWdpdVJvdkE EDIT :: THE ATTACHMENT WILL NOT WORK FOR THE EXAMPLE. It downloads much smaller than the original file, and falls into the "resaved" category and thus works inside im4java. I downloaded the image from the link above however and that did cause the hanging still
Oh sorry, here is the image file in question. And a link to it: https://drive.google.com/open?id=0B-9pALoPVAUeMmU1RWdpdVJvdkE
Hello. I have an instance where a specific image file is causing the convert.exe to hang. However when I run the same command through either the command line in Windows, or through a runtime execution inside java, the operation complets successfully. The below code should indicate, I hope, that I am performing the same operation (in a local environment) between the im4java interface and the command line. Super weird. I've tried an assortment of different commands in im4java, nothing seems to matter....