来自PHP的网站图片 [英] Website picture from PHP

查看:67
本文介绍了来自PHP的网站图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有没有人知道PHP上的保存方法可靠,也许使用其他

程序创建scrennshots(缩略图)的网站? br />

我是开源项目的管理员(在SourceForge上)TSEP -

搜索引擎项目 ( http://tsep.sf.net )我们可能希望显示

我们的搜索引擎找到的网站图片。生成过程

的缩略图应该是非常自动的(尽可能多)


我试图找到一个最佳的解决方案还没有带来任何好结果,

所以我希望在这里获得更好的信息。


Olaf


-
http://www.team-noehring.de

解决方案

由于PHP是一种服务器端编程语言,因此无法使用它制作客户端屏幕的

屏幕截图!对不起,但我想你必须自己截取屏幕截图

。 ;-)


-

你不需要理由帮助别人!


< blockquote> Hi Mathias

由于PHP是一种服务器端编程语言,因此不可能用它来制作客户端屏幕的截图!对不起,但我想你必须自己截取屏幕截图。 ; - )




我知道。

我找到了php脚本执行以下操作的解决方案:

1.使用所需的URL启动webbrowser的新实例

2.启动screencapture程序(即irfanview)。捕获大多数前窗

(带URL的浏览器)

3.调整大小图片,保存在特定位置(即c:\)

4使用php上传功能上传图片。


我的例子中的用户需求irfanview可能无法使用


Olaf


-

---
http://www.team-noehring.de


Olaf Noehring写道:


程序创建网站的scrennshots(缩略图)?

我是开源项目的管理员(在SourceForge)TSEP -
搜索引擎项目 ( http://tsep.sf.net )我们可能希望显示
我们的搜索引擎找到的网站图片。缩略图的生成过程应该是非常自动的(尽可能多)

我试图找到一个最佳的解决方案还没有带来任何好的结果,
所以我希望在这里获得更好的信息。

Olaf




我猜这个包括gecko渲染的精简版本

引擎对你的项目来说太过分了,但无论如何,我相信它能够将输出渲染到文件中(至少在打印模式下它可以!)。


Hi

does anyone of you know a save method on PHP to relyably, maybe using other
programs create scrennshots (thumbnails) of websites?

I am the administrator of the open source project (at SourceForge) "TSEP -
The Search Engine Project" (http://tsep.sf.net) and we might want to show
pictures of the website our search engine has found. The generation process
of the thumbnails should be pretty automatic (as much as possible)

My tries to find an "optimal" solution did not bring any good results yet,
so I am hopeing for better information here.

Olaf

--
http://www.team-noehring.de

解决方案

As PHP is a server side programming language it is impossible to make
screenshots of the client screen with it! Sorry, but i guess you have to
take the screenshots on your own. ;-)

--
You don''t need a reason to help people!


Hi Mathias

As PHP is a server side programming language it is impossible to make
screenshots of the client screen with it! Sorry, but i guess you have to
take the screenshots on your own. ;-)



I know that.
I have found solutions where the php script does the following:
1. start new instance of webbrowser with desired URL
2. start screencapture program (i.e. irfanview). capture most front window
(browser with URL)
3. resize picture, save in specific place (i.e. c:\)
4. upload picture using php upload feature.

User needs in my example irfanview which might not be available

Olaf

--
---
http://www.team-noehring.de


Olaf Noehring wrote:

Hi

does anyone of you know a save method on PHP to relyably, maybe using other
programs create scrennshots (thumbnails) of websites?

I am the administrator of the open source project (at SourceForge) "TSEP -
The Search Engine Project" (http://tsep.sf.net) and we might want to show
pictures of the website our search engine has found. The generation process
of the thumbnails should be pretty automatic (as much as possible)

My tries to find an "optimal" solution did not bring any good results yet,
so I am hopeing for better information here.

Olaf



I guess that including a stripped-down version of the gecko rendering
engine is overkill for your project, but anyways, I believe it is
capable of rendering output to a file (at least in print mode it can!).


这篇关于来自PHP的网站图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆