I need to convert a very large number of images that are called 1a.jpg, 2a.jpg, 3a.jpg using Imagemagick to be processed and renamed 1.jpg, 2.jpg, 3.jpg (in the same directory).The Imagemagick command is this, where n is the 1, 2, 3... etc.convert -shave 200x200 -resize 30% na.jpg n.jpgPlease help with a script.
Bulk rename and resize with Imagemagick
shell script;imagemagick
you could try something like this (ksh/bash/zsh syntax):for f in [0-9]*a.jpg ; do     convert -shave 200x200 -resize 30% $f ${f/a/}done