This project has moved. For the latest updates, please go here.

Shrink image while increasing resolution

Sep 15, 2016 at 7:00 PM
I have an image that is 9" x 9" at 72 DPI.
My customer wants me to shrink it to 2" x 2", and at the same time, increase the DPI to 300 DPI.

I have been unable to get this to work in Magick.NET. What is the proper way to do both simultaneously without losing resolution.
Sep 16, 2016 at 7:36 AM
Edited Sep 16, 2016 at 7:37 AM
If you want to preserve your image you should only change the Density property of the image. First you will need to get the width: 9 * 72 = 648. And if you want 2" you should divide 648 by 2 and set that as the density: 648 / 2 = 324 DPI. If you want it to be exactly 300 DPI you will need to resize your image. That means in this case you will need to resize your image from 648 to 600. Have you tried to use the Resample method?
Sep 16, 2016 at 1:23 PM
Ahh! The resample was what I needed. Again, thank you so much, you are awesome!