Fix funky formatting

git-svn-id: http://svn.automattic.com/wordpress/trunk@6454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-12-21 09:23:59 +00:00
parent 3ab33265bc
commit 19471ad3ab
1 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@ function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
$thumbnail = imagecreatetruecolor( $image_new_width, $image_new_height);
// preserve PNG transparency
if( IMAGETYPE_PNG == $sourceImageType && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' )) {
imagealphablending($thumbnail, false);
imagesavealpha($thumbnail,true);
}
if ( IMAGETYPE_PNG == $sourceImageType && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) {
imagealphablending( $thumbnail, false);
imagesavealpha( $thumbnail, true);
}
@ imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $sourceImageWidth, $sourceImageHeight );