I have a script that resizes images and then save the new images.
I can't save the new image if the original image didn't have 777 permissions.
I know that 777 is risky, so when using different permissions such as 775 or 755 it does nothing.
- Why it does nothing?
- how to fix it?
EDIT:
I want to be able to save the files using my script no matter what the permission of the IMAGE is/was.