出家如初,成佛有余

基于mozilla gecko内核的HTML Renderer解决方案

Posted in Uncategorized by chuanliang on 2007/10/07

基于mozilla gecko内核可以让应用程序直接调用gecko的html renderer功能可以生成页面的thumbnai。目前基于firefox这样的开源浏览器相关技术(主要是gecko内核,其他内核暂时不考虑)的HTML Renderer方案大致可以分成如下几种:

  • 采用firefox extension方式,然后通过提供命令行接口,例如page saver
  • 采用xvfb+firefox或vnc+firefox,利用命令行调用xvfb或vnc调用firefox形成的图形缓冲区,然后用ImageMagick生成thumbnail
  • 采用直接调用gecko 接口或封装接口来生成thumnail

  从性能及扩展性上来讲,第三种方式最为理想,收集了一些基于Java或Python的HTML Renderer

1、Java

 jrex

 cobralobobrowser

 Flying Saucer Project

mozilla blackwood webclient

 webrenderer(收费)

其他收费软件,可以参考

Java Sketchbook: The HTML Renderer Shootout, Part 2

2、Python+GTK

GtkMozEmbed

wxMozilla

pyxpcom

3、Ruby+GTK

  moz-snapshooter.rb

  实际上也是利用了GtkMozEmbed

  http://oltsm.blogspot.com/2007/07/ruby-website-screencapture-howto.html

参考资料

http://blogs.pathf.com/agileajax/2007/01/how_to_really_d.html

http://today.java.net/pub/a/today/2004/05/24/html-pt1.html

http://java.net/pub/a/today/2004/06/14/html-pt2.html

http://www.hackdiary.com/archives/000055.html

http://oltsm.blogspot.com/2007/07/ruby-website-screencapture-howto.html

http://weblogs.mozillazine.org/roc/archives/2005/05/rendering_web_p.html

http://mail.python.org/pipermail/python-list/2006-December/419414.html

http://blog.pixnet.net/kewang/post/4756715

https://aptframework.dev.java.net/gooey/screenCapture.html

http://forum.java.sun.com/thread.jspa?threadID=5191504&tstart=75

http://schmidt.devlib.org/java/save-screenshot.html

http://forum.java.sun.com/thread.jspa?threadID=477654&messageID=2220990

http://forum.java.sun.com/thread.jspa?threadID=604040

http://ilovelate.blog.163.com/blog/static/601420074610168616/

http://zh.wikipedia.org/wiki/Trident

 

No Responses Yet

Subscribe to comments with RSS.

  1. Binoculars system maintenance diary…

    \\ Daily Work Record(system maintenance) Work description  \\ Project Date Owner Status Remark 1) refactoring the image evaluation platform \\ 2) integrate the akamai sureroute test static html page into checkDB install  \\ …

  2. Binoculars dev & maintenance diary – Hewei Wang…

    \\ Daily Work Record(system maintenance) Work description  \\ Project Date Owner Status Remark 1) refactoring the image evaluation platform \\ 2) integrate the akamai sureroute test static html page into checkDB install  \\ …

  3. Binoculars dev diary – Hewei Wang…

    \\ Daily Work Record(system maintenance) Work description  \\ Project Date Owner Status Remark 1) refactoring the image evaluation platform \\ 2) integrate the akamai sureroute test static html page into checkDB install  \\ …

  4. Diary before 2009-02-26…

    Date \\ Release \\ Stage \\ Work Description \\ Remark \\ 2009.2.26 \\ V3.0.1 \\ Dev \\ blabla \\ V3.1 \\ Investigation \\ blabla \\ V3.0 \\ Maintenance \\ blabla \\ Others \\ Meeting, etc…….


发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: