Make sure imageantialias exists. Props rob1n and jeppe. fixes #3939

git-svn-id: http://svn.automattic.com/wordpress/trunk@5016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-10 05:26:28 +00:00
parent 0f5ca2efcb
commit d115b53371
1 changed files with 3 additions and 1 deletions

View File

@ -2087,7 +2087,9 @@ function wp_crop_image( $src_file, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_
$src_h -= $src_y;
}
imageantialias( $dst, true );
if (function_exists('imageantialias'))
imageantialias( $dst, true );
imagecopyresampled( $dst, $src, 0, 0, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h );
if ( !$dst_file )