I'm unable to resample my image by resolution. Ex.
```
using (var image = new MagickImage(_in))
{
FilterType type; Enum.TryParse(_filter, true, out type);
image.FilterType = FilterType.Lanczos.;
image.Resample(500, 500);
image.Write(_out);
}
```
It just hangs on the resample call. I have a reasonably fast machine with 16gb of memory.
I am using Magick.NET-Q16-HDRI-AnyCPU.7.0.0.0009.
I'm expecting the image to resize to 500px width and 500px height but I could be just using the resample method wrong.
Comments: ** Comment from web user: Nate_Wilkins **
```
using (var image = new MagickImage(_in))
{
FilterType type; Enum.TryParse(_filter, true, out type);
image.FilterType = FilterType.Lanczos.;
image.Resample(500, 500);
image.Write(_out);
}
```
It just hangs on the resample call. I have a reasonably fast machine with 16gb of memory.
I am using Magick.NET-Q16-HDRI-AnyCPU.7.0.0.0009.
I'm expecting the image to resize to 500px width and 500px height but I could be just using the resample method wrong.
Comments: ** Comment from web user: Nate_Wilkins **
I'm feeling like an idiot right now. I finally got an out of memory exception - I'm assuming the problem is due to my build configuration - it's currently set to Any CPU and when I checked Task Manager the vshost.exe was running as a 32bit process.
I've changed the configuration to platform x64 and it works fine now. So I'm assuming now that I don't even need the AnyCPU build of Magick.NET since I'm now required to switch to a target platform of x64 anyways.
Really new to this so I could be completely wrong about all of this.