summaryrefslogtreecommitdiff
path: root/forum/utils/file.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-12 17:04:43 +0000
committerdeva <deva>2008-10-12 17:04:43 +0000
commit870a449effd7b1c80b8d7bc5808fad100f21308f (patch)
tree3988462de42250d4829a9d1ce22171b0e549a33e /forum/utils/file.php
parentbf738e366e34c330649a9f36a3b2001231230b3a (diff)
Downscaled file preview images to 64x64, added the previews to the filehandler.
Diffstat (limited to 'forum/utils/file.php')
-rw-r--r--forum/utils/file.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/forum/utils/file.php b/forum/utils/file.php
index b1f4e50..99b8506 100644
--- a/forum/utils/file.php
+++ b/forum/utils/file.php
@@ -44,18 +44,18 @@ function getFilePreview($fid)
switch($file->mimetype) {
case "image/png":
$image = imagecreatefrompng($filename);
- $image = rescale($image);
+ $image = rescale($image, 64, 64);
imagepng($image);
break;
case "image/jpeg":
$image = imagecreatefromjpeg($filename);
- $image = rescale($image);
+ $image = rescale($image, 64, 64);
imagejpeg($image);
echo "@";
break;
case "image/gif":
$image = imagecreatefromgif($filename);
- $image = rescale($image);
+ $image = rescale($image, 64, 64);
imagegif($image);
break;
}