
Hi,
How I can get the image size while using the Jmagick library?
Thanks

hi, the code given below may help you to get the image size when using Jmagick
ImageInfo ii = new ImageInfo(path+"\"+file);
MagickImage mi = new MagickImage(ii);
int x = mi.getDimension().width;
int y = mi.getDimension().height;
System.out.println("X:" + x + " Y:" +y);
Thanks,

hi, the code given below may help you to get the image size when using Jmagick
ImageInfo ii = new ImageInfo(path+"\"+file);
MagickImage mi = new MagickImage(ii);
int x = mi.getDimension().width;
int y = mi.getDimension().height;
System.out.println("X:" + x + " Y:" +y);
Thanks,

hi, the code given below may help you to get the image size when using Jmagick
ImageInfo ii = new ImageInfo(path+"\"+file);
MagickImage mi = new MagickImage(ii);
int x = mi.getDimension().width;
int y = mi.getDimension().height;
System.out.println("X:" + x + " Y:" +y);
Thanks,