Login   |   Register   |   

wiganworld   (Feedback, help, your ideas for new content.)

Started by: brian (838)

$srcImg = imagecreatefromjpeg ("$imageDirectory/$imageName");
$origWidth = imagesx($srcImg);
$origHeight = imagesy($srcImg);
$ratio = $origWidth / $thumbWidth;
$thumbHeight = $origHeight * ($thumbWidth / $origWidth);
$thumbImg = imagecreatetruecolor($thumbWidth, $thumbHeight);
imagecopyresampled($thumbImg, $srcImg, 0, 0, 0, 0, $thumbWidth, $thumbHeight, $origWidth, $origHeight);
imagejpeg($thumbImg, "$thumbDirectory/$imageName");
break;

Replied: 31st Aug 2006 at 20:06

Report Abuse

Only use this form to report abuse about the post displayed above. If you have a query or wish to make a comment, do not use this form.

Your IP No. (3.143.228.40) will be logged.

* Enter the 5 digit code to the right of the input box. Don't worry if you make a mistake, you will get another chance. Your comments won't be lost.