Created
January 31, 2022 11:09
-
-
Save voghDev/bd0c1facf744e08e4734377e964e4c20 to your computer and use it in GitHub Desktop.
Simple script to create a quick horizontal collage appending three images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $1 ] || [ -z $3 ] | |
then | |
echo "Usage: ./collage3.sh image1.png image2.png image3.png" | |
else | |
convert $1 -resize 40% resize1.png | |
convert $2 -resize 40% resize2.png | |
convert $3 -resize 40% resize3.png | |
convert resize1.png resize2.png resize3.png +append collage.png | |
display collage.png | |
rm resize1.png | |
rm resize2.png | |
rm resize3.png | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple adaptation with only two images: