imagecompressionresolutionpixelppi

Resolution from Size and pixels of an image


Is there any formula to calculate image resolution, if provided with image size and image height and width. I googled for an answer, but didnt get much of a help. Got one formula, but if i calculate with height and width of an image, the resolution i got is different from actual resolution.

Also if i have take a pic from 42 mega Pixel camera and 32 mega pixel camera, will the image size and dimensions vary?

Thanks Jithen


Solution

  • It's a simple cross-multiplication

    if your image is supposed to have a width of 10 inches and is 1000 pixels wide, its horizontal resolution is 1000 / 10 = 100 ppi (pixels per inch).

    Do I missed something ?