ディレクトリにドロップされたすべての画像を別のディレクトリにサムネイルとしてコピーして、自分のサイトで表示できるようにしたいと考えています。現在、私はphpthumbを研究していますが、ワイドイメージと禅の写真もダウンロードしています。
これと完全に一致するものを見つけることができれば、ありがとうございます。ほぼ一致するものも役立つ場合があります。
単一のファイルのみをコピーするスクリプトは次のとおりです。
require_once '../ThumbLib.inc.php';
//include the thumb library
$thumb = PhpThumbFactory::create('test.jpg');
//create a new image from the targeted jpegs
$thumb->adaptiveResize(100, 100);
//resize
$thumb->save('test.png', 'png');
//save as 'test' with the file type png
//echo "<img src='$thumb' class='thumb'>";
$thumb->show();
//print the thumbnail to the screen