我使用TimThumb脚本(http://code.google.com/p/timthumb/)。我的图像链接是这样生成的:http://website.com/pics/nature/animals/bear.png
,这工作得很好,但我似乎不能使用TimThumb这样:http://website.com/resize.php?src=http://website.com/pics/nature/animals/bear.png&h=150&w=150
,它说Could not find the internal image you specified
。我相信这是因为我的图像是从一个文件夹中以蛞蝓名称(bear.png
)带来的。文件夹的图像由图像的ID命名,因此服务器上没有bear.png,我的应用程序使用slugs搜索DB并显示图片的真实名称,但它在此链接上加载图像:http://website.com/pics/nature/animals/bear.png
。如果我给resize。php脚本一个flickr的链接,效果会很好
BTW, resize.php是真正的TimThumb脚本。
有什么想法吗?谢谢!
不要使用本地路径,输入timthumb的完整URL,就像使用flickr一样