Higher quality thumbnails - http://mosquito.wordpress.org/view.php?id=736
git-svn-id: http://svn.automattic.com/wordpress/trunk@2125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3e1ff77a0e
commit
326ac00ee6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue