Severity: Warning
Message: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
Filename: classes/RootController.php
Line Number: 99
PHP Web ScreenShot is a fast way to capture all website content and save it into an image. It's only need about 10 seconds for one screenshots (depending on website).
The feature is not only to save into image, you can make a few custom edit such as Resize, Crop and set watermark like text or image.
Created: 03/01/2017. Latest Update: 03/01/2017
Crafted with love by Otakita
;extension=php_gd2.dll
extension=php_gd2.dll
public_html/asset/screenshot_engine
and public_html/asset/screenshot_engine/thumbs
.The basic framework for this program is use CodeIgniter that we have a lot of modification. But we hope you can easily understanding.
We will give short explanation below :
The engine code to screenshot is screenshot.js in directory web_screenshot/screenshot_engine/screenshot.js.
You can call page.render("image_name.png");
to screenshot the page content.
If you want to screenshot only some area, you can set option inpage.clipRect = {top: topPixel, left: leftPixel, width: sizeWidth, height: sizeHeight};
and call it before you call page.render();
.
Menu Screenshot Sample 4 will show you how to implement it.
We already give some notes in screenshot.js file which parts could be changed.
The other class that you need to know is Image.php in directory web_screenshot/public_html/classes/Utilities/Image.php.
There are have two function, resizeImage()
and watermark()
resizeImage()
watermark()