#!/bin/bash
SERVER='http://192.168.1.84:8889'
PROJECT="m/seta.html#"

for each in 1 2 3 4 5 6;
do
echo $SERVER/$PROJECT$each
phantomjs rasterize.js $SERVER/$PROJECT$each $each.png
mogrify -scale 30% $each.png
mv $each.png www/m/img/thumbs/
done