Please download the project
Img-Dpi.zip (7.1 KB)
and launch it. Drag&drop a Png (or Jpg etc.) on the Canvas or click the button and choose the picture file.
On Mac, you will not always have the good dpi displayed in Label2 (I open the same picture file with Preview to compare).
It seems that if the picture file has been saved with Xojo (and is 144 dpi), it will display 144 dpi in the label2. But if you select a file saved by another application (the Finder if you made a screencapture, or a picture saved by Preview or by Affinity), it will always display 72 dpi (even if in 144 dpi).
I launched my small program on window and all it is ok, the good dpi is displayed.
And more strange, if you drag and drop this picture
SmallRedDot@1x.zip (2.7 KB)
and drag&drop it it, Label2 will display 144 dpi. If you rename it “SmallRedDot” it will display 72 dpi???
