WebP/AVIF Conversion Turns Transparent PNGs Black
-
Hey devs, great plugin so far can’t believe how good it is. Only ran into one issue and I don’t think it’s me but it could be. I was hoping you could try to replicate it for me.
CompressX’s conversion is turning all my transparent PNGs black instead of keeping transparency. Here’s what I tested:
- I created and exported a transparent PNG using Photopea.
- I uploaded it to WordPress and let CompressX convert it to WebP.
- The resulting WebP lost transparency and had a black background.
- To troubleshoot, I manually converted the same PNG using Squoosh and CloudConvert—both kept the transparency.
- When I manually uploaded the correct WebP to WordPress, it displayed properly, so the issue seems to be with CompressX’s conversion.
Is there a way to fix this, or could this be addressed in a future update? Thanks for any help and confirmation!
Here’s my env:
Web Server nginx/1.18.0
CompressX version 0.9.25
WordPress version 6.7.2
PHP version 8.1.2-1ubuntu2.20
GD extension The GD extension has been properly installed.
GD Version 2.3.0
GD WebP Support true
GD AVIF Support false
Imagick extension The imagick extension has been properly installed.
Imagick Version 1691,
ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25
https://imagemagick.orgImagick WebP Support true
Imagick AVIF Support
- You must be logged in to reply to this topic.