2014-11-25, 04:56:02
(2014-10-31, 22:11:40)Timbow Wrote: Love this plugin. Always use it.
Recently I needed to exclude an image from resizing, eg I wanted to link to a massive hi res image. I had to ftp it to another location and manually edit the link. Not a big issue I know but I presume it would be easy to exclude resizing from a folder of a given name, so say data/uploads/fullsize can have full size images.
A quick patch, for version 1.0
Edit Imagizer.php, find this (line 26):
Code:
function imagizer_handle(){
Just after that (in line 27), insert this:
Code:
if (defined('IMAGIZEREXCLUDE') && isset($_POST['path']) && (trim($_POST['path'],'/') == trim(IMAGIZEREXCLUDE,'/'))) return;
And now in gsconfig.php you can specify the subfolder (relative to data/uploads) you want to exclude from resizing, like this:
Code:
define('IMAGIZEREXCLUDE','fullsize');