Which capability to use for wallpaper sizes?
Posted: Mon Jul 03, 2017 8:33 am
Hi everyone,
I have been using max_image_width and max_image_height to get the sizes of images to display on devices, but those values aren't quite working any more. Now I need to resize images for wallpapers.
I've tried getting both the wallpaper_max... and wallpaper_preferred... width and height values, but they seem to be 0 for everything I'm trying.
Specifically a Samsung Galaxy A5 with a UA of:
Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-A320FL/A320FLXXU1AQF2 Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/5.4 Chrome/51.0.2704.106 Mobile Safari/537.36
This device has a screen size of 720x1280, but the max_image_width/height is being reported as 320x640 and the wallpaper size values are all 0.
My Firefox browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0) returns a max_image_width/height of 320x640 and zeros for the wallpaper size values. Clearly this isn't going to work
Am I using the wrong capabilites, or is there an issue with the database?
Thanks.
Jim.
I have been using max_image_width and max_image_height to get the sizes of images to display on devices, but those values aren't quite working any more. Now I need to resize images for wallpapers.
I've tried getting both the wallpaper_max... and wallpaper_preferred... width and height values, but they seem to be 0 for everything I'm trying.
Specifically a Samsung Galaxy A5 with a UA of:
Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG SM-A320FL/A320FLXXU1AQF2 Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/5.4 Chrome/51.0.2704.106 Mobile Safari/537.36
This device has a screen size of 720x1280, but the max_image_width/height is being reported as 320x640 and the wallpaper size values are all 0.
My Firefox browser (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0) returns a max_image_width/height of 320x640 and zeros for the wallpaper size values. Clearly this isn't going to work
Am I using the wrong capabilites, or is there an issue with the database?
Thanks.
Jim.