Last active
February 13, 2019 04:27
-
-
Save fishkingsin/cb495869b53f96b3984f4d8f953da408 to your computer and use it in GitHub Desktop.
I want to gen a template images for testing, here this is
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
doit() { | |
echo $PWD | |
if test -e $1.jpg ; then | |
echo "already created $1" | |
else | |
echo Doing it for $1 | |
convert -size 400x400 plasma:fractal -blur 0x10 \ | |
tile_diag_source$1.jpg | |
convert tile_diag_source$1.jpg \( +clone -transpose \) \ | |
\( +clone -sparse-color voronoi '%w,0 white 0,%h black' \) \ | |
-composite \ | |
\( +clone -flop -chop 1x0 \) +append \ | |
\( +clone -flip -chop 0x1 \) -append \ | |
-resize 5000x5000 \ | |
tile_diag_mirror$1.jpg | |
echo create tile_diag_mirror$1.jpg | |
convert tile_diag_mirror$1.jpg \ | |
-font Arial -pointsize 1440 \ | |
-draw "gravity center fill white text 0,0 '$1'" \ | |
$1.png | |
start=$end | |
rm tile_diag_source$1.jpg | |
rm tile_diag_mirror$1.jpg | |
fi | |
} | |
export -f doit | |
parallel doit ::: $(seq $1 $2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment