Page 1 of 1

ImageJPEG Problem

Posted: Thu Jul 28, 2005 7:59 pm
by lemonsluts
HI,

On my previous server, I could use this function in GD :

Code:

Code: Select all

ImageJPEG ($img_handle, &quote;image.jpg&quote;, 75);


However, I moved to another server. Now when I put that code in, my GD script returns errors. However, when I put this code in and upload it to my new server, it works!

Code:

Code: Select all

ImageJPEG ($img_handle, &quote;&quote;, 75);


Problem is, I dearly need to save the image on my website. What should I do?

Posted: Fri Jul 29, 2005 3:02 am
by onion2k
It sounds like ImageJPEG doesn't have permission to write to the place you're trying to save to. Try setting the directory as writable for everyone (0777).