2 ms·
And how this is different from wkhtmltoimage? http://code.google.com/p/wkhtmltopdf/ http://code.google.com/p/wkhtmltopdf/
by mlitwiniuk 14y ago
And how this is different from wkhtmltoimage? http://code.google.com/p/wkhtmltopdf/ http://code.google.com/p/wkhtmltopdf/
- rcruzeiro 14y agoThis 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.
- jrockway 14y agoHow is wkhtmltopdf not a "command-line tool"? Both your tool and wkhtmltopdf require a (virtual) framebuffer, so neither are lightweight.
- rcruzeiro 14y agoI 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.
- jrockway 14y agoYou seem kind of upset that someone went back in time and beat you to the punch by about five years. 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" :)
- rcruzeiro 14y agoNot 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.
- thedeuce 14y agoexactly what I thought