How to print a x.html page to image x.png with width=1000 pi

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bensto

How to print a x.html page to image x.png with width=1000 pi

Post by bensto »

How to print a x.html page with IM to image x.png with width 1000 pixel?

I want to print a html web page (e.g. D:\mypics\test\x.html) into a png picture file with width 1000 pixel (and height as much as necessary).

How can I do this with IM?

Ben
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to print a x.html page to image x.png with width=1000 pi

Post by anthony »

IM can do this, at least not directly. It will call packages to generate a raster image from the HTML.

the better way is to screen capture a browser window, and for that their are some rough and ready automatic tools that some people have used. however they are not simple and generally involve (on an linux system) starting a second X server, running a browser in it, getting the browser to display a page, capturing it using IM and cleaning up the resulting image, before getting the browser to move to the next page.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply