Issue Task Closed

#106004Add image processing tests for webp and avif with transparency

André Buchmann 01/28/25, 19:20 updated 12/02/25, 14:27

Description

I’ve tried to output pngs as avif and noticed that the transparency was replaced with a black background.

Two new tests are added to image processing tests in the install tool to test the transparency behaviour easily:

- png to webp
- png to avif

clipboard-202501282013-ykd7y.png

Black Backgrounds should be fixed with ImageMagick 6.9.12-68 as of this source: https://alexwlchan.net/2023/check-for-transparency/

My ddev has an old ImageMagick 6.9.11-60 Version.
clipboard-202501282015-p7psd.png

Reviews 2

Files 4

History 35

  1. André Buchmann commented and changed attached clipboard-202501290847-8pkhd.png attached clipboard-202501290848-gqw9m.png <span data-processor="relativetime" data-value="2025-01-29T07:56:49+00:00" > 01/29/25, 07:56 </span>

    After upgrading Imagemagick in my ddev container, the transparency is preserved for AVIF.

    How to install Imagemagick 7 in ddev: https://github.com/ddev/ddev/issues/5332#issuecomment-2620893309

    clipboard-202501290848-gqw9m.png

    clipboard-202501290847-8pkhd.png

  2. André Buchmann commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-01-31T16:00:09+00:00" > 01/31/25, 16:00 </span>

    Applied in changeset commit:c42d9742ae7e4feeb7548ccacc07d5f763cf98e0.