aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/filestore.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php
index ee90e4b86..3832a0fec 100644
--- a/engine/lib/filestore.php
+++ b/engine/lib/filestore.php
@@ -769,7 +769,11 @@
$height = ($y2 - $y1);
}
}//else {
- // Resize and return the image contents!
+ // Resize and return the image contents!
+ if ($square) {
+ $newheight = $maxheight;
+ $newwidth = $maxwidth;
+ }
imagecopyresampled($newimage, $oldimage, 0,0,$widthoffset,$heightoffset,$newwidth,$newheight,$width,$height);
//}