[wp-trac] [WordPress Trac] #63932: Investigate failing Imagick tests on PHP 8.3 and 8.4
WordPress Trac
noreply at wordpress.org
Thu Sep 4 21:53:02 UTC 2025
#63932: Investigate failing Imagick tests on PHP 8.3 and 8.4
--------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Background: #63876
Fixing the self-signed MySQL certificate issue in the PHP 8.3 and 8.4
container images that are based on Debian Trixie surfaces two errors and
two failures in the Imagick tests.
[https://github.com/WordPress/wordpress-
develop/actions/runs/17472951958/job/49625716365#step:14:488 Failing
GitHub Actions workflow run can be found here].
{{{
There were 2 errors:
1) Tests_Image_Editor_Imagick::test_image_max_bit_depth
ImagickException: no encode delegate for this image format `AVIF' @
error/constitute.c/WriteImage/1412
/var/www/tests/phpunit/tests/image/editorImagick.php:726
/var/www/vendor/bin/phpunit:122
2) Test_Image_Resize_Imagick::test_resize_avif
TypeError: getimagesize(): Argument #1 ($filename) must be of type string,
WP_Error given
/var/www/src/wp-includes/media.php:5736
/var/www/tests/phpunit/tests/image/resize.php:107
/var/www/vendor/bin/phpunit:122
}}}
{{{
There were 2 failures:
1) Tests_Image_Editor_Imagick::test_resizes_are_small_for_16bit_images
with data set "test8" ('/var/www/tests/phpunit/includ...t8.png')
The resized image file size is not smaller than the original file size.
Failed asserting that 99853 is less than 45231.
/var/www/tests/phpunit/tests/image/editorImagick.php:794
/var/www/vendor/bin/phpunit:122
2)
Tests_Image_Editor_Imagick::test_png_color_type_is_preserved_after_resize
with data set "test8_color_type_3"
('/var/www/tests/phpunit/includ...t8.png', 3)
The PNG original color type should be preserved after resize for
/var/www/tests/phpunit/includes/../data/images/png-tests/test8.png.
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'3'
+'4'
/var/www/tests/phpunit/tests/image/editorImagick.php:848
/var/www/vendor/bin/phpunit:122
}}}
In addition a risky test was flagged which also covers AVIF handling. It
may or may not be related and should be investigated.
{{{
There was 1 risky test:
1) Tests_Media::test_quality_with_avif_conversion_file_sizes
This test did not perform any assertions
/var/www/tests/phpunit/tests/media.php:5473
/var/www/vendor/bin/phpunit:122
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63932>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list