Forum Moderators: coopster

Message Too Old, No Replies

Anybone used the ImageJpeg() function

         

kkrumlia

3:26 pm on May 29, 2003 (gmt 0)

10+ Year Member



Hi there

I've been trying to get upload an image and then automatically create another file as the thumbnail with smaller size of the same picture , Using couple other functions to create the image and so forth and they all seem to be working fine. The error message i'm getting is
Warning: imagejpeg: unable to open '/path/to/thumbs/temp.jpg' for writing in /path/to/admin1/imgman.php on line 105

Line 105 is
return ImageJpeg($im, $filename, $imagequality);

I checked php for any examples didn't find anything useful , anybody has had this problem?

Thank you

jatar_k

3:41 pm on May 29, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Birdman wrote a sweet little thumbnail generator you could adapt
Bag-O-Tricks for PHP II [webmasterworld.com]
msg29

You may want to make sure you have the proper permissions and that the path is correct.

kkrumlia

5:46 pm on May 29, 2003 (gmt 0)

10+ Year Member



THanks Jatar_k

I found the problem , it was as you said permissions all set now thank you