diff options
Diffstat (limited to 'engine/lib/filestore.php')
-rw-r--r-- | engine/lib/filestore.php | 6 |
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);
//}
|