I've been searching all day for a way to get the physical dimension from a PNG image.I need to convert a PNG file into a numpy array, which is easy.
However, I cannot find a way to get the physical dimension of each pixel in the same image. Additionally, I need the origin of the image (i.e. the coordinate)
I understand that the physical dimension of a pixel is stored on a PNG image on the pHYs as part of the metadata. So I attempted to get all the metadata by following these steps: In Python, how do I read the exif data for an image?
However, the ._getifex() is not an actual method in the current version.