Merge images with Imagemagick

Install imagemagick with:

brew install imagemagick

Then run the below command to merge 1.jpg and 2.jpg into a new 12.jpg image.

magick 1.jpg 2.jpg +append 12.jpg