我和我追逐的梦

<< Bus的Post模块有些问题(或者是FireFox的问题)! [好碟分享]Hell Freezes Over >> Linux下一个很方便的屏幕截图工具 2006-02-05, by 死乘把口 字体大小: 小 | 中 | 大 已前在Linux下截图都是直接按“Print Screen”,然后再用图像编辑工具(e.g ImageMagick套件包里的display工具)裁剪出需要的部分,后来也试过用一个命令组合 xwd > 1.xwd xwdtopnm < 1.xwd | convert - 1.jpg 不过只能截一个窗体(convert命令也是ImageMagick套件包里的)。后来发现ImageMagick套件包有一个现成的截图命令import, root@ubuntu:~# import -help Version: ImageMagick 6.2.3 01/24/06 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC Usage: import [options ...] [ file ] Where options include: -adjoin join images into a single multi-image file -annotate geometry text annotate the image with text -border include image borders in the output image -channel type apply option to select image channels -colors value preferred number of colors in the image -colorspace type alternate image colorspace -comment string annotate image with comment -compress type image compression type -crop geometry preferred size and location of the cropped image -debug events display copious debugging information -define format:option define one or more image format options -delay value display the next image after pausing -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 GIF disposal method -dither apply Floyd/Steinberg error diffusion to image -encoding type text encoding type -endian type endianness (MSB or LSB) of the image -frame include window manager frame -geometry geometry perferred size or location of the image -gravity direction which direction to gravitate towards -help print program options -interlace type None, Line, Plane, or Partition -label name assign a label to an image -limit type value Area, Disk, Map, or Memory resource limit -log format format of debugging information -monitor monitor progress -monochrome transform image to black and white -negate replace every pixel with its complementary color -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 error or warning messages -repage geometry size and location of an image canvas -resize geometry resize the image -rotate degrees apply Paeth rotation to the image -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -screen select image from root window -set attribute value set an image attribute -silent operate silently, i.e. don't ring any bells -snaps value number of screen snapshots -strip strip image of all profiles and comments -support factor resize support: > 1.0 is blurry, < 1.0 is sharp -thumbnail geometry create a thumbnail of the image -transparent color make this color transparent within the image -treedepth value color tree depth -trim trim image edges -type type image type -verbose print detailed information about the image -version print version information -virtual-pixel method Constant, Edge, Mirror, or Tile -window id select window with this id or name 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. 最简单的方法,import x.jpg (x为文件名),然后按你的需要选择截图区域,就会在当前目录下生成一个x.jpg的文件 发布于: 12:53:20 | 分类: Blog Picture Linux | 引用(0) | 编辑 0 条评论: 添加评论

原始快照:web.archive.org