>K L import: ImageMagick - Image Processing and Display PackageJ R < W<8 
B

 
  &
>NAME+
>

Himport - capture some or all of an X server screen and save the image toa file.
  &
>Contents+
>



Description

Examples

Options

Environment

Authors

Copyright


  &
>Synopsis+
>



`import [ options ... ] file

  &
>Description+
>



QImport reads an image from any visible window on an X server andHoutputs it as an image file. You can capture a single window, the entire1screen, or any rectangular portion of the screen./Use displayJfor redisplay, printing, editing, formatting, archiving, image processing,etc. of the captured image.

BThe target window can be specified by id, name, or may be selectedFby clicking the mouse in the desired window. If you press a button andIthen drag, a rectangle will form which expands and contracts as the mouseGmoves. To save the portion of the screen defined by the rectangle, justFrelease the button. The keyboard bell is rung once at the beginning of/the screen capture and twice when it completes.



+Back to Contents  

  &
>Examples+
>



ITo select an X window or an area of the screen with the mouse and save it=in the MIFF image format to a file entitled window.miff, use:

    import window.miff


ITo select an X window or an area of the screen with the mouse and save itJin the Encapsulated PostScript format to include in another document, use:

    import figure.eps


HTo capture the entire X server screen in the JPEG image format in a file1entitled root.jpeg, without using the mouse, use:

!    import -window root root.jpeg


ETo capture the 512x256 area at the upper right corner of the X serverMscreen in the PNG image format in a well-compressed file entitled corner.png,without using the mouse, use:

5    import -window root -crop 512x256-0+0 -quality 90           corner.png



+Back to Contents  

  &
>Options+
>



FOptions are processed in command line order. Any option you specify onOthe command line remains in effect until it is explicitly changed by specifying)the option again with a different effect.

IImport options can appear on the command line or in yourJX resources file. See X(1). Options on the command line supersede*values specified in your X resources file.

3For a more detailed description of each option, see7ImageMagick(1).
 
 !

.X -bordercolor <color>+

the border color
 !

.P -cache <threshold>+

megabytes of memory available to the pixel cache
 !

.N -colors <value>+

preferred number of colors in the image
 !

.V -colorspace <value>+

the type of colorspace
 !

.Q -comment <string>+

annotate an image with a comment
 !

. -crop <width>x<height>{+-}<x>{+-}<y>{%}+

preferred size and location of the cropped image
 !

. -debug <events>+

enable debug printout
 !

.[ -delay <1/100ths of a second>+

display the next image after pausing
 !

._ -density <width>x<height>+

vertical and horizontal resolution in pixels of the image
 !

.L -depth <value>+

depth of the image
 !

. -descend+

obtain image by descending window hierarchy
 !

.` -display <host:display[.screen]>+

specifies the X server to contact
 !

.Q -dispose <method>+

GIF disposal method
 !

.9 -dither+

apply Floyd/Steinberg error diffusion to the image
 !

.Q -encoding <type>+

specify the text encoding
 !

.M -endian <type>+

specify endianness (MSB or LSB) of output image
 !

. -frame+

include the X window frame in the imported image
 !

. -geometry <width>x<height>{+-}<x>{+-}<y>{%}{@} {!}{<}{>}+

preferred size and location of the Image window.
 !

. -help+

print usage instructions
 !

.S -interlace <type>+

the type of interlacing scheme
 !

.K -label <name>+

assign a label to an image
 !

.Y -limit <type> <value>+

Disk, Map, or Memory resource limit
 !

. -monochrome+

transform the image to black and white
 !

.9 -negate+

replace every pixel with its complementary color
 !

. -page <width>x<height>{+-}<x>{+-}<y>{%}{!}{<}{>}+

size and location of an image canvas
 !

.N -pause <seconds>+

pause between snapshots [import]
 !

. -ping+

efficiently determine image characteristics
 !

.# -pointsize <value>+

pointsize of the PostScript, OPTION1, or TrueType font
 !

.P -quality <value>+

JPEG/MIFF/PNG compression level
 !

. -resize <width>x<height>{%}{@}{!}{<}{>}+

resize an image
 !

.x -rotate <degrees>{<}{>}+

apply Paeth image rotation to the image
 !

. -sampling-factor <horizontal_factor>x<vertical_factor>+

sampling factors used by JPEG or MPEG-2 encoder and YUV decoder/encoder.
 !

.L -scene <value>+

set scene number
 !

.9 -screen+

specify the screen to capture
 !

. -silent+

operate silently
 !

.L -snaps <value>+

number of screen snapshots
 !

.X -transparent <color>+

make this color transparent within the image
 !

.5 -trim+

trim an image
 !

.; -verbose+

print detailed information about the image
 !

.; -version+

print ImageMagick version string


3For a more detailed description of each option, see7ImageMagick(1).
 


  &
>Environment+
>

 !

. DISPLAY+

  &
>Authors+
>



 John Cristy,Omagick-users@imagemagick.org,ImageMagick Studio LLC,
Glenn Randers-Pehrson,=randeg@alum.rpi.edu,ImageMagick Studio LLC.

 




+Back to Contents  

  &
>Copyright+
>



6Copyright (C) 2002 ImageMagick Studio

MPermission is hereby granted, free of charge, to any person obtainingKa copy of this software and associated documentation files ("ImageMagick"),Hto deal in ImageMagick without restriction, including without limitationHthe rights to use, copy, modify, merge, publish, distribute, sublicense,Pand/or sell copies of ImageMagick, and to permit persons to whom the ImageMagickDis furnished to do so, subject to the following conditions:

OThe above copyright notice and this permission notice shall be included>in all copies or substantial portions of ImageMagick.

OThe software is provided "as is", without warranty of any kind, expressKor implied, including but not limited to the warranties of merchantability,Ffitness for a particular purpose and noninfringement.In no event shallGImageMagick Studio be liable for any claim, damages or other liability,Fwhether in an action of contract, tort or otherwise, arising from, outDof or in connection with ImageMagick or the use or other dealings inImageMagick.

;Except as contained in this notice, the name of theGImageMagick Studio LLC shall not be used in advertising or otherwise toLpromote the sale, use or other dealings in ImageMagick without prior written3authorization from the ImageMagick Studio.



+Back to Contents  


>

9Image manipulation software that works like magic.