I wrote a small function like the following to create my won thumbnails.
function make_tumb_nail($url){
$size=GetImageSize("image/$url");
$ht=$size[1];
$wd=$size[0];
if($ht>$wd){
$h=$ht;
for($i=1.01;;){
if($h<121){
break;
}
$h=$ht/$i;
$w=$wd/$i;
$i=$i+0.01;
}
Greetings.
Is there any quick way to generate thumbnails of existing pictures in a
directory? It would seem quite worthless to create 120x120 images of ones
that already exist, and upload duplicates.. Therefore, dynamic thumbnails
would be perfect. Any solutions?
PHP 4.0+ thanks.
- Rich
2 matches
Mail list logo