Ticket #2805: 2805.diff
File 2805.diff, 757 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/image.php
66 66 } 67 67 68 68 $thumbnail = imagecreatetruecolor( $image_new_width, $image_new_height); 69 70 // preserve PNG transparency 71 if( $type[2] == 3 && 72 function_exists( 'imagealphablending' ) && 73 function_exists( 'imagesavealpha' )) { 74 imagealphablending($thumbnail, false); 75 imagesavealpha($thumbnail,true); 76 } 77 69 78 @ imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1] ); 70 79 71 80 // If no filters change the filename, we'll do a default transformation.