Posted by bizt on 07/31/06 12:40
> ImageJPEG($thumb, $new_name);
How does this work? Will this create the new thumbnail even if the file
doesnt already exist? Its just Im getting the following error:
Warning: imagejpeg(): Unable to open 'thumbs/image12.jpg' for writing
in /home/martyn69/public_html/photos/photos/thumb.php on line 55
Note: I have changed the $new_name to tie up with my 'id' field of the
table that the image filenames are stored.
However, when I do the following:
header ("Content-type: image/jpeg");
ImageJPEG ($thumb);
... it does output the resized image but ofcourse does not create the
file. I would like the option of creating the file as this will surely
reduce server processing (and faster pages). Does something need
configured on the server (to allow write/read etc - the 'thumb' folder
permissions are set to 777) or is my understanding of this incorrect?
Thanks
Burnsy
[Back to original message]
|