[wp-trac] [WordPress Trac] #22329: Retina Gravatars

WordPress Trac noreply at wordpress.org
Thu Nov 1 15:45:13 UTC 2012


#22329: Retina Gravatars
-------------------------+------------------------------
 Reporter:  miqrogroove  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |
-------------------------+------------------------------

Comment (by andy):

 Prior art: http://wordpress.com/wp-content/js/devicepx.js

 A version of this script is included in all pages while Jetpack is
 activated.

 It polls the browser zoom level and updates gravatars and other image URLs
 with known height/width parameters. This has been in operation for several
 months with no reported issues.

 Detecting zoom level is more complex than detecting device pixel ratio.
 The script actually tries to map the image resolution directly onto device
 pixels. One of the benefits of this approach is that it also improves
 visuals on all devices (even LoDPI) when the browser is zoomed in. Try
 zooming in on any wordpress.com blog with gravatars. For another example,
 when viewing on an iPhone with 2x pixels, in landscape mode mobile safari
 will zoom to 1.5x for a logical device pixel ratio of 3x. This devicepx.js
 detects this and loads the 3x resolution.

 You are welcome to integrate any part of this code into your plugin or
 core patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22329#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list