- Timestamp:
- 07/15/2021 12:41:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r51298 r51435 206 206 $webp_info = wp_get_webp_info( $this->file ); 207 207 208 if ( 'lossy' === $webp_info['type'] ) { 209 $this->image->setImageCompressionQuality( $quality ); 210 } else { 208 if ( 'lossless' === $webp_info['type'] ) { 211 209 // Use WebP lossless settings. 212 210 $this->image->setImageCompressionQuality( 100 ); 213 211 $this->image->setOption( 'webp:lossless', 'true' ); 212 } else { 213 $this->image->setImageCompressionQuality( $quality ); 214 214 } 215 215 break;
Note: See TracChangeset
for help on using the changeset viewer.