Ticket #23039: wp-image-editor-gd.diff
File wp-image-editor-gd.diff, 669 bytes (added by , 11 years ago) |
---|
-
wordpress/wp-includes/class-wp-image-editor-gd.php
97 97 if ( ! $size ) 98 98 return new WP_Error( 'invalid_image', __('Could not read image size.'), $this->file ); 99 99 100 if ( function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) { 101 imagealphablending( $this->image, false ); 102 imagesavealpha( $this->image, true ); 103 } 104 100 105 $this->update_size( $size[0], $size[1] ); 101 106 $this->mime_type = $size['mime']; 102 107