From owner-freebsd-questions@FreeBSD.ORG Thu May 9 19:24:44 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 533A3857 for ; Thu, 9 May 2013 19:24:44 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) by mx1.freebsd.org (Postfix) with ESMTP id 25044DAB for ; Thu, 9 May 2013 19:24:44 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id xn12so3349510obc.10 for ; Thu, 09 May 2013 12:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=EpazkPJtSPyAQmOF8Zg/9lvzhmfma7BMk1UUffYGL40=; b=Sn++6f0sxaSX46S/FacXXLqHqml1KlfGQv3LkZlm9YB9E0WWp+XMOQaykTJBq+rkza VSNbjJj0iXI/Qobsl+QyjZ2+dOmBuQ3qJ1tT8AjYXv3r6FmvuWuqRqfDitdtKPCO0Ips 9vWf9m9pHcSLXcSCPBc6829HpGMwl+rjhM7k2FSE8xxMt1aBeeUo7VEgmrgzp7buo8sd tY02QXQT5/gEATwqBYk97k+aTZ3Ol8ydo6PJxErYc0RkJgvO7352ln/JqOxsBPaCg3+H YFV7D+4aQGWA+7Z44pllhuPy01HtO73cTy8eh2XXkw88indZvKJ3zVEOHOmgKOS6w5N1 z04Q== MIME-Version: 1.0 X-Received: by 10.60.65.5 with SMTP id t5mr5142792oes.139.1368127483775; Thu, 09 May 2013 12:24:43 -0700 (PDT) Received: by 10.76.152.6 with HTTP; Thu, 9 May 2013 12:24:43 -0700 (PDT) In-Reply-To: <20130509184144.GA1354@tiny.Sisis.de> References: <20130509184144.GA1354@tiny.Sisis.de> Date: Thu, 9 May 2013 14:24:43 -0500 Message-ID: Subject: Re: X11 screen grabber from cmd line From: Antonio Olivares To: Matthias Apitz Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2013 19:24:44 -0000 ImageMagick port can do this using command import. $ which import /usr/local/bin/import $ import --help Version: ImageMagick 6.8.0-7 2013-03-06 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: Usage: import [options ...] [ file ] Image Settings: -adjoin join images into a single multi-image file -border include window border in the output image -channel type apply option to select image channels -colorspace type alternate image colorspace -comment string annotate image with comment -compress type type of pixel compression when writing the image -define format:option define one or more image format options -density geometry horizontal and vertical density of the image -depth value image depth -descend obtain image by descending window hierarchy -display server X server to contact -dispose method layer disposal method -dither method apply error diffusion to image -delay value display the next image after pausing -encipher filename convert plain pixels to cipher pixels -endian type endianness (MSB or LSB) of the image -encoding type text encoding type -filter type use this filter when resizing an image -format "string" output formatted image characteristics -frame include window manager frame -gravity direction which direction to gravitate towards -identify identify the format and characteristics of the image -interlace type None, Line, Plane, or Partition -interpolate method pixel color interpolation method -label string assign a label to an image -limit type value Area, Disk, Map, or Memory resource limit -monitor monitor progress -page geometry size and location of an image canvas -pause value seconds delay between snapshots -pointsize value font point size -quality value JPEG/MIFF/PNG compression level -quiet suppress all warning messages -regard-warnings pay attention to warning messages -respect-parentheses settings remain in effect until parenthesis boundary -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -screen select image from root window -seed value seed a new sequence of pseudo-random numbers -set property value set an image property -silent operate silently, i.e. don't ring any bells -snaps value number of screen snapshots -synchronize synchronize image to storage device -taint declare the image as modified -transparent-color color transparent color -treedepth value color tree depth -verbose print detailed information about the image -virtual-pixel method Constant, Edge, Mirror, or Tile -window id select window with this id or name Image Operators: -annotate geometry text annotate the image with text -colors value preferred number of colors in the image -crop geometry preferred size and location of the cropped image -encipher filename convert plain pixels to cipher pixels -geometry geometry preferred size or location of the image -help print program options -monochrome transform image to black and white -negate replace every pixel with its complementary color -repage geometry size and location of an image canvas -quantize colorspace reduce colors in this colorspace -resize geometry resize the image -rotate degrees apply Paeth rotation to the image -strip strip image of all profiles and comments -thumbnail geometry create a thumbnail of the image -transparent color make this color transparent within the image -trim trim image edges -type type image type Miscellaneous Options: -debug events display copious debugging information -help print program options -list type print a list of supported option arguments -log format format of debugging information -version print version information By default, 'file' is written in the MIFF image format. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output. $ Best Regards, Antonio On Thu, May 9, 2013 at 1:41 PM, Matthias Apitz wrote: > > Hello, > > Do we have something in the ports which could do a screen shoot of $DISPLAY, but > from the cmd line of an alpha console, and save it as PNG or JPEG? > Thx > > matthias > -- > Sent from my FreeBSD netbook > > Matthias Apitz | - No system with backdoors like Apple/Android > E-mail: guru@unixarea.de | - Never being an iSlave > WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail > phone: +49-170-4527211 | - Respect for open standards > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"