I'm struggling with Magick.NET library, as when converting image files to pdf's my memory usage is over 4GB and the CPU usage is 100%. When the conversion is done it all backs to normal. but as I'm using this particular third party in many instances of one application it causes huge memory loss.
Problem exists on line images.Write(newPdfPath);
using (MagickImageCollection images = new MagickImageCollection())
{
images.Read(orginalImage);
images.Write(newPdfPath);
}
The images are different sizes, and it really doesn't matter how big, as when converting jpg of size 7 KB the issue also exists.
Please help!!!!