This project has moved and is read-only. For the latest updates, please go here.

Magick.NET performance

Jan 16, 2014 at 5:21 PM

I'm evaluating Magick.NET to see if we can replace our current image manipulation tool, and I've noticed that Magick.NET seems to have poorer performance than our current tool. In one situation we are loading a TIFF, resizing it, and converting it to PNG. Is there anything we can do in terms of configuration (or code changes) to improve the performance of Magick.NET?

I have tried both the 32bit version and the 64bit version.
        MagickReadSettings settings = new MagickReadSettings
            FrameIndex = 0
        string filePath = "C:\\TwoPageTIFF.tif";
        MagickImage image = new MagickImage(filePath, settings);
        MagickGeometry geometry = new MagickGeometry(1000, 1332);

        image.Format = MagickFormat.Png;
        byte[] result = image.ToByteArray();
Thank you!
Jan 16, 2014 at 6:16 PM
There are a lot of factors that could influence the performance of Magick.NET. Magick.NET uses a lot of memory so it is possible that disk cache is being used. You could use the new Log event of Magick.NET to get detailed log information to see what it is taking long. You can find some info about that in the documentation. Feel free to post parts of your log or contact me to send them by e-mail. I might be able to help you improve the performance when I have a bit more information.
Jan 18, 2014 at 10:26 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.