jpeg display problems

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
mrb1972
Forum Newbie
Posts: 2
Joined: Thu May 25, 2006 9:54 am

jpeg display problems

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

can you post the code for the image script?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Onion don's his magic GD hat..

You're using imagecreate() instead of imagecreatetruecolor() when you create the thumbnail image.
mrb1972
Forum Newbie
Posts: 2
Joined: Thu May 25, 2006 9:54 am

Post by mrb1972 »

Hi,

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