Skip to content

Instantly share code, notes, and snippets.

@rjp
Created February 28, 2011 17:29
Show Gist options
  • Save rjp/847675 to your computer and use it in GitHub Desktop.
Save rjp/847675 to your computer and use it in GitHub Desktop.
:>slicefiles
i=0
for j in $(jot 256 1); do
curl http://placekitten.com/$j/500 > $j.jpg
convert -crop 1x500+$i+0 $j.jpg slice-$j.jpg
echo slice-$j.jpg >> slicefiles
sleep 1
done
montage -tile x1 -geometry 1x500 @slicefiles mri-kitten.jpg
# scp mri-kitten.jpg [email protected]:somewhere/mri-kitten.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment