convert is how you access imagemagick through cli
convert
convert *.jpg -resize 1024X1024 -set filename:f '%t' '%[filename:f].jpg'