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']);