Changeset 51437
- Timestamp:
- 07/15/2021 01:00:46 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/class-wp-image-editor-imagick.php
r50821 r51437 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.