Possible Duplicate:
How to define DPi for a new JPG image?
Is there a way to get a resolution (pixels per inch) of an image in Java? Either with Native APIs or third party libraries. I don't just want the height and width of an image but actually the resolution that determines the output quality of an image.