diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-05-12 18:07:59 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-05-12 18:07:59 +0000 |
commit | a95c6c02347c847aa000d0d8e5db9b7bb3c5b3bd (patch) | |
tree | d016afcc8905fd887a1c739c96c6c90238de8508 /actions/upload.php | |
parent | 30b3d62f17b48cbc4ce0e9322bb2e1d282a3afcb (diff) | |
download | elgg-a95c6c02347c847aa000d0d8e5db9b7bb3c5b3bd.tar.gz elgg-a95c6c02347c847aa000d0d8e5db9b7bb3c5b3bd.tar.bz2 |
made small thumbnail square again and put watermarking where it belongs
Diffstat (limited to 'actions/upload.php')
-rw-r--r-- | actions/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/upload.php b/actions/upload.php index 2f84a9f6b..de7c35324 100644 --- a/actions/upload.php +++ b/actions/upload.php @@ -130,12 +130,12 @@ $thumblarge = tp_resize($file->getFilenameOnFilestore(), "largethumb", 600, 600, false);
} catch (Exception $e) { $thumblarge = false; }
try {
- $thumbsmall = tp_resize($file->getFilenameOnFilestore(), "smallthumb", 153, 153, false);
+ $thumbsmall = tp_resize($file->getFilenameOnFilestore(), "smallthumb", 153, 153, true);
} catch (Exception $e) { $thumbsmall = false; }
try {
$thumbnail = tp_resize($file->getFilenameOnFilestore(), "thumb", 60, 60, true);
} catch (Exception $e) { $thumbnail = false; }
-
+
if ($thumbnail) {
$thumb = new ElggFile();
$thumb->setMimeType($mime);
|