-
-
Save brian-i/ff0e6bba4934fbb3d25f93db01aba5ff to your computer and use it in GitHub Desktop.
Use imagemagick to rotate pictures in a directory and add borders
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 | |
# Uses http://www.imagemagick.org | |
find . -name "*.tif" | while read file; do | |
convert "$file" -background '#fdfdfd' -rotate 10 rotated_"${file:2}" | |
convert rotated_"${file:2}" -bordercolor '#fdfdfd' -border 40x100 rotbor_"${file:2}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment