I am looking for the correct way to set the max memory and max pixel cache sizes preferably in code, but barring that should I use the policy.xml file by uncommenting the following lines and adjusting the values like this:
<policy domain="resource" name="memory" value="0MiB"/>
<policy domain="resource" name="map" value="0MiB"/>
I looked at the using something like this:
MagickReadSettings settings = new MagickReadSettings();
but I don't see the resource limits I'm looking to control.
Any help would be much appreciated, thanks...
Looking for ways to control (limit) resource usage in Magick.NET
-
- Posts: 22
- Joined: 2017-08-30T12:59:12-07:00
- Authentication code: 1151
Re: Looking for ways to control (limit) resource usage in Magick.NET
You can find an example on how to do that here: https://github.com/dlemstra/Magick.NET/ ... iles-class