Skip to content

Wrong density unit on png images #1123

Closed
@stephsen

Description

@stephsen

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

But in Photoshop, the density is 800 pixels per inch and
image

and in pixels per centimeter
image

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.

  • Magick.NET version: Magick.NET-Q16-x64 9.0.0
  • Environment (Operating system, version and so on): Windows 10 pro

Thanks
PNG_GRIS.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions