An open API service indexing awesome lists of open source software.

https://github.com/feegloo/image-merger


https://github.com/feegloo/image-merger

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# 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
```