Ok. That works better than dealing with permissions.
It resizes based on w x h where I was resizing based on
size of file. If it was 1mb I scaled down to say 25kb.
Ill use this today since I have to get moving on these files
but I still want to figure out this permission issue so
my scripts can just run.