for file in *.JPG; do convert -enhance -contrast -resize '792x528^' $file $file; done

# resize ^ at end -> preserve aspect ratio
# -gravity Center -crop 1024x682+0+0 -> crop in middle
