I'm trying to display a picture of an object on a page.
Given the original dimensions of the picture, is there a way of automatically resizing it to the real size?
Online ruler has a complicated set of instructions for getting screen PPI etc. But is there a way for me to automatically detect those stats with JavaScript?
Although, it would be nice to have universal solutions that work across all browsers on all devices. A solution that works on, for example, the Chrome browsers on MacBook would be good enough.
Any suggestions on where to proceed?
P.S: I know there's a chance this question will get closed, but there's really no better way of asking this question.