summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-04 01:55:52 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-04 01:55:52 +1100
commit1e201212242c758a4d797711388aa566542224f4 (patch)
tree8e1ceb77ce0fc2e35c5a8d97072fb72027130117
parent200d8d9cf530e7d5bc8b0b7fd2f0f56321e5dabe (diff)
Issue #9
-rw-r--r--inc/config.php1
-rw-r--r--post.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index 31009bab..54180153 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -60,6 +60,7 @@
define('REDRAW_IMAGE', true);
// Redrawing configuration
define('JPEG_QUALITY', 100);
+ define('REDRAW_GIF', false);
define('DIR_IMG', 'src/');
diff --git a/post.php b/post.php
index a974987a..94b80f8c 100644
--- a/post.php
+++ b/post.php
@@ -142,7 +142,8 @@
imagepng($image, $post['file'], 7);
break;
case 'gif':
- imagegif($image, $post['file']);
+ if(REDRAW_GIF)
+ imagegif($image, $post['file']);
break;
case 'bmp':
imagebmp($image, $post['file']);