i must convert px to cm with javascript
oneCM= 37.795276 is it true everytime?
What is the DPI’s role here?
and if is variable CM on the monitor (factor DPI) how can we find DPI’s
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you want DPI or PPI? – DPI is for printing, PPI for screens.
If you are talking about the “real” size of an image or a webpage on your screen we’re talking about PPI. Common PC screens have approx. 80ppi, the macbook pro has 220ppi.
If you want to convert those, you first have to convert your wanted size from cm to inches and then multiply it with the wanted ppi.
Vice versa:
The same works with DPI for printing. You have to know the DPI of your printer (common printes have 72dpi, commercial printers have something between 150 – 600dpi).