I want to write a script that adds a watermark to a JPEG image. I have been successful and use ImageJPEG to create the watermarked image. The image looks ok when I directly output it to my browser (ImageJPEG($image)) but when I try to write it to a file (ImageJPEG($image,"image.jpg")) I get an "Unable to open image.jpg for write" error. I did chmod 777 the target directory but still have the same problem.
Any ideas?
Thanks,
Mark