https://github.com/makevoid/headshot
Takes a page screenshot, manipulates it and shows it via js - currently using url2png
https://github.com/makevoid/headshot
Last synced: 9 months ago
JSON representation
Takes a page screenshot, manipulates it and shows it via js - currently using url2png
- Host: GitHub
- URL: https://github.com/makevoid/headshot
- Owner: makevoid
- Created: 2011-08-24T07:03:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-07-08T09:26:47.000Z (over 13 years ago)
- Last Synced: 2025-03-25T06:02:46.106Z (10 months ago)
- Language: Ruby
- Homepage: http://hshot.mkvd.net
- Size: 145 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HeadShot - Takes a page screenshot, manipulates it and shows it via js
### current status
- prototyped
I stopped this project because it was a free demo for a client, but it's open source so use/fork it if you need/like it
## Notes:
### url2png
gem i url2png
### peeping-tom installation
http://www.alexxoid.com/blog/linux/how-to-install-khtml2png.html
sudo aptitude install xvfb xfonts-base xfonts-75dpi xfonts-100dpi imagemagick ttf-mscorefonts-installer python-qt4 python-qt4 build-essential flashplugin-installer git-core
gem install redis sinatra json resque
wget http://github.com/AdamN/python-webkit2png/raw/master/webkit2png.py
sudo cp webkit2png.py /usr/bin/
sudo chmod o+x /usr/bin/webkit2png.py
git clone git://github.com/bandito/peeping-tom.git
### khtml2png installation
apt-get install g++ kdelibs zlib1g-dev cmake
not sure:
apt-get install libx11-dev kdelibs4-dev
wget http://sourceforge.net/projects/khtml2png/files/khtml2png2/2.7.7/khtml2png-2.7.7.tar.gz/download
mv download khtml2png-2.7.7.tar.gz
tar xvf khtml2png-2.7.7.tar.gz
cd khtml2png-2.7.7
./configure
make
make install
apt-get install xvfb
Xvfb :2 -screen 0 1024x768x24&
DISPLAY=localhost:2.0 khtml2png2 http://google.com google.png
### mozshot
drawbacks: requires full x running
https://github.com/sugi/mozshot