Changeset 58849 for trunk/src/wp-includes/class-wp-image-editor-imagick.php
- Timestamp:
- 08/05/2024 04:11:40 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r58417 r58849 220 220 } 221 221 break; 222 case 'image/avif':223 222 default: 224 223 $this->image->setImageCompressionQuality( $quality ); … … 259 258 260 259 /* 261 * If we still don't have the image size, fall back to `wp_getimagesize`. This ensures AVIF images260 * If we still don't have the image size, fall back to `wp_getimagesize`. This ensures AVIF and HEIC images 262 261 * are properly sized without affecting previous `getImageGeometry` behavior. 263 262 */ 264 if ( ( ! $width || ! $height ) && 'image/avif' === $this->mime_type) {263 if ( ( ! $width || ! $height ) && ( 'image/avif' === $this->mime_type || 'image/heic' === $this->mime_type ) ) { 265 264 $size = wp_getimagesize( $this->file ); 266 265 $width = $size[0];
Note: See TracChangeset
for help on using the changeset viewer.