[wp-trac] [WordPress Trac] #36477: Responsive images(srcset) feature makes images fatter.

WordPress Trac noreply at wordpress.org
Tue Apr 12 12:38:14 UTC 2016


#36477: Responsive images(srcset) feature makes images fatter.
----------------------------+------------------------------
 Reporter:  peterdavehello  |       Owner:  joemcgill
     Type:  defect (bug)    |      Status:  reviewing
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Upload          |     Version:  4.4.2
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  performance
----------------------------+------------------------------
Changes (by joemcgill):

 * keywords:   => needs-patch


Comment:

 Replying to [comment:3 peterdavehello]:
 > Hi @joemcgill,
 >
 > Thanks for your prompt reply in detail, yes, I'm talking about the file
 size, not the dimensional size, and my basic idea is try to get the size
 before and after the resize, once the resized images is larger, than we
 drop that size of image, what do you think?
 >

 I would be careful about dropping images altogether, but it may be
 possible to save the file size as attachment metadata and factor that into
 our `srcset` considerations in `wp_calculate_image_srcset()`.

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


More information about the wp-trac mailing list