Page 1 of 1

resizing image using JMagic on 64-bit machines

Posted: 2013-08-26T05:17:30-07:00
by Ramu
Hi All,

I want to resize image using JMagic API on 64-bit machines.

import magick.ImageInfo;
import magick.MagickImage;

public class ResizeUsingJMagic {
public static void main(String args[]){
try{
ImageInfo origInfo = new ImageInfo("D:\\ConvertFiles\\JMagick.jpg"); //load image info
MagickImage image = new MagickImage(origInfo);
image = image.scaleImage(1000, 1000);
image.setFileName("D:\\ConvertFiles\\JMagick1.jpg"); //give new location
image.writeImage(origInfo);
}catch (Exception e) {
e.printStackTrace();
}
}
}

The above code is working as expected on 32-bit machines, but not on 64-but machines.

I have copied the JMagick.dll (Found only for 32-bit) and JMagick.jar to the classpath.

Could anyone please where I can found JMagick.dll for 64-bit(if the issue caused by this).

Thanks,
Ramu