Hi,
While trying to batch resize a lot of images, the CPU is at 95%, witch is great, but not on a system shared with a IIS web server... So, is there a way to limit the number of CPU cores used ?
I tried to set the "MAGICK_THREAD_LIMIT=X" environment variable to limit the number of CPU cores used by Magick.Net but it doesn't seems to work.
I also tried ImageMagick.ResourceLimits.Thread = 2; But it doesn't work too..
Is there a workaround, or a standard way to do that ? ( Thread.Sleep() is not a workaround :)
While trying to batch resize a lot of images, the CPU is at 95%, witch is great, but not on a system shared with a IIS web server... So, is there a way to limit the number of CPU cores used ?
I tried to set the "MAGICK_THREAD_LIMIT=X" environment variable to limit the number of CPU cores used by Magick.Net but it doesn't seems to work.
I also tried ImageMagick.ResourceLimits.Thread = 2; But it doesn't work too..
Is there a workaround, or a standard way to do that ? ( Thread.Sleep() is not a workaround :)