forked from PHPGangsta/WebsiteToImage
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.php
More file actions
Latest commit
18 lines (14 loc) · 594 Bytes
/
Copy pathExample.php
File metadata and controls
18 lines (14 loc) · 594 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
require_once'WebsiteToImage.php';
$websiteToImage = newWebsiteToImage();
$websiteToImage->setProgramPath('/usr/local/bin/wkhtmltoimage-i386')
->setOutputFile('www.phpgangsta.de.jpg')
->setQuality(70)
->setUrl('http://www.phpgangsta.de')
->start();
$websiteToImage->setFormat(WebsiteToImage::FORMAT_PNG)
->setOutputFile('www.phpgangsta.de.png')
->start();
$websiteToImage->setFormat(WebsiteToImage::FORMAT_RAW)
->setOutputFile('www.phpgangsta.de.raw')
->start();