class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
As for the permissions on the file - I'm not sure who the owner of the file is or the name of the user who is trying to change it. I assumed that because the class had uploaded and written the file ( after resizing ) there would be no subsequent problems with permissions.
I note on the log that it says: file_dst_path : n/a . Is that relevant ?Reply
Yes - ALL the tests on that test page are working OK on this machine. Strange !
I looked at your script and noticed that degrees are quoted i.e. $handle-0>image_rotate='180'; so I did the same in my script, but it made no difference.
Yes, I am not sure what is going on... You can try to debug the class, ar do some more tests of your code, with different image formats, sizes, types, etc...Reply
In your demo you don't actually write the modified file back to the disk - you just show it. Do I need to use another method to actually save the file after processing ?Reply
As for the permissions on the file - I'm not sure who the owner of the file is or the name of the user who is trying to change it. I assumed that because the class had uploaded and written the file ( after resizing ) there would be no subsequent problems with permissions.
I note on the log that it says: file_dst_path : n/a . Is that relevant ?
In the tests, there are some rotations. Are they working?
Yes - ALL the tests on that test page are working OK on this machine. Strange !
I looked at your script and noticed that degrees are quoted i.e.
$handle-0>image_rotate='180';
so I did the same in my script, but it made no difference.
Time for some serious head scratching
Many thanks for your time
KT
You have to quote the file path in the process method. Not intuitive, as the class already knows the full path from when it is instantiated.
If you call process() without an argument, it outputs the image directy to the browser. It is documented here