.png to .avif with black bg instead of transparent Alpha channel #302
|
I have some .png with alpha channels. On my staging, env all looks nice. On my local workstation as well. I convert them from .png to .avif via named transforms. Any idea what to look out for? I just use regular ddev everywhere. Don't know where there is a configuration mismatch. On the staging which does it correctly: Imagick 3.7 |
Replies: 1 comment 1 reply
|
Hi, This is a known issue, and has to do with how Imagick was compiled. I don't know exactly the details of it (think it is Imagick compiled against ImageMagick 6.x, but I've also had instances where that worked, so..), but the version that's in ddev and normal version of ubuntu, has this bug. Unfortunately, there's no quickfix for this, Imagick has to be recompiled, preferably with ImageMagick 7. https://softcreatr.github.io/imei/ can be used to make this easier. Another option is to use GD instead of Imagick, recent versions (from PHP 8.2+) usually have avif support included. |
Hi,
This is a known issue, and has to do with how Imagick was compiled. I don't know exactly the details of it (think it is Imagick compiled against ImageMagick 6.x, but I've also had instances where that worked, so..), but the version that's in ddev and normal version of ubuntu, has this bug.
Unfortunately, there's no quickfix for this, Imagick has to be recompiled, preferably with ImageMagick 7. https://softcreatr.github.io/imei/ can be used to make this easier.
Another option is to use GD instead of Imagick, recent versions (from PHP 8.2+) usually have avif support included.