Created
January 3, 2009 21:33
-
-
Save quag/42937 to your computer and use it in GitHub Desktop.
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
angle1 := Random value(-4, 6) round | |
angle2 := angle1 - 5 + Random value(-2, 2) round | |
angle3 := angle2 - 5 + Random value(-2, 2) round | |
System system( | |
"""convert | |
#{Path with(rootFolder, gallery, "thumb", imageName)} | |
-thumbnail 192x192 | |
-bordercolor white -border 6 | |
-bordercolor grey60 -border 1 | |
-bordercolor none -background none | |
\( -clone 0 -rotate #{angle3} \) | |
\( -clone 0 -rotate #{angle2} \) | |
\( -clone 0 -rotate #{angle1} \) | |
-delete 0 -border 100x80 -gravity center | |
-crop 256x256+0+0 +repage -flatten -trim +repage | |
-background black \( +clone -shadow 60x4+4+4 \) +swap | |
-background none -flatten | |
-extent 224x256 | |
#{thumbName} | |
""" asMutable replaceSeq("\n", " ") interpolate | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment