ImageInfo.setDensity seems to be ignored
Martin Wilson <martinw <at> bright-interactive.com>
2006-08-15 22:14:09 GMT
Hi,
I am trying to find the JMagick equivalent to the
ImageMagick command:
convert -density 200 test-in.jpg
test-out.jpg
After running the above coomand, the
following:
identify -verbose test-out.jpg
shows a resolution of 200x200, as I would
expect.
I tried the following Java code:
info = new
ImageInfo();
info.setFileName(sSourceFilename);
info.setDensity("200");
miImage
= new
MagickImage(info);
miImage.setFileName(sDestFilename);
info.setFileName(sDestFilename);
miImage.writeImage(info);
identify -verbose on the resulting file shows a
resolution of 100x100, which was the resolution of the source image, i.e.
info.setDensity("200") seems to have been ignored.
Can anyone see what I am doing wrong? I'm using
JMagick v6.2.4-1 and ImageMagick v6.2.8.
Thanks,
Martin
.
_______________________________________________
JMagick mailing list
JMagick <at> yeo.id.au
http://www.yeo.id.au/mailman/listinfo/jmagick