Forum Moderators: coopster
I can think of 2 easy ways.
1) Use PHP's SSH functions, login using SSH and resize the image using imagemagick or PHP (or whatever else is available and capable)
2) Have the resizing script available via HTTP, perhaps behind a login, so you can just call that URL to execute the resizing
Breakdown the various steps of the process
1) Knowing what images to resize
2) The logging on/authenticating
3) The image resizing
4) Error checking/feedback
You could easily split the authentication and image resizing processes into functions... both of which should be easy to Google for as there's a number of examples of each.