https://github.com/feegloo/image-merger
https://github.com/feegloo/image-merger
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/feegloo/image-merger
- Owner: feegloo
- Created: 2023-10-26T12:23:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T18:03:25.000Z (almost 2 years ago)
- Last Synced: 2025-02-23T05:13:19.180Z (over 1 year ago)
- Language: Shell
- Size: 529 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```