Re: HTML to image
Posted: 2007-11-19T18:26:29-07:00
There are two ways. If IM loads a HTML it will look for a html2ps to convert the html to postscript which it can then render as an image.
This does not work very well, but does work.
the other is to load the page in a browser and then take a screen shot of it. This gets a perfect image of the page but limited to the window size of the browser.
Another variation is to have the browser output the page as postscript than have IM convert that. This should page the website into smaller pages quite nicely.
Another variation of the former under LINUX is to start a virtual X windows Display server ath tais as large as you want. (VERY tall if you like to capture the whole page), run the browser in it, and again grab a screen shot. I have seen a script that can even automate that whole complex process. However you can gen up with a VERY long image.
Basically it is NOT easy and the best solutions only use IM for the final image processing, not the html to image generation.
This does not work very well, but does work.
the other is to load the page in a browser and then take a screen shot of it. This gets a perfect image of the page but limited to the window size of the browser.
Another variation is to have the browser output the page as postscript than have IM convert that. This should page the website into smaller pages quite nicely.
Another variation of the former under LINUX is to start a virtual X windows Display server ath tais as large as you want. (VERY tall if you like to capture the whole page), run the browser in it, and again grab a screen shot. I have seen a script that can even automate that whole complex process. However you can gen up with a VERY long image.
Basically it is NOT easy and the best solutions only use IM for the final image processing, not the html to image generation.