How to bulk resize pictures in linux terminal

ls -1 *.jpg | parallel -j 4 --eta convert '{}' -quality 85 -resize 1280 '{.}.jpg'