#1040307 imagemagick: Converting PNG to AVIF replaces transparent pixels with black pixels

Package:
imagemagick
Source:
imagemagick
Description:
image manipulation programs -- binaries
Submitter:
Pierre Rudloff
Date:
2024-04-19 16:27:02 UTC
Severity:
normal
#1040307#5
Date:
2023-07-04 10:16:14 UTC
From:
To:
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/

#1040307#10
Date:
2024-04-19 16:24:32 UTC
From:
To:
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.