Ability to strip excess data (commonly ZIP archives) from images.

This commit is contained in:
Savetheinternet 2010-11-03 23:37:28 +11:00
parent f864d5df16
commit bb1abb85e1
3 changed files with 124 additions and 10 deletions

View file

@ -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/');