$phpThumb->config_error_die_on_error = false; if ($thumb_config['filename_prefix'] != '') { // add only for large thumbs $phpThumb->fltr = array("wmi|images/watermark.png|BR|50|5"); }
The next lines after the above should be :
// generate & output thumbnail if ($phpThumb->GenerateThumbnail()) { $phpThumb->RenderToFile($thumbpath); } else { // do something with debug/error messages die('Failed: '.implode("\n", $phpThumb->debugmessages)); }