IECapt生成网页快照IECapt.exe下载 CutyCapt

简介: IECapt生成网页快照帮助如下: C:\>IECapt.exe help  -----------------------------------------------------------------------------  Usage: IECapt --url=http://www.example.org/ --out=localfile.png  --

IECapt生成网页快照帮助如下:

C:\>IECapt.exe help
 -----------------------------------------------------------------------------
 Usage: IECapt --url=http://www.example.org/ --out=localfile.png
 -----------------------------------------------------------------------------
  --help                      Print this help page and exit
  --url=<url>                 The URL to capture (http:...|file:...|...)
  --out=<path>                The target file (.png|bmp|jpeg|emf|...)
  --min-width=<int>           Minimal width for the image (default: 800)
  --max-wait=<ms>             Don't wait more than (default: 90000, inf: 0)
  --delay=<ms>                Wait after loading (e.g. for Flash; default: 0)
  --silent                    Whether to surpress some dialogs

 ----------------------------------------------------------------------------


CutyCapt下载地址:http://sourceforge.net/projects/cutycapt/files/cutycapt/

windows CutyCapt不需要安装,直接保存到你的电脑中即可。

然后你php代码如下写

 代码如下 复制代码

<?php
/* 
网页截图功能,必须安装IE+CutyCapt
url:要截图的网页
out:图片保存路径
path:CutyCapt路径
cmd:CutyCapt执行命令
比如:http://你php路径.php?url=http://www.php100.com
*/
$url=$_GET["url"];
$imgname=str_replace('http://','',$url);
$imgname=str_replace('https://','',$imgname);
$imgname=str_replace('.','-',$imgname);
$out = 'D:/webroot/test/'.$imgname.'.png';
$path = 'D:/webserver/CutyCapt.exe';
$cmd = "$path --url=$url --out=$out";
echo $cmd;
system($cmd);
?>

如果你是linux系统就需要简单的配置一下CutyCapt



相关文章
|
7天前
|
Web App开发 Windows
【Windows】 chrome 如何下载网站在线预览PDF文件,保存到本地
【Windows】 chrome 如何下载网站在线预览PDF文件,保存到本地
31 0
|
8月前
|
API 区块链 开发者
网页转为exe应用
网页转为exe应用
|
11月前
|
编译器 Linux Windows
R、RStudio的下载及安装及RStudio打开后空白的解决
R、RStudio的下载及安装及RStudio打开后空白的解决
|
安全 数据安全/隐私保护
Adobe Acrobat最强PDF编辑软件安装下载教程全版本获取安装包
Adobe Acrobat最强PDF编辑软件安装下载教程全版本获取安装包
185 0
|
安全 数据安全/隐私保护
Adobe Acrobat最强PDF编辑器软件下载安装教程步骤指南——全版本
Adobe Acrobat最强PDF编辑器软件下载安装教程步骤指南——全版本
242 0
|
Web App开发
用Chrome下载百度网盘大文件
用Chrome下载百度网盘大文件
252 0
|
数据安全/隐私保护 Windows
图片和压缩包结合的方法 图种制作方法 vbs脚本
图片和压缩包结合的方法 图种制作方法 vbs脚本
225 0
|
Web App开发 存储 iOS开发
Mac系统一键下载网页图片
Mac系统一键下载网页图片
Mac系统一键下载网页图片
|
存储 搜索推荐 程序员
Win + R 打开常用软件及文件夹
朋友们,电脑桌面是不是一天比一天乱,很多人都喜欢在电脑桌面上放置好多文件和应用的快捷方式,一般电脑桌面的文件都是占用系统盘C盘的空间,如果电脑桌面文件越来越多会影响电脑的性能。因此尽量不要把大文件放在C盘。