Changeset 57524 for trunk/tests/phpunit/tests/image/functions.php
- Timestamp:
- 02/02/2024 05:46:50 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/functions.php
r56559 r57524 112 112 'webp-lossy.webp', 113 113 'webp-transparent.webp', 114 'avif-animated.avif', 115 'avif-lossless.avif', 116 'avif-lossy.avif', 117 'avif-transparent.avif', 114 118 ); 115 119 … … 185 189 $files[] = 'webp-lossy.webp'; 186 190 $files[] = 'webp-transparent.webp'; 191 } 192 193 // Add AVIF images if the image editor supports them. 194 $file = DIR_TESTDATA . '/images/avif-lossless.avif'; 195 $editor = wp_get_image_editor( $file ); 196 197 if ( ! is_wp_error( $editor ) && $editor->supports_mime_type( 'image/avif' ) ) { 198 $files[] = 'avif-animated.avif'; 199 $files[] = 'avif-lossless.avif'; 200 $files[] = 'avif-lossy.avif'; 201 $files[] = 'avif-transparent.avif'; 187 202 } 188 203
Note: See TracChangeset
for help on using the changeset viewer.