Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Aspect Ratio Identification

#111

Identify the aspect ratio of a screen given it's height and width in pixels. We use this to suggest templates, display a screen icon, and a few other small things.

Reported by Brian Michalski · September 26th, 2010 @ 04:08 PM

State: resolved
Milestone: none
Assigned to: Zach Rowe Zach Rowe

Activity

  1. Zach Rowe
    Zach Rowe

    are we only interested in 4:3 vs 16:9, or should we identify other aspects as well

    March 17th, 2011 @ 03:40 PM

  2. Brian Michalski
    Brian Michalski

    Good queston Zach. 4:3 and 16:9 are the two we definitely need to support.
    I could see a use for recognizing 9:16 displays (like a portrait monitor)
    but I don't know how critical that use is. Perhaps we can simple add a
    fraction into an array somewhere (like this new method?) telling it what
    sizes it should recognize...

    March 17th, 2011 @ 08:24 PM

  3. Haris Khan
    Haris Khan

    There would also be value in 16:10 ratios (ie computer displays)

    March 17th, 2011 @ 09:12 PM

  4. Zach Rowe
    Zach Rowe

    so does it make sense to store the ratio separately? I 'm trying to think end-to-end, what would be the best way to retrieve such information. We could store the value pair, and do computation in the screens controller

    March 18th, 2011 @ 12:04 AM

  5. Brian Michalski
    Brian Michalski
    • Assigned user set to Zach Rowe
    • State changed from new to open

    (from [69043b31ddac8712f157b1852b8582859c8f30ee]) storing screen resolution, calculating aspect ratio [#131 Identify Screen Aspect Ratio state:open assigned:'Zach Rowe'] [#111 Aspect Ratio Identification state:open assigned:'Zach Rowe'] https://github.com/wtg/concerto/commit/69043b31ddac8712f157b1852b85...

    April 10th, 2011 @ 03:48 PM

  6. Brian Michalski
    Brian Michalski
    • Tag changed from v2 to screen, v2

    April 11th, 2011 @ 01:34 AM

  7. Brian Michalski
    Brian Michalski

    Zach - Any chance you want to write a test case to go along with this? If you do, I think we can mark this resolved. If you'd rather I write the test that's fine to, just let me know!

    April 12th, 2011 @ 08:47 PM

  8. Brian Michalski
  9. Brian Michalski

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.