Skip to content

feegloo/image-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

image-merger

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.

prepare

  1. put your files into "convert" folder (siblings to script.sh)

  2. make script.sh executable

chmod +x script.sh

run script

./script.sh -h

output will be written to "convert/image.jpeg"

examples

merge vertically

./script.sh -v

merge horizontally

./script.sh -h

"matrix" (supports 2x2, 3x2, 2x3)

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

About

Bash script for merging N-images into 1 image

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages