How to resize all the pics in the current directory to all have the vertical resolution of 500:
mogrify -resize x500 *
NOTE this will CHANGE all the files in the current directory so run this on a COPY of your original files.
Do this for all files before uploading to Flikr to save on your monthly transfer amount. This is the size Flikr will resize them too.