Fix funky formatting

git-svn-id: https://develop.svn.wordpress.org/trunk@6454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-12-21 09:23:59 +00:00
parent 26a0cf0e7b
commit f198d41f1b
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 );