[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
Thu May 22 23:21:28 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: closed
Priority: normal | Milestone: 6.8.2
Component: Media | Version: 6.8
Severity: critical | Resolution: fixed
Keywords: has-patch has-test-info dev- | Focuses:
feedback has-unit-tests commit |
-------------------------------------------------+-------------------------
Comment (by nosilver4u):
@SirLouen The png8 option does indeed perform a quantization, I don't know
whether it is immediate, or delayed until the image is written.
Originally, I had attempted to do something like `$image->writeImage(
'PNG8:' . $output_file );`. Unfortunately, that tended to crash, but
`setOption` works just fine. See
https://github.com/Imagick/imagick/issues/672 for more context, including
why we need the png8 operation for grayscale images.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63448#comment:59>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list