Last active
June 7, 2022 12:33
-
-
Save habi/843646709a22004fb5654ab6d9a134d6 to your computer and use it in GitHub Desktop.
Make a collage of all team members
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
# https://gist.github.com/habi/843646709a22004fb5654ab6d9a134d6#file-collage-sh | |
cd ~/tmp | |
# Get all images from our team website | |
wget https://www.anatomie.unibe.ch/pages/forsch_myct_team.php --page-requisites --accept .jpg --no-clobber --quiet | |
# Scale images to approximately the same size as my head (264x350) | |
mogrify -resize 264x350 www.anatomie.unibe.ch/users/hlushchuk/kopf.jpg | |
mogrify -resize 264x350 www.anatomie.unibe.ch/users/khoma/kopf.jpg | |
# See how big the files are (if needed) | |
#identify www.anatomie.unibe.ch/users/*/kopf.jpg | |
# Generate montage | |
montage www.anato*/users/*/*.jpg -bordercolor white -background black +polaroid -shadow -gravity center -background "transparent" -geometry +1+1 -tile 3x1 team.png | |
# Make a bit smaller (if needed) | |
#mogrify -resize 1024 team.png | |
# Copy to here | |
cd - | |
rm team.png | |
cp ~/tmp/team.png . | |
# Clean up | |
rm -rf ~/tmp/www.ana*.unibe.ch | |
rm ~/tmp/team.png | |
# Show what we did | |
display team.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment