Magick.NET: Incorrect density information when reading an image
Description
I am updating the version of Magick.NET from v7.14.2
to 8.4.0
.
I have some failing tests and it looks like reading an image results in incorrect denisty infomation.
I have an image that has a density of 72x72 (verified in photoshop and properties of the file).
When loading the image with the new version of Magick.NET the denisty is shows as 300x300.
v7.14.2
v8.4.0
Steps to Reproduce
var path = @"C:\TestFiles\imageMagick\test.jpg";
var image = new MagickImage();
image.Read(path);
Console.WriteLine($"Density = X: {image.Density.X}. Y: {image.Density.Y}. Units: {image.Density.Units}.");
On version 7.14.2 - density 72x72 inch
(expected)
On version 8.4.0 - density 300x300 inch
Any help would be really appreciated.
- Magick.NET version: 8.4.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- Added unit tests for the issue reported in #1077 — committed to dlemstra/Magick.NET by dlemstra 3 years ago
- Added extra unit tests for the other/extra issues reported in #1077. — committed to dlemstra/Magick.NET by dlemstra a year ago
@dlemstra Thank you for the new release! It has resolved our issues.
The WebP format doesn’t store the density information in some kind of metadata field. The xmp/exif profiles are used to store that information.
I will publish a new release soon. Maybe this week, maybe next week.