Created
September 26, 2011 15:12
-
-
Save has207/1242460 to your computer and use it in GitHub Desktop.
Convert to kindle screensaver
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
for i in *jpg; do | |
name=$(echo $i |awk -F_ '{print $4}' |sed 's/\.jpg$//') | |
convert -size 600x800 xc:white \ | |
$i -type Grayscale -resize 600x800 -gravity center -extent 600x800^ \ | |
~/Downloads/Kindle\ Stamp/stamp.png -flatten kindle/$name.jpg | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment