I am trying to scale an image on a mobile web page (packaged via cordova for Android/iOS) so it always has a known width in centimeters. Regardless of the screen resolution / size - I need the image to have a known width in centimeters. If I would be doing this 'the native way' I would check the screen ppi (points per inch) and then adjust image width in pixels accordingly.
I tried various solutions from stackoverflow but failed to find a solution.
Is developing a cordova plugin that would cover that on each platform separately is the only solution or this can be done via some javascript (or cordova) code.