mogrify is part of the ImageMagick suite of tools. It’s simple, powerful, and easy to use.
mogrify
A simple bash for-loop for convert many images at once.