I'm trying to build a t-shirt printing website and I'm currently stuck on how to correctly measure/calculate the position of the print on x/y axis and the print size itself.
You can get the idea of what I mean by
- visiting spreadshirt
- selecting any print
- trying to move / resize the print
- the measurement will be the same regardless of the screen/font size
I'm not sure how exactly the calculation happens but I was thinking that maybe I could get the device dpi then convert pixels to inches based on the result. But sadly that won't give correct measurements in many cases.