Page 1 of 1

jpeg display problems

Posted: Thu May 25, 2006 10:03 am
by mrb1972
Hi,

I was wondering if someone would be able to help me clear up a small problem im having, we have a site in development at http://www.newzealandstays.co.nz/index.php , as you can see the photo image which is a jpeg file is washed out, wrong colours etc, looking nothing like it should.

The guy coding that side of things for me says its due to the GD libarary on the Host, which is verions "bundled (2.0.28 compatible)" according to phpinfo, and the php version is 4.3.10.

Has anyone seen this problem before (im guessing you have), is it down to the GD version?

thanks

Posted: Thu May 25, 2006 10:12 am
by feyd
can you post the code for the image script?

Posted: Thu May 25, 2006 11:13 am
by onion2k
Onion don's his magic GD hat..

You're using imagecreate() instead of imagecreatetruecolor() when you create the thumbnail image.

Posted: Thu May 25, 2006 1:44 pm
by mrb1972
Hi,

I think that has done the trick, thank you very much