"Parameter is not valid" Argument exception calling ToBitmap on large image.


When I call magickImage.ToBitmap on a large image, I will often get an error "Parameter is not valid". When I tried to break it out of the code in to a test, I could not get it to happen. I really don't know the best way to proceed. The image in question is a 9081 x 11335 Pixels (102.93 MPixels) (1.25) at 24 BPP jpg file.


dlemstra wrote Jan 20, 2015 at 3:10 PM

This project is no longer maintained. I created a new wrapper that can be found here: https://magick.codeplex.com/. You might want to give that a try.