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

WordPress Trac noreply at wordpress.org
Tue Jan 7 22:33:53 UTC 2025


#36477: Responsive images (srcset) can include images larger than the full size
---------------------------------------------+-----------------------------
 Reporter:  peterdavehello                   |       Owner:
                                             |  adamsilverstein
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.8
Component:  Media                            |     Version:  4.4.2
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59589" 59589]:
 {{{
 #!CommitTicketReference repository="" revision="59589"
 Media: improve Imagick handling of colors and alpha channel for PNG image
 uploads.

 Fix an issue where index color (8 bit) PNG uploads were output as true
 color (24 bit) PNGs, significantly increasing their size.  When using
 Imagick, PNG output images will now match the colors of the uploaded
 image.

 Also, correct handling of PNG alpha channel information so it is preserved
 in output images.

 Props adamsilverstein, pbearne, nosilver4u, peterdavehello, joemcgill,
 azaozz, codex-m, kirasong, justlevine, jokanane, sallyruchman, wpfed,
 tgsrvrs, antpb, tb1909.
 Fixes #36477.
 }}}

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


More information about the wp-trac mailing list