Hi,
the only way to work on client is JavaScript, but i don't tink it do the resize so well.
Why don't you upload THEN resize?
The upload form make a temporary file that you must copy to a repository (a directory with write permission or on blob of db...). Before you copy to final destination you resize it. And even you not must resize every time you display it...
see you