PhantomJS Installation
Install PhantomJS on Ubuntumkdir /path/to/screenshotCopy rasterize.js in the directory where you want the resulting screenshot to take place.
cd /path/to/screenshot
wget https://raw.githubusercontent.com/ariya/phantomjs/master/examples/rasterize.js
phantomjs --debug=yes --ignore-ssl-errors=true --ssl-protocol=any --web-security=true rasterize.js https://enews.ssis.edu.vn enews.png "400px*300px" .25
The last variable is the zoom factor of the website. In this case .25 means 25% of the website in a 400px by 300px thumbnail.