#2 open
Liam Morley (carpeliam)

add feature to determine largest possible image width

Reported by Liam Morley (carpeliam) | July 26th, 2008 @ 07:20 PM

i'm new to web programming for mobiles, but it seems like there are a number of different resolutions to have to program for. Most phones will resize images if they're too large for the screen, though they might not look as nice, and they won't be optimized bandwidth-wise. it'd be nice if mobile_fu could report the largest image size available for the given platform.

this information is available at http://wurfl.sourceforge.net/ in the form of an xml doc. there's a ruby library for working with WURFL, but I'm not sure how useful it would be.

Comments and changes to this ticket

  • Brendan G. Lim

    Brendan G. Lim September 10th, 2008 @ 06:46 AM

    • State changed from “new” to “open”
    • Assigned user set to “Brendan G. Lim”

    Some mobile browsers actually have their resolutions in their user agent string. Liam, I'll try take a look at this tonight.

  • Ankstar

    Ankstar September 27th, 2009 @ 09:31 PM

    Hi Brendan,

    Great plugin.!! It helped me save a lot of effort so thanks for that..

    Im relatively new to ROR and even im looking for a way to fing out the maximum screen width for a particular user agent so i can insert appropriately sized images without them being stretched or compressed. Please tell me how to go about it.


Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Want to automatically detect mobile devices that access your Rails application? Mobile Fu allows you to do just that. People can access your site from a Palm, Blackberry, iPhone, Nokia, etc. and it will automatically adjust the format of the request from :html to :mobile.