You are probably using the Q16 version of Magick.NET The Q16 version uses HDRI and requires a lot of memory 2480 * 3475 * 16 bytes per pixel = 131MB per page. This is a total of 45 * 131MB = 5.9 GB. When there is not enough memory available Magick.NET will use the hard disk to store the images. And this will make the conversion much slower. If you switch to the Q8 version you will only need 1.5 GB (2480 * 3475 * 4 bytes per pixel).
I will add new methods to the MagickImageCollection class that will make it easier for you to add a set of images.
I will add new methods to the MagickImageCollection class that will make it easier for you to add a set of images.
using (MagickImageCollection image= new MagickImageCollection()) { foreach(string fileName in GetFileNames()) { image.AddRange(fileName); } } // And:using (MagickImageCollection image= new MagickImageCollection()) { foreach(string fileName in GetFileNames()) { using (MagickImageCollection other = new MagickImageCollection(fileName)) { image.RemoveAt(1); image.AddRange(other); } }