-
-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong density unit on png images #1123
Comments
It looks like you found a bug inside ImageMagick. After the image is read we get some information from the |
Hello, do you have any idea when the new version will be released? Thanks a lot |
You were lucky. I was planning to release a new version this weekend and I just published that release. Normally the answer would be: I don't know?. |
Unfortunately, that doesn't work. I have exactly the same result |
Hello, do you have an explanation why it's different for the same image ? Thanks |
My apologies, I just updated to the latest version and the result is correct. Thanks a lot for your good job. |
No problem was just going to aak if you could double check if you upgraded to the most recent version. |
Description
Hello,
When I retrieve the density of an image in png format, it returns the value '314.96' with a unit of 'inch'.
![image](https://user-images.githubusercontent.com/17439156/152309213-9b188641-0f4c-4114-9c46-929db6ccb7b3.png)
But in Photoshop, the density is 800 pixels per inch and
![image](https://user-images.githubusercontent.com/17439156/152311843-3e78d794-3ddb-4d00-b81d-3994b1fdbce9.png)
and in pixels per centimeter
![image](https://user-images.githubusercontent.com/17439156/152311958-4903b44b-07bc-48ba-8a49-34a23b384002.png)
I try to change units, but it's not work because Density object is already in PixelsPerInch, but value in PixelsPerCentimeter.
image.Density.ChangeUnits(DensityUnit.PixelsPerInch)
Steps to Reproduce
Use attached picture to reproduce this.
Thanks
PNG_GRIS.zip
The text was updated successfully, but these errors were encountered: