mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
Higher quality thumbnails - http://mosquito.wordpress.org/view.php?id=736
git-svn-id: https://develop.svn.wordpress.org/trunk@2125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user