I have a big image that I want to resize to 230×320 (exactly). I want the system to resize it without losing aspect ratio. i.e. if the image is 460×650, it should first resize to 230×325 and then crop the extra 5 pixels of height.
I am doing the following:
ImageMagickNET.Geometry geo = new ImageMagickNET.Geometry("230x320>");
img.Resize(geo);
But the images are not being resized to the exact size 230×320.
I am using ImageMagick.NET in C# 4.0.
This is how I solved the issue.