[wp-trac] [WordPress Trac] #63448: Image quality significantly degrades for resized PNGs with transparency in WordPress 6.8.1

WordPress Trac noreply at wordpress.org
Tue May 27 18:18:07 UTC 2025


#63448: Image quality significantly degrades for resized PNGs with transparency in
WordPress 6.8.1
-------------------------------------------------+-------------------------
 Reporter:  elvismdev                            |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.8.2
Component:  Media                                |     Version:  6.8
 Severity:  critical                             |  Resolution:
 Keywords:  has-patch has-test-info dev-         |     Focuses:
  feedback has-unit-tests commit fixed-major     |
-------------------------------------------------+-------------------------

Comment (by nosilver4u):

 Hmm, you've certainly got a point there, resizing the grayscale version of
 oval-or8.png either results in a non-indexed image that preserves the
 gradient, or an indexed image that utterly destroys the gradient. Ugh...

 Well, at the very least, it would help to use a lower number of colors
 with quantizeImage, based on the original number of colors in the image.
 That will make the "damage" less, even if ImageMagick refuses to use
 Indexed mode for images that are in the gray colorspace.

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


More information about the wp-trac mailing list