aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-07 00:09:09 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-07 00:09:09 +0000
commit39f644c75a545249a2cdaa490b5beb58795529a3 (patch)
treea4abc0fd4f7d320b6d0c1989b2a7f3d018147138 /lib
parent4f5380ec889e89958dbab6cb45a2436743ae8c33 (diff)
downloadelgg-39f644c75a545249a2cdaa490b5beb58795529a3.tar.gz
elgg-39f644c75a545249a2cdaa490b5beb58795529a3.tar.bz2
fixed bug in IM php resize code
Diffstat (limited to 'lib')
-rw-r--r--lib/resize.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/resize.php b/lib/resize.php
index 19af7b451..e3facf614 100644
--- a/lib/resize.php
+++ b/lib/resize.php
@@ -246,7 +246,7 @@
$thumbname,
$image_sizes['large_image_width'],
$image_sizes['large_image_height'],
- true);
+ false);
if (!$rtn_code)
return false;
$file->largethumb = $prefix."largethumb".$filestorename;
@@ -311,8 +311,8 @@
$width = $height;
}
- // if input arguments = square, no need to use above calculations (which can have round-off errors)
if ($maxheight == $maxwidth) {
+ // if input arguments = square, no need to use above calculations (which can have round-off errors)
$newwidth = $maxwidth;
$newheight = $maxheight;
} else {