Headless HTML rendering to image on CentOS 5.4
Posted
by Jim Tough
on Stack Overflow
See other posts from Stack Overflow
or by Jim Tough
Published on 2010-06-11T15:59:04Z
Indexed on
2010/06/11
16:02 UTC
Read the original article
Hit count: 282
Hello,
I have a project requirement to render HTML and capture the rendered image as a file on a headless CentOS 5.4 server. My specific requirements are:
1) Input will be a URL to the page to render, output will be an image file containing the rendered image of the page
2) CSS must be supported by the renderer up to CSS level-1
3) Static images in the page must be displayed properly in the rendered image, including any transparent color in .GIF files
4) Must be able to run on a headless CentOS 5.4 server.
5) Solution must not depend on any product or component that is not free for commercial use
I do not need to do anything with the page other than get the screen capture and save it to an image. The hard part seems to be doing this in a headless environment. Some of the solutions that I've seen discussed need a display in order to work.
Any suggestions?
Thanks in advance, Jim
© Stack Overflow or respective owner