[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
Fri May 16 18:57:11 UTC 2025
#63448: Image quality significantly degrades for resized PNGs with transparency in
WordPress 6.8.1
-------------------------------------------------+-------------------------
Reporter: elvismdev | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8.2
Component: Media | Version: 6.8
Severity: critical | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by nosilver4u):
Replying to [comment:19 siliconforks]:
>
> Did anyone try using `getImageProperty()`?
>
> I tried it with `'png:IHDR.color_type'` and `'png:IHDR.color-type-orig'`
and they seemed to work...
I sure didn't, that's a good find! I ran it through my entire PNG test
folder, and all matched on `png:IHDR.color_type`. Seems `png:IHDR.color-
type-orig` is not set initially. It must get set once the image has been
scaled. Interestingly, it seems the IHDR.color_type doesn't get
overwritten after the image resized. At least not immediately, but it
might be worth checking both values for a color type of 3 just to be safe.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63448#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list