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

for page in `ls www/$PROJECT/*.html`;
do
echo $page
phantomjs rasterize.js $page $page.png
mogrify -scale 30% $page.png
mv $page.png www/m/img/thumbs/
done