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.
HTML to image
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: HTML to image
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/