Are you talking about the thumbnail when viewed in your browser? If so,
that's to be expected since the browser palette (depending on the brand)
will only render a max. of around 255 colors. Don't quote me on this, but
I'm pretty sure Internet Explorer's palette is limited to 255 colors while
Netscape's is limited to around 230. So, if you create the image in true
color (defined as 32 bit color on Win), there's going to be some dithering
going on in the browser as it attempts to compensate for the colors its
palette cannot render.

If you're using some sort of PHP class to create the thumbnails, you may
need to look at the documentation for the class to see if there's anything
you're doing wrong there, but you're still not going to be able to get
around that color palette limitation in the browser.

Hope this helped.

> -----Original Message-----
> From: niclas meyer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 7:32 AM
> Subject: [PHP-DB] imagecreatetruecolor ?
> 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
> 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);
> -- 
> PHP Database Mailing List (
> To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to