image size calculation
Quick and dirty javascript to calculate
- the size of an image in dots, based on it's physical size in centimetres
and a dpi (dot per inch) value.
- a dpi setting, based on the image size in physical size in centimetres and
a desired minimum size in dots of the shorter size.
Note that the script does not check for the validity of your data, so if you
enter letters of negative numbers, or... you will get strange results.
Enter the size of the image and a dpi setting, or a desired size in dots of
the shorter side of the image:
length (cm):
height (cm):
dpi:
or size of shorter side:
length (dots):
height (dots):