[wp-trac] [WordPress Trac] #21038: Provide an option for creating 2x images of user content (for Retina Displays)

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 22 00:30:47 UTC 2012


#21038: Provide an option for creating 2x images of user content (for Retina
Displays)
-----------------------------+------------------------------
 Reporter:  twam             |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  3.4
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |
-----------------------------+------------------------------

Comment (by dd32):

 This sounds like Theme/Plugin material to me, for one simple reason: Many
 sites will not make use of these images, that, and it's not that hard for
 Themes/Plugins to request larger sized images.

 Now, because 2x is all the rage amongst some people today, what we can do,
 is make it easier for Themes/Plugins to request the generation through
 add_theme_support() or similar, which would probably just do an
 add_image_size() for the existing images, and mark the image as a 2x for
 the 1x alternative.

 Different JS libraries are implementing this differently It seems, some
 rely on a data param on the <img/> some just check to see if a larger
 image exists with a pre-determined template, and others store a array in
 JS of the images which have 2x images available for them.. so there's
 plenty of different ways things can be used that we'll need to look at
 supporting.

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


More information about the wp-trac mailing list