[wp-trac] [WordPress Trac] #21388: Retina theme screenshots

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 30 17:51:12 UTC 2012


#21388: Retina theme screenshots
----------------------------+------------------
 Reporter:  nacin           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Appearance      |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------

Comment (by andy):

 On WordPress.com we have a script called devicepx.js which looks for
 certain URL patterns in img src attrs and rewrites them for higher-res
 images. One of the patterns it matches is "-1x" before the file extension.
 It assumes it can safely rewrite that to "-2x". This might not be the best
 way -- perhaps to be less ambiguous and have fewer potential false
 positives it should use @1x -- but it's what we made.

 So themes could announce their support by having a file called screenshot-
 1x.png as well as screenshot-2x.png. The advantage of putting this bit of
 data in the 1x filename is that you don't have to do a HEAD request to
 find out whether the 2x image exists.

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


More information about the wp-trac mailing list