Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Resample by resolution [1341]

$
0
0
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: dlemstra **

You probably want to use Resize instead of Resample. The latter changes the DPI of the image to 500 DPI. This will resize your image to 7200x10800.


Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>