Re: Website

Posted by Guscha On 2018/4/7 14:07:46
Kev, this is what I've got when trying to add a pic to the dealer list. The image was a small *.jpg (640x446, 88 KB), the description consisted of three letters.

$ratio2) { $thumb_w=140; $thumb_h=$old_y/$ratio1; } else { $thumb_h=140; $thumb_w=$old_x/$ratio2; } // we create a new image with the new dimmensions $dst_img=ImageCreateTrueColor($thumb_w,$thumb_h); // resize the big image to the new created one imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y); // output the created image to the file. Now we will have the thumbnail into the file named by $filename imagejpeg($dst_img,$thumbfile); //destroys source and destination images. imagedestroy($dst_img); imagedestroy($src_img); } } catch(Exception $e){ // echo $e->getMessage(); } } ?>

This Post was from: https://packardinfo.com/xoops/html/modules/newbb/viewtopic.php?post_id=201877