Last active
January 3, 2016 13:09
-
-
Save supersheep/8467901 to your computer and use it in GitHub Desktop.
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
wget http://spud.in/tools/phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
tar -xvjpf phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
cd phantomjs-1.9.2-linux-x86_64 | |
sudo ln -sf `pwd`/bin/phantomjs /usr/local/bin/phantomjs | |
cd - | |
git clone git://github.com/n1k0/casperjs.git | |
cd casperjs | |
sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs | |
cd - | |
wget https://raw2.github.com/supersheep/Edward/master/main.js -O capture.js | |
sudo yum install fontconfig -y | |
wget http://spud.in/tools/capture-test.html | |
mkdir fonts | |
cd fonts | |
wget http://i2.static.dp/fonts/STHeiti\ Light.ttc | |
wget http://i2.static.dp/fonts/STHeiti\ Medium.ttc | |
wget http://i2.static.dp/fonts/uming.ttc | |
cd - | |
casperjs capture.js --url=./capture-test.html --pic=test.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment