Samsung Nexus S - max image width and resolution width
Posted: Fri Nov 29, 2013 7:52 am
Hello,
we are a little confused about the max image width values reported from the cloud service for example in the case of Galaxy S4
resolution width : 1080
max image width: 320
viewport supported : true
We are using for high dpi devices - such as iPhone 4 - the following method for rendering graphics that extend to 100% of the screen's width:
- serve an image whose width is the actual device with , so in the case of iPhone 4, an image with width = 640 pixels
- limit in css the width of the image to the max image width reported, assuming that these are the css pixels of the device, so in the case of iPhone 4, setting width property in css to 320 px
However in the case of Samsung Galaxy S4, it does not apply very well, since max image width = 320px seems to low.
thanks in advance for the help
Charis
we are a little confused about the max image width values reported from the cloud service for example in the case of Galaxy S4
resolution width : 1080
max image width: 320
viewport supported : true
We are using for high dpi devices - such as iPhone 4 - the following method for rendering graphics that extend to 100% of the screen's width:
- serve an image whose width is the actual device with , so in the case of iPhone 4, an image with width = 640 pixels
- limit in css the width of the image to the max image width reported, assuming that these are the css pixels of the device, so in the case of iPhone 4, setting width property in css to 320 px
However in the case of Samsung Galaxy S4, it does not apply very well, since max image width = 320px seems to low.
thanks in advance for the help
Charis