Resize large images with mogrify (ImageMagick) but leave small images unaffected

Try

mogrify -resize '1280x1024>' *.jpg

Do make sure to back up though.