- Package:
- imagemagick
- Source:
- imagemagick
- Description:
- image manipulation programs -- binaries
- Submitter:
- Pierre Rudloff
- Date:
- 2024-04-19 16:27:02 UTC
- Severity:
- normal
Dear Maintainer, When converting a PNG image to AVIF, transparent pixels are replaced with black pixels. It can be reproduced with this image: https://upload.wikimedia.org/wikipedia/commons/9/9d/Alpha_transparency_image.png With this command: convert Alpha_transparency_image.png Alpha_transparency_image.avif It seems to be a known issue fixed in ImageMagick 7: https://alexwlchan.net/2023/check-for-transparency/
The problem is fixed in ImageMagick 6.9.12-68. I confirm that starting with commit cc4e5a63 (https://github.com/ImageMagick/ImageMagick6/commit/cc4e5a6383961c03d340e0237feedfff83f9af0b) ImageMagick can convert PNG images with transparent background to AVIF without issues.