Changeset 6439 for trunk/wp-admin/includes/image.php
- Timestamp:
- 12/20/2007 10:24:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r6438 r6439 34 34 35 35 $thumbnail = imagecreatetruecolor( $image_new_width, $image_new_height); 36 37 // preserve PNG transparency 38 if( IMAGETYPE_PNG == $sourceImageType && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' )) { 39 imagealphablending($thumbnail, false); 40 imagesavealpha($thumbnail,true); 41 } 42 36 43 @ imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $sourceImageWidth, $sourceImageHeight ); 37 44
Note: See TracChangeset
for help on using the changeset viewer.