Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 21:50:27 +0200
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Webpage screenshot
Message-ID:  <CADGWnjWSV70PcJrmSp6Cp%2BOemGbuYLdAUhOqSD9VAwv7BCF42g@mail.gmail.com>
In-Reply-To: <20120805204138.abe5c8e7.freebsd@edvax.de>
References:  <20120805204138.abe5c8e7.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 5, 2012 at 8:41 PM, Polytropon <freebsd@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGWnjWSV70PcJrmSp6Cp%2BOemGbuYLdAUhOqSD9VAwv7BCF42g>