[wp-trac] [WordPress Trac] #49966: Load smaller images when in a gallery

WordPress Trac noreply at wordpress.org
Wed Apr 22 13:41:43 UTC 2020


#49966: Load smaller images when in a gallery
--------------------------+------------------------------
 Reporter:  noisysocks    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by RavanH):

 Replying to [comment:1 peterwilsoncc]:
 > Related (potential duplicate, can't decide) #45407

 Not a duplicate but it certainly seems related.

 There, under proposed solution I read: "Modify the
 wp_calculate_image_sizes filter to include a new fifth parameter
 $block_attr containing an array which includes [align] which holds the
 alignment value for the containing block." ... Such an array might also be
 useful to include block info like "gallery-columns" which could then be
 used to calculate more accurate "vw" values.

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


More information about the wp-trac mailing list