client side screen resolution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sandy Pittendrigh

    client side screen resolution

    I have a fishing related site with a billion photos,
    where 600 pixels as a maximum photo width looks OK
    at both low resolution and high resolution,
    but spectacular in neither. Browser stats sites
    say 37% of all users still use 800x600 resolution.
    So if you have a site you have to deal with that issue
    somehow.
    But compromises piss me off.

    The pages you make (as php developer) could
    use client-side javascript to detect the local
    screen resolution. Then, theoretically, you could
    send an Ajax message back to the server, to set
    a session variable, so all subsequent requests
    could be either dynamically generated, with differing
    image sizes, or you could, maybe, use url-rewriting
    to redirect to the right static html (with differing
    image sizes).

    But that's got a hidden catch22. Because the 37% of
    all users who still use 800x600 resolution probably won't
    have browsers that can deal with Ajax requests.

    Has anybody ever figured out how to optimize image
    sizes for different screen resolutions?
  • Gerry Vandermaesen

    #2
    Re: client side screen resolution

    Why not, muck like Flickr, display a low-res friendly version by
    default, and providing a link to see all available resolutions?

    Or, let the user specify his preference, and store it in a user profile
    if your sites lets users authenticate, or in a cookie if not, and fetch
    the right version.

    Sandy Pittendrigh wrote:[color=blue]
    > I have a fishing related site with a billion photos,
    > where 600 pixels as a maximum photo width looks OK
    > at both low resolution and high resolution,
    > but spectacular in neither. Browser stats sites
    > say 37% of all users still use 800x600 resolution.
    > So if you have a site you have to deal with that issue
    > somehow.
    > But compromises piss me off.
    >
    > The pages you make (as php developer) could
    > use client-side javascript to detect the local
    > screen resolution. Then, theoretically, you could
    > send an Ajax message back to the server, to set
    > a session variable, so all subsequent requests
    > could be either dynamically generated, with differing
    > image sizes, or you could, maybe, use url-rewriting
    > to redirect to the right static html (with differing
    > image sizes).
    >
    > But that's got a hidden catch22. Because the 37% of
    > all users who still use 800x600 resolution probably won't
    > have browsers that can deal with Ajax requests.
    >
    > Has anybody ever figured out how to optimize image
    > sizes for different screen resolutions?[/color]

    Comment

    • no-1

      #3
      Re: client side screen resolution

      One thing you will want to consider - I would almost bet that those
      that use 800x600 are also still on dialup - as more than 50% of
      internet users are... and higher resolution pics mean LOTS of download
      time.

      So, you really have 2 things to worry about. Screen resolution and
      whether or not they want to take the time to download a high-res pic
      before they give up and go somewhere else...

      Comment

      • Karl Groves

        #4
        Re: client side screen resolution

        Sandy Pittendrigh <zapSandy.Pitte ndrigh@zapGmail .com> wrote in
        news:GZmdnS9az8 gYftnZRVn-pw@bresnan.com:

        [color=blue]
        > But that's got a hidden catch22. Because the 37% of
        > all users who still use 800x600 resolution probably won't
        > have browsers that can deal with Ajax requests.[/color]

        You're ignoring the ultimate Catch-22: That just because someone has a
        resolution setting of a certain size, doesn't mean they're USING it. I have
        1600x1080 resolution. I have two windows open side-by-side most of the
        time. If you're going to go this route, don't detect the resolution,
        detect the window size.


        --
        Karl Groves



        Accessibility Discussion List: http://smallerurl.com/?id=6p764du

        Comment

        • John Dunlop

          #5
          Re: |OT| client side screen resolution

          Karl Groves:
          [color=blue]
          > You're ignoring the ultimate Catch-22: That just because someone has a
          > resolution setting of a certain size, doesn't mean they're USING it. I have
          > 1600x1080 resolution. I have two windows open side-by-side most of the
          > time.[/color]

          Not to piss the original poster off, but let's follow that argument
          even further. Just because someone has a window of certain dimensions
          doesn't mean the viewport has the same dimensions. Toolbars, status
          bars, menubars, etc., all can take up room within a window, reducing
          the space available to the viewport.

          Besides, what if there's no windows? Or what if the window is
          resized? Or what if the browser renders the page in nonspatial
          dimensions, for instance, an aural browser (still perfectly reasonable
          for reading image-based web pages)?

          --
          Jock

          Comment

          • Sidonath

            #6
            Re: client side screen resolution

            As for Ajax part of question. Don't use it :)

            You can use JS to detect window size
            (http://www.quirksmode.org/viewport/compatibility.html) and store
            information in a cookie using JS. On next page request you can read
            cookie in PHP. It is more probable that user has enabled cookies than
            Ajax-supporting browser.

            Comment

            • Sandy.Pittendrigh@gmail.com

              #7
              Re: client side screen resolution

              Sometimes the simplest solution is so close to your nose
              you can't see it.

              Comment

              Working...