resizing image using JMagic on 64-bit machines

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
Ramu
Posts: 2
Joined: 2013-08-26T02:00:07-07:00
Authentication code: 6789

resizing image using JMagic on 64-bit machines

Post 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
Post Reply