This command is usefull to resize only images greater than x in a folder.It put resized images in a folder called thumbs but you can convert file implace deleting “thumb/” string.
1 | for i in `ls *.jpg`; do convert $i -resize 800x800\> thumb/$i ; done |