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

Free Support Forum - aspose.com

Read the current resoluion (dpi) of an image

Can you read the resolution of an image file off disk with Aspose.Imaging?
For example I load and image:
using var image = Aspose.Imaging.Image.Load(imageFile);
I can get the pixels with image.Width and image.Height.

How can I obtain the resolution or dpi of the image?

Hello, @ccuster68!
Thank you for your interest in Aspose.Imaging.

How can I obtain the resolution or dpi of the image?

You can use the following properties implemented in RasterImage: HorizontalResolution, VerticalResolution