From owner-freebsd-questions@FreeBSD.ORG Sun Aug 5 19:50:29 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23CA9106566C for ; Sun, 5 Aug 2012 19:50:29 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id DC48B8FC08 for ; Sun, 5 Aug 2012 19:50:28 +0000 (UTC) Received: by obbun3 with SMTP id un3so5998114obb.13 for ; Sun, 05 Aug 2012 12:50:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=gM9T5PpeLrT9fICCYl0L1XNl2/+PuMejo+ymicRTe0o=; b=jsyJZTRiQhJ4p7k2lgIBwt9JToXsU5UwzsKl/xyJFKz4UP8HTayWkQq8Y4YBhrnjFu HCwIk4zV0PGTTmOIxCDFYe5s1I8+H8PjoNgAPujqcV6Utpfw5+n69hehFnbqiGlKtz6q l9lGSYjale6hZ/uLXs/SXMAMbWpvKsIumfRNnH/IKipJ2vP1sZnT4mEieftlQ+dVI9Dj XfbO1yWhMovBl7hXTgGJCpDCPEBtyh/N4hrxTIJNc/tQ5Jb44VsY2oCmQTrpEgVusA5F GPxzD8JBmG8y3zbRufnFGWtaN0eQSYED7olLOfvVYGfBJ7JZwAqizFzTzK7dG3/2R4FO ehCQ== MIME-Version: 1.0 Received: by 10.50.190.234 with SMTP id gt10mr3558510igc.20.1344196227761; Sun, 05 Aug 2012 12:50:27 -0700 (PDT) Received: by 10.64.124.41 with HTTP; Sun, 5 Aug 2012 12:50:27 -0700 (PDT) X-Originating-IP: [93.221.165.156] In-Reply-To: <20120805204138.abe5c8e7.freebsd@edvax.de> References: <20120805204138.abe5c8e7.freebsd@edvax.de> Date: Sun, 5 Aug 2012 21:50:27 +0200 Message-ID: From: "C. P. Ghost" To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmsu9k910l/26oxHdH1oGjJm4KTFetVyZgmcasnznsclQ83xEmHwZEkGX3nEwmq7hOkiJZd Cc: FreeBSD Questions Subject: Re: Webpage screenshot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2012 19:50:29 -0000 On Sun, Aug 5, 2012 at 8:41 PM, Polytropon 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/