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

WordPress Trac noreply at wordpress.org
Fri Aug 24 15:57:34 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 [ticket:43524 azaozz]:
 > One problem is that we don't have a 2x images for the built-in `large`
 size. Currently when displaying images larger than 512 px on the front-end
 on devices with high pixel density screens, the browser has only one
 choice: to output the full size/original image. These images are often as
 large as 6000px x 4000px and 4MB or even larger.

 Sorry for being rude, but please support your claim with actual evidence.
 Out of every image on a website, it seems unlikely to me that most of them
 are over 4 MiB.

 >
 > To fix this and not output needlessly large images we need a new size
 that should be 2x the current "large" size, max 2048px width or height.

 or you can just
 {{{
 add_image_size()
 }}}

 Besides, as pointed out by @joyously, it would increase disk space usage
 thus it becomes a ''tradeoff between disk space and user
 experience/bandwidth efficiency''. If, as both my and @joyously experience
 suggest, there are a relative small number of cases where this is
 necessary, such situations can be dealt with the single line of code above
 in a theme or plugin.

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


More information about the wp-trac mailing list