Welcome! To use this support forum, please Login or Join Today!


Default thumb.php “Not Found” Image


Total Posts: 2

Joined 2012-01-16



Hi there,

I’m regularly using thumb.php and I realize that it doesn’t always find the image I want it to.  Is there an easy way to set a default image for when the image thumb.php was meant to resize returns 404?


Total Posts: 3667

Joined 2011-04-27



Yes. If you open thumb.php, you can add a “not found image” on this line:

if(! defined('NOT_FOUND_IMAGE') )  define ('NOT_FOUND_IMAGE', '');

You’d need to know the relative path, so it would be something like:

if(! defined('NOT_FOUND_IMAGE') )  define ('NOT_FOUND_IMAGE', '/path/to/your/images/file.jpg');