Fix funky formatting
git-svn-id: https://develop.svn.wordpress.org/trunk@6454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
26a0cf0e7b
commit
f198d41f1b
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user