[wp-trac] [WordPress Trac] #36477: Responsive images (srcset) can include images larger than the full size

WordPress Trac noreply at wordpress.org
Sat Jan 4 21:47:17 UTC 2020


#36477: Responsive images (srcset) can include images larger than the full size
-------------------------------------------------+-------------------------
 Reporter:  peterdavehello                       |       Owner:  joemcgill
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.4
Component:  Media                                |     Version:  4.4.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing dev-         |     Focuses:
  feedback                                       |  performance
-------------------------------------------------+-------------------------

Comment (by jokanane):

 Is the patch 36477_2.diff still valid? I applied it in my local
 environment (WP 5.3.2), but I am still seeing the issue mentioned by
 @justlevine and #30402, where PNGs I've exported as 8-bit in Photoshop
 have generated pixel sizes that are much larger in kb than the original
 file.


 {{{
 346895 image-8bit-1024x520.png
 23022  image-8bit-150x150.png
 747603 image-8bit-1536x780.png
 39277  image-8bit-300x152.png
 214964 image-8bit-768x390.png
 275028 image-8bit-768x432.png
 303507 image-8bit-800x450.png
 391111 image-8bit-800x600.png
 163554 image-8bit.png
 }}}

 The original file in the test above is 1600x812px. The generated
 1536x780px is 4.5 times larger.

 I've tried both uploading an image file and running wp media regenerate,
 and see no difference with the patch.

 I hope I'm wrong, and WP 5.4 with the patch will fix the issue...

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


More information about the wp-trac mailing list