【发布时间】:2016-01-30 13:36:14
【问题描述】:
在一个 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
【问题讨论】:
标签: wordpress image-processing wordpress-theming timthumb