This is a modified version of the script I used (without the for loops and my directories):
qj@ubuntu:~$ cat cutup
#!/bin/bash
comicnumber=$1
convert -crop 244x243+0+0 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_1.png"
convert -crop 130x243+244+0 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_2.png"
convert -crop 361x243+374+0 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_3.png"
convert -crop 195x257+0+243 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_4.png"
convert -crop 298x257+195+243 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_5.png"
convert -crop 242x257+493+243 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_6.png"
You can then cut up any dinosaur comic by running ./cutup, with the first argument being the comic number, like 02, or 1290.#!/bin/bash
comicnumber=$1
convert -crop 244x243+0+0 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_1.png"
convert -crop 130x243+244+0 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_2.png"
convert -crop 361x243+374+0 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_3.png"
convert -crop 195x257+0+243 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_4.png"
convert -crop 298x257+195+243 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_5.png"
convert -crop 242x257+493+243 "http://www.qwantz.com/comics/comic2-"$comicnumber".png" $comicnumber"_6.png"
Then I made a simple, but long script to select 1 frame from 6 random comics, and generate an html page with all the frames together and linking back to their original comics. Example (Ugly-ly shrunken) below:
![](http://lh4.ggpht.com/QuicksilverJohny/SH9LhpgOhuI/AAAAAAAAAV0/CeimqaS2-78/482_1.png)
![](http://lh4.ggpht.com/QuicksilverJohny/SH9Lh3jZlbI/AAAAAAAAAV8/spfh_fx8wYk/535_2.png)
![](http://lh4.ggpht.com/QuicksilverJohny/SH9LiAQ0rfI/AAAAAAAAAWE/eDKYk8y14ow/167_3.png)
![](http://lh3.ggpht.com/QuicksilverJohny/SH9LiDYDTmI/AAAAAAAAAWM/b7tNbZKwNOQ/910_4.png)
![](http://lh3.ggpht.com/QuicksilverJohny/SH9LiXDGBiI/AAAAAAAAAWU/p_5dd_RIHO0/1175_5.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioYLEA5M6xiiiRp9JwdUNimQsuqF_kZR3sbygRApJSXQ6BUjSho-GEV8iWnDakt6ecs5GyyGQAGEYGyMzFg0Ou9bxdVvbT3p9R5h1EDTOwZUBJHfyi6tW0FMJ-oQ20Wyc1IE5etw/s400/530_6.png)
And a better screenshot for good measure:
![](http://lh4.ggpht.com/QuicksilverJohny/SH85Ql1OtbI/AAAAAAAAAVY/yJ6JxDano1E/randomdino.png)
Then, as the final step to all of this, I checked to see if anyone had done this before. :)
-QJ
Update: hdh has informed me of a three frame randomizer, and I must admit: I like it. Here's an great one that I got on my first try.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_wrXnEcyoujCj3UxGe0fBneB6R5SRDeGN3Je0RE-sl9x4Po2H3r3R6-4elpaSmJM3Qy56-OnyVB8CXPlqrh3CgblIfxD7YhgDcrDzWsDHthWTcBxmsD_7CLv1_t7Q-YIx_0QpcA/s400/t-rex_alone.png)