-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webkit2png or similar for site previews #20
Comments
Have a look at Selenium Web Driver which will let you use Chrome or Firefox: http://coreygoldberg.blogspot.co.uk/2011/07/python-taking-browser-screenshots-with.html |
only concern I have with that approach is when it's run on a server it creates a massive dependency |
Probably not much more than WebKit2PNG. The only concern would be speed and resources with Selenium. I am not sure what the overhead is for Webkit but Selenium is much higher. How about outsourcing it completely to something like http://web-capture.net/ which would remove any client and server dependency? |
I believe this is a viable solution - http://www.chrisle.me/2013/08/running-headless-selenium-with-chrome/ |
There's a list of 3rd party screenshot services at http://snapcasa.com but all the good ones are commercial. I experimented with spawning phantomjs with a screenshot script for every www sub domain, but although it worked, the number of processes was very resource intensive (and 3 never terminated). |
yeah I don't see this going to be an easy one.. risk of compromise is just massive as well due to crusty webkit versions under the hood. |
So I proto-typed a solution yesterday which used an iframe to provide a preview of all the web sites. This basically sucked and resulted in git reset --hard HEAD^. Why did it suck?
All led to a very crappy user experience. The proper solution is use something like webkit2png (whilst trying to not get exploited using a crappy old version of webkit)
This needs some thought to balance security / functionality.
The text was updated successfully, but these errors were encountered: