Webpage screenshot

C. P. Ghost cpghost at cordula.ws
Sun Aug 5 19:50:29 UTC 2012


On Sun, Aug 5, 2012 at 8:41 PM, Polytropon <freebsd at edvax.de> wrote:
> I'm searching for a simple way to create a screenshot from
> a web page, i. e. convert the rendered page into a PNG (or
> something similar) graphic format. This is intended to be
> used for usability and design visualization where different
> components of the web page can be "colored" using Gimp to
> show their structure by "inking" the different elements.
>
> The idea of taking a screenshot from the web browser may
> look sufficient at first, but it is problematic when the
> web page doesn't fit horizontally or vertically. This
> sometimes doesn't even work when using the browser in
> "total fullscreen" (which is 1400x1050 or 2800x1050 here).
> Using the browsers "print to PS" functionaliy also add
> pagination that is not desired, and "continuous form
> printing" export doesn't exist.
>
> How would you suggest to solve this task? CLI utilities
> are welcome - the less interaction, the better. It doesn't
> matter if the result is a 800x10000 px image with 300 px
> white margin left and right. :-)

I'm still using xwd(1) to grab a window (using -frame to add
the decoration of the window manager) here, and convert it
then to .png with the Gimp. Of course, I take care of displaying
just the interesting part of the web page that I need by scrolling
to the interesting part.

If you need a complete snapshot of the page, you may try this:
open Firefox with some insane big -geometry settings, perhaps
to a big virtual screen in X; and then grab that whole window
with xwd(1). I didn't try that, but it may be enough. If your X server
won't handle this big a screen, try with a nesting server like
x11-servers/xorg-nestserver.

Good luck!

> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/


More information about the freebsd-questions mailing list