diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index 819be5e090..72b1e42d41 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -219,6 +219,11 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { $this->image->setImageCompressionQuality( $quality ); } break; + case 'image/avif': + // Set the AVIF encoder to work faster, with minimal impact on image size. + $this->image->setOption( 'heic:speed', 7 ); + $this->image->setImageCompressionQuality( $quality ); + break; default: $this->image->setImageCompressionQuality( $quality ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index b0ff11ac4e..8ab48e593e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59041'; +$wp_version = '6.7-alpha-59042'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.