My simplified code goes like this:
var imageData = File.ReadAllBytes(@"ffed5e2f-359c-481f-b236-281360a91df7.JPG");
using (MagickImage image = new MagickImage())
{
image.Read(imageData);
var density = image.Density; //throws System.OverflowException - Arithmetic operation resulted in an overflow.
}
Sample file can be downloaded from https://cadworxshared.blob.core.windows.net/magicknet/ffed5e2f-359c-481f-b236-281360a91df7.JPG
Please note that this happens when using x64 with both Magick.NET-Q16-HDRI-AnyCPU and Magick.NET-Q16-HDRI-x64. It seems to work correctly in x86 but I need to use x64.
Thanks in advance.