Image Editor: fix preview size calculation when cropping small part of a very large image, see #10528

git-svn-id: https://develop.svn.wordpress.org/trunk@11973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-09-26 04:07:27 +00:00
parent 3ea3b853cc
commit a8505d056f
4 changed files with 35 additions and 36 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ function wp_save_image_file($filename, $image, $mime_type, $post_id = 0, $interm
function _image_get_preview_ratio($w, $h) {
$max = max($w, $h);
return $max > 400 ? (400 / $max) : 1;
return $max > 400 ? (400 / $max) : 1;
}
function _rotate_image_resource($img, $angle) {