Re: imagecreatetruecolor ?
| From: | niclas meyer | Date: | Fri, 14 Nov 2003 00:03:38 +0000 |
| Subject: | Re: imagecreatetruecolor ? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31568@lists.php.net to get a copy of this message | ||
Hi
Thanks for ure time...It was a browser cache issue..I made my album on the
fly finaly, it does as i wanted in the end..
make sure u have the latest PHP/GD support ..=)
"Niclas Meyer" <niclas@cleaner.se> skrev i meddelandet
news:20031113123215.62915.qmail@pb1.pair.com...
> Hi all!
> I´m trying to create a true color Jpeg thumbnail, I take a picture
> (Jpg/jpeg) resized and copied -> inserted to database and a thumbnail is
> saved in a diffrent folder BUT....the thumb looks wierd.
>
> It does NOT look like its made out of true color..lol
> where do I go wrong?
> =)
>
>
>
> //_-----------------------------------pic part of
> function --------------------------
>
> $tmp_img = imagecreatetruecolor($new_width, $new_height);
> imagecopyresized($tmp_img, $img, 0, 0, 0, 0, $new_width,
$new_height,
> $width, $height);
> $thumb = $tmp_img;
> imagejpeg($thumb, $thumb_path);