站点缩略图生成器

Website Thumbnail Generator
站点缩略图生成器
出处:http://www.zubrag.com/scripts/website-thumbnail-generator.php
翻译:Fising@phpchina.com http://www.fising.cn
Website Thumb Generator can be used to create website thumbnails for your needs, or start your own website thumbnail generation service.
站点缩略图生成器可以根据需要被用来生成网站缩略图,或者启动你自己的网站缩略图生成服务。
Requirements:
Windows hosting
PHP GD library (installed on most hostings)
Permissions to execute third-party applications (i.e. exe files)
Permissions to execute Internet Explorer
需求:
Windows 主机
PHP GD 扩展库(大多数主机都有安装)
执行第三方应用程序的许可(i.e. exe 文件)
执行 Internet Explorer 的许可
How it works:
Website Thumbnail Generator checks if it already has website image in the cache, and shows it in the browser.
If no cached image then IECapt would be run from the script.
IECapt would run Internet Explorer, grab full sized website screenshot from it, and save image into the folder you specified in script settings.
Then Website Thumbnail Generator would resize image, and show it in the browser.
它如何工作:
站点缩略图生成器检查缓存中是否已经存在站点缩略图,并将之展示到浏览器中。
如果没有缓存图片,IECapt 将由本脚本启动。
IECapt 将运行 Internet Explorer,从中抓取全尺寸屏幕截图并将图片保存到你在脚本中设定的目录中。
然后站点缩略图生成器将重置图片尺寸,将之展示到浏览器中。
Installation:
Download IECapt from http://iecapt.sourceforge.net or from our site: IECapt. Place it in some folder on your server.
Download Website Thumbnail Generator using link below, and unzip it to the same folder.
Update webthumb.php with your settings for thumbnails folder, cache time, default thumbnail size, etc.
安装:
从 http://iecapt.sourceforge.net 或者我们的网站下载 IECapt。将它放到服务器的相同目录下。
从下面的链接下载站点缩略图生成器,解压到相同的目录下。
配置 webthumb.php,设定缩略图存放目录,缓存时间,默认尺寸等。
Sample usage:
webthumb.php?url=http://www.microsoft.com
webthumb.php?url=http://www.thumbnails.com&x=150&y=150
使用范例:
webthumb.php?url=http://www.microsoft.com
webthumb.php?url=http://www.thumbnails.com&x=150&y=150
附:站点缩略图生成器下载地址(附件中也有) http://www.zubrag.com/downloads/webthumb.zip