-
-
Notifications
You must be signed in to change notification settings - Fork 444
Closed
Milestone
Description
Magick.NET version
13.2.0
Environment (Operating system, version and so on)
Windows 11 22H2
Description
Reported from d2phap/ImageGlass#1622
When reading this file with .ToBitmapWithDensity()

It throws exception on the bitmap.SetResolution:

at System.Drawing.Bitmap.SetResolution(Single xDpi, Single yDpi)
at ImageMagick.IMagickImageExtentions.SetBitmapDensity[TQuantumType](IMagickImage`1 image, Bitmap bitmap)
at ImageMagick.IMagickImageExtentions.ToBitmap[TQuantumType](IMagickImage`1 self, Boolean withDensity)
at ImageMagick.IMagickImageExtentions.ToBitmapWithDensity[TQuantumType](IMagickImage`1 self)
I would be nice if MagickNET can ignore the error!
Steps to Reproduce
using var imgM = new MagickImage();
imgM.Read(@"256815987-31008961-f200-4f85-b250-3e54e8d747ed.jpg", new MagickReadSettings());
var aaa = imgM.ToBitmapWithDensity(); // 🫠Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
