mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-03 20:09:40 +00:00
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,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…
x
Reference in New Issue
Block a user