Question : Jmagick how to resample when changing DPI

Hi Using JMagick I need to change the dpi of a jpg from 200dpi to 72dpi but keep the size it is printed at.
I have changed the dpi of the file using jmagick but  the number of pixels remains the same so
when printing the printed image on the is of course magnified.
I want to keep the printed size the same which means reducing the actual width and height of the jpg.
I have read that there is a function -resample in ImageMagick that will adjust the size of the image so that the printed output will be the same but I cannot find a similiar method with JMagick anywhere on the web.

It is really driving me nuts.
Thanks in advance

Brian Sweeeney



 

Answer : Jmagick how to resample when changing DPI

>   JMagick was supposed to be easy   (~_~;

not to sure about that :)

> which does correctly set the DPI of the output file to 72 but it does not change the actual image size

you need to also change the image size yourself, JMagick won't do that for you.
Random Solutions  
 
programming4us programming4us