title: How can I get DPI from image in JS?
body: <p>I work on a HTML5 canvas to calculate distance on image between two points. I want to convert this distance in pixel to cm. I found a formula : pixels * 2.54 / DPI. So, I would like to know if it's possible to get DPI image properties in JS? Or, can I use an easiest way to calculate cm from pixels?</p>
  
  <p>Thank you.</p>