We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Different dpi value showing in different tool for same image

Hello Team,

We have generated image by setting horizontal and vertical resolution to 300dpi using aspose.imaging latest version for .net. In that, when we check property of it by right clicking on image, it’s showing 300dpi and when we check property of same image in MS Paint, it’s showing 96dpi. why is it so? For your reference, we have attached images.
Images.zip (1.3 MB)

Hello, @siriussynoptek
I checked the generated.jpeg you have sent me. Let me share what I got known.

  1. Your generated.jpeg is not a JPEG it is a PNG file.
  2. If I open generated.jpeg using IrfanViewer it considers this file as 300x300 dpi.
  3. Perhaps MS Paint cannot read PNG internal structure that contains the file resolution.
  4. If perform an export of generated.jpeg into real jpeg format (using Aspose.Imaging or IrfanViewer), MS Paint considers produced file as 300x300 dpi.