wordpress サイトで、timthumb 構成ファイルにデフォルトの NOT_FOUND_IMAGE を定義しました。
// "http://example.com/timthumb-config.php".
<?php
if(! defined('NOT_FOUND_IMAGE') ) define ('NOT_FOUND_IMAGE', 'http://example.com/img/default.jpg');
timthumb リクエスト パラメータに応じて、この画像のサイズを強制的に変更する方法はありますか。例えば:
// 404 occurs
timthumb.php?src=http:%2F%2Fexample.com%2Fimg%2F404-image.jpg&h=180&w=120
// get resized (cropped) default image
timthumb.php?src=http:%2F%2Fexample.com%2Fimg%2Fdefault.jpg&h=180&w=120