[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] GD LIBRARIES PHP SCRIPTS COLORS FAILS
- Subject: Re: [cobalt-users] GD LIBRARIES PHP SCRIPTS COLORS FAILS
- From: alan@xxxxxxxxx
- Date: Sat Jan 18 16:35:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Last days some people has posted some problems with php
> and gd libraries on raq550, i have this problem.
> Also I have the last version of libjpeg and libjpeg-devel
>
> That is a solution for manipulate images with php and not
> have problems with colors.
>
> $quality=70;
> $src_img = ImageCreateFromJPEG($newfile0);
> $dst_img = imagecreatetruecolor($new_w,$new_h);
> imagecopyresampled
($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img)
> ,imagesy($src_img));
> ImageJPEG($dst_img,"$newfile1", $quality);
> ImageDestroy($dst_img);
>
> Alex
So what have YOU tried to fix this problem ?
What is wrong with the colours ?
Why don't you post a url so we can see what the problem is ?
Post a screen shot url and the php generated shot of the same
picture.
Please don't post the pictures to this list, but just a link
to each page.
Alan