[wp-trac] [WordPress Trac] #43524: Add another default image size

WordPress Trac noreply at wordpress.org
Fri Aug 24 16:16:02 UTC 2018


#43524: Add another default image size
-------------------------+---------------------
 Reporter:  azaozz       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.0
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------

Comment (by ettoredn):

 Replying to [comment:9 azaozz]:
 > Replying to [comment:8 joyously]:
 >
 > Right. What happens when you have to display an image at lets say 800px?
 You choose the "large" size (1024px by default) and all is good. However
 it displays "fuzzy" on most Macs, laptops and desktops, as they have
 "retina" screens, right? :)

 What should happen is that you upload the image at whatever high
 resolution you need and then use
 {{{
 wp_get_attachment_image(id, 'full')
 }}}
 or similar functions.

 Depending on the value of the sizes attribute, the browser will choose the
 best srcset image to display. I believe if left empty, the browser assumes
 '100vw', but this may depend on the browser.

 Passing an argument different than 'full' would force the widest srcset
 image to be limited to the given image size.

 How srcset and sizes work together, and how the browser chooses the image
 to render, seems to be an often misunderstood topic.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43524#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list