Re: imagejpeg
| From: | Chris Hayes | Date: | Thu, 27 May 2004 14:26:47 +0000 |
| Subject: | Re: imagejpeg | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187049@lists.php.net to get a copy of this message | ||
At 15:10 27-5-04, you wrote:
I'm trying to create thumbnails for my images and everything seems to work correctly except for trying to save them. I've tried outputting directly with imagejpeg($im) and that works, but when trying imagejpeg($im, "new.jpeg") it does not create a new image in the current directory. I even tried changing the ownership of the script to root to see if my permissions were screwed up but that didn't work. Here's my function:* I'm sure you have a writable directory * I hope you are not trying to overwrite an existing image file that is not writable * maybe try to use the full path, check the manual to see whether they do that. hint: use document_root to get the path