Fix funky formatting
git-svn-id: http://svn.automattic.com/wordpress/trunk@6454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3ab33265bc
commit
19471ad3ab
|
@ -35,9 +35,9 @@ 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