Page 1 of 1

Samsung Nexus S - max image width and resolution width

Posted: Fri Nov 29, 2013 7:52 am
by mobilemedia
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

Re: Samsung Nexus S - max image width and resolution width

Posted: Fri Nov 29, 2013 4:29 pm
by kamermans
Hi Charis,

320x1080 does look incorrect, so we'll take a look. The 320px width was due to the CSS/viewport width of Android browser / Chrome on Android when served in mobile mode. We will let you know once we've fixed the value(s).

Re: Samsung Nexus S - max image width and resolution width

Posted: Tue Dec 03, 2013 7:35 am
by mobilemedia
ok thanks a lot.

I have another case

Samsung Nexus S

max_device_width = 320
resolution_width = 480

Charis

Re: Samsung Nexus S - max image width and resolution width

Posted: Tue Dec 03, 2013 9:19 am
by sriram
Hi Charis,

Thanks for the heads-up! We will look into this, fix the issue if necessary and update you.

Cheers!

Re: Samsung Nexus S - max image width and resolution width

Posted: Wed Jan 29, 2014 4:12 am
by mobilemedia
Hello,

we are still getting wrong values from the cloud service in max_device_width, even though we reported the problem 2 months ago:

Samsung Nexus S
- device_width = 480
- max_device_width = 320

Samsung Galaxy S4
- device_width = 1080
- max_device_width = 360

for iPhone 4/4S for example the cloud service reports values that are correct and help us to choose the correct image size to deliver to the device
- device_width = 960
- max_device_width = 480

How should we choose the correct image size for android devices until the max_device_width is corrected ?

Charis

Re: Samsung Nexus S - max image width and resolution width

Posted: Wed Jan 29, 2014 11:30 am
by Elliotfehr
The max_image_width and max_image_height capabilities for these devices were derived from user contributed data. If you believe that they are inaccurate please feel free to let us know why along with what values they should be.

Keep in mind that these are CSS pixels and not actual device pixels so they may not have a linear correlation to a device's resolution.

Thank you,

Elliot

Re: Samsung Nexus S - max image width and resolution width

Posted: Wed Feb 05, 2014 4:27 am
by mobilemedia
Hello Elliot

thanks for your answer and for the article you mention in your reply regarding CSS pixels.
It really shed light to this confusing issue.

regards
Charis