From bb1abb85e1dd089497b6a852c5b95e89c211b6d8 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 3 Nov 2010 23:37:28 +1100 Subject: Ability to strip excess data (commonly ZIP archives) from images. --- inc/config.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'inc/config.php') diff --git a/inc/config.php b/inc/config.php index b0c4adc7..31009bab 100644 --- a/inc/config.php +++ b/inc/config.php @@ -53,6 +53,15 @@ define('MAX_WIDTH', 10000); define('MAX_HEIGHT', MAX_WIDTH); + /** + Redraw the image using GD functions to strip any excess data (commonly ZIP archives) + WARNING: Very beta. Currently strips animated GIFs too :( + **/ + define('REDRAW_IMAGE', true); + // Redrawing configuration + define('JPEG_QUALITY', 100); + + define('DIR_IMG', 'src/'); define('DIR_THUMB', 'thumb/'); define('DIR_RES', 'res/'); -- cgit v1.3