git-svn-id: http://svn.automattic.com/wordpress/trunk@2125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-01-24 06:05:44 +00:00
parent 3e1ff77a0e
commit 326ac00ee6

View File

@ -243,7 +243,7 @@ function wp_create_thumbnail($file, $max_side, $effect = '') {
}
$thumbnail = imagecreatetruecolor($image_new_width, $image_new_height);
@imagecopyresized($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);
@imagecopyresampled($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);
// move the thumbnail to it's final destination