]> granicus.if.org Git - imagemagick/blob - www/import.html
...
[imagemagick] / www / import.html
1
2
3
4
5 <!DOCTYPE html>
6 <html lang="en">
7 <head>
8   <meta charset="utf-8" />
9   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10   <meta http-equiv="x-ua-compatible" content="ie=edge" />
11   <title>Command-line Tools: Import @ ImageMagick</title>
12   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
13   <meta name="application-name" content="ImageMagick"/>
14   <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves."/>
15   <meta name="application-url" content="https://www.imagemagick.org"/>
16   <meta name="generator" content="PHP"/>
17   <meta name="keywords" content="command-line, tools:, import, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
18   <meta name="rating" content="GENERAL"/>
19   <meta name="robots" content="INDEX, FOLLOW"/>
20   <meta name="generator" content="ImageMagick Studio LLC"/>
21   <meta name="author" content="ImageMagick Studio LLC"/>
22   <meta name="revisit-after" content="2 DAYS"/>
23   <meta name="resource-type" content="document"/>
24   <meta name="copyright" content="Copyright (c) 1999-2017 ImageMagick Studio LLC"/>
25   <meta name="distribution" content="Global"/>
26   <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
27   <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
28   <link rel="canonical" href="https://www.imagemagick.org/script/import.html"/>
29   <link rel="icon" href="../images/wand.png"/>
30   <link rel="shortcut icon" href="../images/wand.ico"/>
31   <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:900,400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700" />
32   <link rel="stylesheet" href="css/magick.css"/>
33 </head>
34 <body>
35 <div class="main">
36 <div class="magick-masthead">
37   <div class="container">
38     <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
39          style="display:block"
40          data-ad-client="ca-pub-3129977114552745"
41          data-ad-slot="6345125851"
42          data-ad-format="auto"></ins>
43     <script>
44       (adsbygoogle = window.adsbygoogle || []).push({});
45     </script>
46     <nav class="magick-nav">
47       <a class="magick-nav-item " href="../index.html">Home</a>
48       <a class="magick-nav-item " href="download.html">Download</a>
49       <a class="magick-nav-item " href="command-line-tools.html">Tools</a>
50       <a class="magick-nav-item " href="command-line-processing.html">Command-line</a>
51       <a class="magick-nav-item " href="resources.html">Resources</a>
52       <a class="magick-nav-item " href="develop.html">Develop</a>
53       <a class="magick-nav-item " href="https://www.imagemagick.org/script/search.php">Search</a>
54       <a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
55     </nav>
56   </div>
57 </div>
58 <div class="container">
59 <div class="magick-header">
60 <p class="text-center"><a href="import.html#usage">Example Usage</a> • <a href="import.html#options">Option Summary</a></p>
61
62 <p class="lead magick-description">Use the <code>import</code> program to capture some or all of an X server screen and save the image to a file. See <a href="command-line-processing.html">Command Line Processing</a> for advice on how to structure your <code>import</code> command or see below for example usages of the command.</p>
63
64 <h2 class="magick-header"><a id="usage"></a>Example Usage</h2>
65
66 <p>We list a few examples of the <code>import</code> command here to illustrate its usefulness and ease of use.  To get started, lets import an image in the JPEG format:</p>
67
68 <pre>
69 import rose.jpg
70 </pre>
71
72 <p>To capture the entire X server screen in the Postscript image format:</p>
73
74 <pre>
75 import -window root screen.ps
76 </pre>
77
78 <p>You can find additional examples of using <code>import</code> in <a href="http://www.ibm.com/developerworks/library/l-graf/?ca=dnt-428">Graphics from the Command Line</a>.  Further discussion is available in  <a href="http://www.ibm.com/developerworks/library/l-graf2/?ca=dgr-lnxw15GraphicsLine">More Graphics from the Command Line</a> and <a href="https://www.imagemagick.org/Usage/">Examples of ImageMagick Usage</a>.</p>
79
80
81 <h2 class="magick-header"><a id="options"></a>Option Summary</h2>
82
83 <p>The <code>import</code> command recognizes these options.  Click on an option to get more details about how that option works.</p>
84
85 <table class="table table-condensed table-striped">
86   <tbody>
87   <tr>
88     <th align="left">Option</th>
89     <th align="left">Description</th>
90   </tr>
91
92   <tr>
93     <td><a href="command-line-options.html#adjoin">-adjoin</a></td>
94     <td>join images into a single multi-image file</td>
95   </tr>
96
97   <tr>
98     <td><a href="command-line-options.html#annotate">-annotate <var>geometry text</var></a></td>
99     <td>annotate the image with text</td>
100   </tr>
101
102   <tr>
103     <td><a href="command-line-options.html#border">-border</a></td>
104     <td>include window border in the output image</td>
105   </tr>
106
107   <tr>
108     <td><a href="command-line-options.html#channel">-channel <var>type</var></a></td>
109     <td>apply option to select image channels</td>
110   </tr>
111
112   <tr>
113     <td><a href="command-line-options.html#colors">-colors <var>value</var></a></td>
114     <td>preferred number of colors in the image</td>
115   </tr>
116
117   <tr>
118     <td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td>
119     <td>set image colorspace</td>
120   </tr>
121
122   <tr>
123     <td><a href="command-line-options.html#comment">-comment <var>string</var></a></td>
124     <td>annotate image with comment</td>
125   </tr>
126
127   <tr>
128     <td><a href="command-line-options.html#compress">-compress <var>type</var></a></td>
129     <td>image compression type</td>
130   </tr>
131
132   <tr>
133     <td><a href="command-line-options.html#contrast">-contrast</a></td>
134     <td>enhance or reduce the image contrast</td>
135   </tr>
136
137   <tr>
138     <td><a href="command-line-options.html#crop">-crop <var>geometry</var></a></td>
139     <td>preferred size and location of the cropped image</td>
140   </tr>
141
142   <tr>
143     <td><a href="command-line-options.html#debug">-debug <var>events</var></a></td>
144     <td>import copious debugging information</td>
145   </tr>
146
147   <tr>
148     <td><a href="command-line-options.html#define">-define <var>format:option</var></a></td>
149     <td>define one or more image format options</td>
150   </tr>
151
152   <tr>
153     <td><a href="command-line-options.html#delay">-delay <var>value</var></a></td>
154     <td>import the next image after pausing</td>
155   </tr>
156
157   <tr>
158     <td><a href="command-line-options.html#density">-density <var>geometry</var></a></td>
159     <td>horizontal and vertical density of the image</td>
160   </tr>
161
162   <tr>
163     <td><a href="command-line-options.html#depth">-depth <var>value</var></a></td>
164     <td>image depth</td>
165   </tr>
166
167   <tr>
168     <td><a href="command-line-options.html#despeckle">-descend</a></td>
169     <td>obtain image by descending window hierarchy</td>
170   </tr>
171
172   <tr>
173     <td><a href="command-line-options.html#display">-display <var>server</var></a></td>
174     <td>get image or font from this X server</td>
175   </tr>
176
177   <tr>
178     <td><a href="command-line-options.html#dispose">-dispose <var>method</var></a></td>
179     <td>layer disposal method</td>
180   </tr>
181
182   <tr>
183     <td><a href="command-line-options.html#dither">-dither  <var>method</var></a></td>
184     <td>apply error diffusion to image</td>
185   </tr>
186
187   <tr>
188     <td><a href="command-line-options.html#encipher">-encipher <var>filename</var></a></td>
189     <td>convert plain pixels to cipher pixels</td>
190   </tr>
191
192   <tr>
193     <td><a href="command-line-options.html#encoding">-encoding <var>type</var></a></td>
194     <td>text encoding type</td>
195   </tr>
196
197   <tr>
198     <td><a href="command-line-options.html#endian">-endian <var>type</var></a></td>
199     <td>endianness (MSB or LSB) of the image</td>
200   </tr>
201
202   <tr>
203     <td><a href="command-line-options.html#filter">-filter <var>type</var></a></td>
204     <td>use this filter when resizing an image</td>
205   </tr>
206
207   <tr>
208     <td><a href="command-line-options.html#frame">-frame</a></td>
209     <td>include window manager frame</td>
210   </tr>
211
212   <tr>
213     <td><a href="command-line-options.html#geometry">-geometry <var>geometry</var></a></td>
214     <td>preferred size or location of the image</td>
215   </tr>
216
217   <tr>
218     <td><a href="command-line-options.html#gravity">-gravity <var>type</var></a></td>
219     <td>horizontal and vertical text placement</td>
220   </tr>
221
222   <tr>
223     <td><a href="command-line-options.html#help">-help</a></td>
224     <td>print program options</td>
225   </tr>
226
227   <tr>
228     <td><a href="command-line-options.html#identify">-identify</a></td>
229     <td>identify the format and characteristics of the image</td>
230   </tr>
231
232   <tr>
233     <td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td>
234     <td>type of image interlacing scheme</td>
235   </tr>
236
237   <tr>
238     <td><a href="command-line-options.html#interpolate">-interpolate <var>method</var></a></td>
239     <td>pixel color interpolation method</td>
240   </tr>
241
242   <tr>
243     <td><a href="command-line-options.html#label">-label <var>name</var></a></td>
244     <td>assign a label to an image</td>
245   </tr>
246
247   <tr>
248     <td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td>
249     <td>pixel cache resource limit</td>
250   </tr>
251
252   <tr>
253     <td><a href="command-line-options.html#log">-log <var>format</var></a></td>
254     <td>format of debugging information</td>
255   </tr>
256
257   <tr>
258     <td><a href="command-line-options.html#monitor">-monitor</a></td>
259     <td>monitor progress</td>
260   </tr>
261
262   <tr>
263     <td><a href="command-line-options.html#monochrome">-monochrome</a></td>
264     <td>transform image to black and white</td>
265   </tr>
266
267   <tr>
268     <td><a href="command-line-options.html#negate">-negate</a></td>
269     <td>replace each pixel with its complementary color </td>
270   </tr>
271
272   <tr>
273     <td><a href="command-line-options.html#page">-page <var>geometry</var></a></td>
274     <td>size and location of an image canvas (setting)</td>
275   </tr>
276
277   <tr>
278     <td><a href="command-line-options.html#pause">-pause <var>seconds</var></a></td>
279     <td>seconds delay between snapshots</td>
280   </tr>
281
282   <tr>
283     <td><a href="command-line-options.html#quality">-quality <var>value</var></a></td>
284     <td>JPEG/MIFF/PNG compression level</td>
285   </tr>
286
287   <tr>
288     <td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td>
289     <td>reduce image colors in this colorspace</td>
290   </tr>
291
292   <tr>
293     <td><a href="command-line-options.html#quiet">-quiet</a></td>
294     <td>suppress all warning messages</td>
295   </tr>
296
297   <tr>
298     <td><a href="command-line-options.html#quiet">-quiet</a></td>
299     <td>suppress all warning messages</td>
300   </tr>
301
302   <tr>
303     <td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td>
304     <td>pay attention to warning messages.</td>
305   </tr>
306
307   <tr>
308     <td><a href="command-line-options.html#repage">-repage <var>geometry</var></a></td>
309     <td>size and location of an image canvas</td>
310   </tr>
311
312   <tr>
313     <td><a href="command-line-options.html#resize">-resize <var>geometry</var></a></td>
314     <td>resize the image</td>
315   </tr>
316
317   <tr>
318     <td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td>
319     <td>settings remain in effect until parenthesis boundary.</td>
320   </tr>
321
322   <tr>
323     <td><a href="command-line-options.html#rotate">-rotate <var>degrees</var></a></td>
324     <td>apply Paeth rotation to the image</td>
325   </tr>
326
327   <tr>
328     <td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td>
329     <td>horizontal and vertical sampling factor</td>
330   </tr>
331
332   <tr>
333     <td><a href="command-line-options.html#scene">-scene <var>value</var></a></td>
334     <td>image scene number</td>
335   </tr>
336
337   <tr>
338     <td><a href="command-line-options.html#screen">-screen</a></td>
339     <td>select image from root window</td>
340   </tr>
341
342   <tr>
343     <td><a href="command-line-options.html#seed">-seed <var>value</var></a></td>
344     <td>seed a new sequence of pseudo-random numbers</td>
345   </tr>
346
347   <tr>
348     <td><a href="command-line-options.html#set">-set <var>attribute value</var></a></td>
349     <td>set an image attribute</td>
350   </tr>
351
352   <tr>
353     <td><a href="command-line-options.html#sharpen">-silent</a></td>
354     <td>operate silently, i.e. don't ring any bells</td>
355   </tr>
356
357   <tr>
358     <td><a href="command-line-options.html#strip">-strip</a></td>
359     <td>strip image of all profiles and comments</td>
360   </tr>
361
362   <tr>
363     <td><a href="command-line-options.html#synchronize">-synchronize</a></td>
364     <td>synchronize image to storage device</td>
365   </tr>
366
367   <tr>
368     <td><a href="command-line-options.html#taint">-taint</a></td>
369     <td>mark the image as modified</td>
370   </tr>
371
372   <tr>
373     <td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td>
374     <td>transparent color</td>
375   </tr>
376
377   <tr>
378     <td><a href="command-line-options.html#trim">-trim</a></td>
379     <td>trim image edges</td>
380   </tr>
381
382   <tr>
383     <td><a href="command-line-options.html#update">-type <var>type</var></a></td>
384     <td>image type</td>
385   </tr>
386
387   <tr>
388     <td><a href="command-line-options.html#verbose">-verbose</a></td>
389     <td>print detailed information about the image</td>
390   </tr>
391
392   <tr>
393     <td><a href="command-line-options.html#version">-version</a></td>
394     <td>print version information</td>
395   </tr>
396
397   <tr>
398     <td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td>
399     <td>access method for pixels outside the boundaries of the image</td>
400   </tr>
401
402   <tr>
403     <td><a href="command-line-options.html#write">-window <var>id</var></a></td>
404     <td>select window with this id or name</td>
405   </tr>
406
407   </tbody>
408 </table>
409
410 </div>
411   <footer class="magick-footer">
412     <p><a href="support.html">Donate</a> •
413      <a href="sitemap.html">Sitemap</a> •
414     <a href="links.html">Related</a> •
415     <a href="security-policy.html">Security</a> •
416     <a href="architecture.html">Architecture</a>
417 </p>
418     <p><a href="import.html#">Back to top</a> •
419     <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
420     <a href="https://www.imagemagick.org/script/contact.php">Contact Us</a></p>
421         <p><small>© 1999-2017 ImageMagick Studio LLC</small></p>
422   </footer>
423 </div><!-- /.container -->
424
425   <script src="https://localhost/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
426   <script src="../js/magick.html"></script>
427 </div>
428 </body>
429 </html>
430 <!-- Magick Cache 14th May 2017 12:20 -->