Received: from eggs.gnu.org ([208.118.235.92]:55924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7AjO-0000jw-Ey for qemu-devel@nongnu.org; Mon, 12 Mar 2012 15:16:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7AjM-00062m-Dq for qemu-devel@nongnu.org; Mon, 12 Mar 2012 15:16:29 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:64141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7AjM-00061d-5O for qemu-devel@nongnu.org; Mon, 12 Mar 2012 15:16:28 -0400 Received: by werp12 with SMTP id p12so4349497wer.4 for ; Mon, 12 Mar 2012 12:16:26 -0700 (PDT) Date: Mon, 12 Mar 2012 18:06:19 +0000 From: Stefan Hajnoczi Message-ID: <20120312180619.GA21045@stefanha-thinkpad.localdomain> References: <1331557893-30806-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1331557893-30806-1-git-send-email-marcandre.lureau@redhat.com> Subject: Re: [Qemu-devel] [PATCH/RFC 0/7] Screendump to UNIX socket & in PNG format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Cc: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-devel@nongnu.org On Mon, Mar 12, 2012 at 02:11:26PM +0100, Marc-André Lureau wrote: > Next, I would like to add support for a scaling factor too (a typical use case is to show a small thumbnail of the desktop). Specifying only the requested "width" or "height" should be supported. Should we rely on pixman to do this work? This is taking it a bit far. There are many different use cases for screenshots and coding the thumbnail use case specifically into QEMU doesn't seem like the way to go. I think ppm for lossless and png for small file size are good options to have. Beyond that it's up to the caller to deal with the screenshot, which might be scaling, detecting diffs, encoding in a fancier format, etc. Stefan