Hi, I am pretty lost..
I am trying to create a php thumbnail with php without using any *sql database.this
script was supposed to open a directory then read it resize the images without losing
quality and displays it on screen.
ok, here is what I am trying to do and its now working:
<?
$dir = "imagestrips";
if($abre = opendir($dir)) {
while($arq = readdir($abre))
{ $filename = "imagestrips/" . $arq;
if(is_file($filename))
{
$neww = 100;
$newh = 100;
header("Content-type: image/jpeg");
$dst_img=imagecreate($neww, $newh);
$src_img=imagecreatefromjpeg($filename);
imagecopyresized($dst_img,$src_img,0,0,0,0,$neww,$newh,imagesx($src_img),imagesy($src_img));
imagejpeg($dst_img);
}
}
}
closedir($abre);
?>
THANKS!
net.
--
Get your free email from www.linuxmail.org
Powered by Outblaze
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php