sexydawg
08-19-2002, 02:17 PM
I am using djpeg, pnmscale, and cjpeg to scale an image with PHP. When I use djpeg to decompress the image to a portable anymap, the resulting file is moded owner read and write only, no other permissions. As a result, pnmscale can not modify the image. When I try to CHMOD the temp files through FTP, it gives me a permission denied error. I am trying to figure out either how to make it so that the resulting temp files are created with the correct permissions or so that I can make a system call to change the modes on the temp files before I hand them off to pnmscale. Any insight? Thanks...