I need to calculate the approximate size of the image in inches, assuming 300 dpi.
I have the size of the target image, and I want to show the user if the image they uploaded is adequate, or it will need to be stretched and offer various conditional messages based on this.
I already have the height and width in pixels, I just need to know the math, I think.
source
share