我正在尝试使用这个 php 缩略图生成器http://phpthumb.gxdlabs.com/并且我不断收到以下错误。
Warning: imagejpeg() [function.imagejpeg]: Unable to open 'Images/uploaded/thumbnails/' for writing: No such file or directory in D:\Data\Websites\wamp\www\StephsSite\PHP\phpThumb\GdThumb.inc.php on line 672
这是我的脚本
<?php
require_once 'PHP/phpThumb/ThumbLib.inc.php';
$options = array('jpegQuality' => 80, 'preserveAlpha' => true);
try {
$thumb = PhpThumbFactory::create('Images/Drew.jpg', $options);
}
catch (Exception $e) {
echo "problems...";
}
$thumb->adaptiveResize(200,200)->save('Images/uploaded/thumbnails/');
?>
这是我的一些文件结构 testThumb.php/Images/uploaded/thumbnails