Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Arithmetic operation resulted in an overflow [1422]

$
0
0
Hi, I'm using Magick.NET (NuGet package: `Magick.NET-Q16-x64`) to retrieve image information from a given image file.

Looks like this:
```
var info = new MagickImageInfo(stream); // exception gets thrown here
var dpix = info.Density.X;
```

Everything worked as expected the last months. But currently one image is breaking my code and is throwing an overflow exception.
Stacktrace:
```
System.OverflowException: Arithmetic operation resulted in an overflow.
at ImageMagick.MagickImage.NativeMagickImage.get_ResolutionUnits()
at ImageMagick.MagickImage.get_Density()
at ImageMagick.MagickImageInfo.Initialize(MagickImage image)
at ImageMagick.MagickImageInfo.Read(Stream stream)
```
The image which causes the exception: https://testpublic.blob.core.windows.net/magicknet/BrokenImage.jpg
Comments: Issue resolved with upgrade to version `7.0.4.400`

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>