Get Screenshot of Website or URL either on your PC, Mac, Linux or on your self hosted website or you just want to get a screenshot of an URL by an Online Tool. Definitely the source code is fully free, its quite easy to use – depending upon on your Operating System, the complexity and method varies. This is the way how various SEO analysis type of website grabs a screenshot of your website, this is also the method, how WordPress shows up Preview of the website with JetPack.
Get Screenshot of Website or URL : Understanding the Thing
The easiest way to get a screenshot of your website is to use this syntax in browser :
1 | http://s.wordpress.com/mshots/v1/http%3A%2F%2F<span style="color: #ff0000;">URL</span>%2F?w=<span style="color: #ff0000;">Size_in_pixels</span> |
Working Example (copy paste it on a new browser window) :
---
1 | http://s.wordpress.com/mshots/v1/http%3A%2F%2Fthecustomizewindows.com%2F?w=600 |
We have to change the ASCII Character to URL-encoding, there are lot of tools available to do it – like the :// part of http:// has been used as %3A%2F%2F – this need will only be required if you use a deep url, for the homepage, obviously there is NO NEED for further work, just like our example.
Get Screenshot of Website or URL : If We Want From our Linux or Mac / OS X / Windows
We basically need to install imagemagick and wkhtmltopdf for kind of UNIX brothers – be it server or desktop. Depending upon what is the operating system, you have to use the right command to install from Command Line. Like :
# Debian variants
sudo aptitude install imagemagick
sudo aptitude install wkhtmltopdf
# OS X with Homebrew
brew install imagemagick
brew install wkhtmltopdf
In this way, yast and lot of other installation package manager specific commands, its too much basic to go in to details for this topic. Run this PHP script :
These are natively *nix. For Windows, other than using the round-about way, there is various tools like :
http://url2jpeg.codeplex.com/
Get Screenshot of Website or URL : Using html2canvas
html2canvas is one of best package for self hosted website usage – like the typical example of various SEO analysis type of website those grabs a screenshot of your website while you run their battery of tests. This is also free :
http://html2canvas.hertzen.com/
A great implementation, which is also has free source code :
hhttp://html2canvas.hertzen.com/screenshots.html
There are actually more ways for the core coders :
http://stackoverflow.com/questions/757675/website-screenshots-using-php
Until and unless you are getting the source code, the Free Service, difficult to say how much your data is handing – all of us are aware now about security and privacy after PRISM buzz, right ?
Please read our other related topics, search this website for command line hints those who are relatively newer.