Bash script for merging N-images into 1 image - horizontally, vertically or in Matrix (2x2, 2x3, 3x2, 3x3)
Images in convert folder can have random names, but only .jpeg extension is supported.
Images can also be named like 1.jpeg 2.jpeg 3.jpeg, to give custom order of merged images.
--
Generated by ChatGPT and adjusted by me.
Preserves image metadata and nicely merges multiple images exported from macOS Photos app.
-
put your files into "convert" folder (siblings to
script.sh) -
make
script.shexecutable
chmod +x script.sh
./script.sh -h
output will be written to "convert/image.jpeg"
merge vertically
./script.sh -v
merge horizontally
./script.sh -h
merge 4 images into single image 2x2 (2 rows, 2 columns)
./script.sh 2x2
merge 3x2 (3 rows, 2 columns)
./script.sh 3x2
merge 2x3 (2 rows, 3 columns)
./script.sh 2x3
merge 3x3 (3 rows, 3 columns)
./script.sh 3x3