webkit2png runs only on Mac it seems. Webimage can be compiled for all major platforms. Aside from this, the tools have the same purpose (I must confess that I didn't know webkit2png when I wrote Webimage).
This seems to be a tool for converting a webpage to a PDF file which is n the purpose of my tool. Also my tool is a simple, lightweight command line tool.
Also, analyzing wkhtmltoimage's source I can say that my tool's approach to rendering the web page is potentially better than wkhtmltoimage's as I use whatever GUI toolkit is available on the system instead of letting webkit render itself on a pixmap (Something that can cause lots of errors on fonts, anti-aliasing, etc).
I'm not saying that the way I handle the rendering is any better than wkhtmltoimage's so feel free to use both and choose which you find it's better.
I said wkhtmltopdf's purpose is to generate a PDF, mine is to simply generate an image. And both are lightweight since they can run on a EC2 micro instance, generating multiple previews , without increasing the server load significantly. As for the need to a framebuffer, that's just the way it is when you want to render something. You could write an embedded framebuffer (and an embedded GUI kit for that matter) to the tool but that would make it a giant mess. To goal of the tool is to be simple and I believe that was achieved by writing a software with only 5 source files.
Not at all, the tool does everything it was designed to do (at least for my projects) and I had some really nice feedback. I didn't create this to compete with anything out there, I was basically scratching my own itch since I didn't find any readily available tool that produced the result I needed.
And I will again point to you that lightweight is relative, if you know a better way to fake an X Server without xvfb just let me know and I'll use it on my tool.
13 comments
[ 165 ms ] story [ 938 ms ] threadTo save others time, with his help, this got me working so I could start playing with this.
I'm now up and running, taking screen shots. Thanks Raphael.http://www.paulhammond.org/webkit2png/
I'm not saying that the way I handle the rendering is any better than wkhtmltoimage's so feel free to use both and choose which you find it's better.
Also, run "make world" for Xorg some time and let me know if you still consider Xvfb lightweight. There's a reason the target is called "world" :)
And I will again point to you that lightweight is relative, if you know a better way to fake an X Server without xvfb just let me know and I'll use it on my tool.