Changeset 57524 for trunk/src/wp-includes/class-wp-image-editor-imagick.php
- Timestamp:
- 02/02/2024 05:46:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r56547 r57524 220 220 } 221 221 break; 222 case 'image/avif': 222 223 default: 223 224 $this->image->setImageCompressionQuality( $quality ); … … 255 256 if ( ! $height ) { 256 257 $height = $size['height']; 258 } 259 260 /* 261 * If we still don't have the image size, fall back to `wp_getimagesize`. This ensures AVIF images 262 * are properly sized without affecting previous `getImageGeometry` behavior. 263 */ 264 if ( ( ! $width || ! $height ) && 'image/avif' === $this->mime_type ) { 265 $size = wp_getimagesize( $this->file ); 266 $width = $size[0]; 267 $height = $size[1]; 257 268 } 258 269
Note: See TracChangeset
for help on using the changeset viewer.