From 1e201212242c758a4d797711388aa566542224f4 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 4 Nov 2010 01:55:52 +1100 Subject: [PATCH] Issue #9 --- inc/config.php | 1 + post.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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']);