Hi,
I am trying to use ImageMagick to capture screenshots, problem is it only captures the visible portion. For example if I open Amazon in Firefox, it spans multiple page - but capturing that window only gets me the first page with scrollbars. Is there a way to capture the screenshot only using image magick.
Thanks.
Capturing entire window output
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Capturing entire window output
Captureing screen shots does just that, it grabs what is "on the screen". It has no idea what other data an application may have because it does not look at individual applications, just what i in the display buffer.
If you want MORE than that you will need to do something special.
For example a number of years ago someone had the same problem.
The solution start a 'virtual X windows display' using something like the "vncserver" script to launch a Xvnc program. This runs a head-less X server, in memory only, and only visible to users using snapshots, or a VNC remote display viewer.
when that was running (and it can be any size you want) you run a new firefow or other web clinet on it, remote control it to open a web page amd then screen capture that. As the server can be made larger you can make the web client larger to capture more of the web pages!
There was a script that did all this
http://www.imagemagick.org/Usage/script ... t_webpages
But I make no gurantee how well it works, if at all. Let me know if you try it.
Another technique is to get the web client to output the web page in some other format, such as postscript of PDF (for printing, but save to file) and read that. however a lot of pages look very different when printed, than when displayed. Often better looking with less ads and other 'crap'.
Or use a html converter to do the job without using a full web client.
If you want MORE than that you will need to do something special.
For example a number of years ago someone had the same problem.
The solution start a 'virtual X windows display' using something like the "vncserver" script to launch a Xvnc program. This runs a head-less X server, in memory only, and only visible to users using snapshots, or a VNC remote display viewer.
when that was running (and it can be any size you want) you run a new firefow or other web clinet on it, remote control it to open a web page amd then screen capture that. As the server can be made larger you can make the web client larger to capture more of the web pages!
There was a script that did all this
http://www.imagemagick.org/Usage/script ... t_webpages
But I make no gurantee how well it works, if at all. Let me know if you try it.
Another technique is to get the web client to output the web page in some other format, such as postscript of PDF (for printing, but save to file) and read that. however a lot of pages look very different when printed, than when displayed. Often better looking with less ads and other 'crap'.
Or use a html converter to do the job without using a full web client.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/