]> granicus.if.org Git - imagemagick/blob - www/stream.html
...
[imagemagick] / www / stream.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   <title>Command-line Tools: Stream @ ImageMagick</title>
11   <meta name="application-name" content="ImageMagick" />
12   <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." />
13   <meta name="application-url" content="https://www.imagemagick.org" />
14   <meta name="generator" content="PHP" />
15   <meta name="keywords" content="command-line, tools:, stream, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
16   <meta name="rating" content="GENERAL" />
17   <meta name="robots" content="INDEX, FOLLOW" />
18   <meta name="generator" content="ImageMagick Studio LLC" />
19   <meta name="author" content="ImageMagick Studio LLC" />
20   <meta name="revisit-after" content="2 DAYS" />
21   <meta name="resource-type" content="document" />
22   <meta name="copyright" content="Copyright (c) 1999-2017 ImageMagick Studio LLC" />
23   <meta name="distribution" content="Global" />
24   <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
25   <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
26   <link href="https://www.imagemagick.org/script/stream.html" rel="canonical" />
27   <link href="../images/wand.png" rel="icon" />
28   <link href="../images/wand.ico" rel="shortcut icon" />
29   <link href="css/magick.css" rel="stylesheet" />
30 </head>
31 <body>
32 <div class="magick-masthead">
33   <div class="container">
34     <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
35          style="display:block"
36          data-ad-client="ca-pub-3129977114552745"
37          data-ad-slot="6345125851"
38          data-ad-format="auto"></ins>
39     <script>
40       (adsbygoogle = window.adsbygoogle || []).push({});
41     </script>
42     <nav class="nav magick-nav">
43       <a class="nav-link " href="../index.html">Home</a>
44       <a class="nav-link " href="download.html">Download</a>
45       <a class="nav-link " href="command-line-tools.html">Tools</a>
46       <a class="nav-link " href="command-line-processing.html">Command-line</a>
47       <a class="nav-link " href="resources.html">Resources</a>
48       <a class="nav-link " href="develop.html">Develop</a>
49       <a class="nav-link " href="https://www.imagemagick.org/script/search.php">Search</a>
50       <a class="nav-link float-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
51     </nav>
52   </div>
53 </div>
54 <div class="container">
55 <div class="magick-header">
56 <p class="text-center"><a href="stream.html#usage">Example Usage</a> • <a href="stream.html#options">Option Summary</a></p>
57
58 <p class="lead magick-description"><code>Stream</code> is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats.  It writes the pixel components as they are read from the input image a row at a time making <code>stream</code> desirable when working with large images or when you require raw pixel components.</p>
59
60 <h2 class="magick-post-title"><a id="usage"></a>Example Usage</h2>
61
62 <p>We list a few examples of the <code>stream</code> command here to illustrate its usefulness and ease of use. To get started, lets stream the red, green, blue components of a 640x480 JPEG image to disk as unsigned characters:</p>
63
64 <pre><code>
65 magick stream -map rgb -storage-type char image.jpg pixels.dat
66 magick display -depth 8 -size 640x480 rgb:pixels.dat
67 </code></pre>
68
69 <p>Here we extract a 100x100 region from a TIFF image in the grayscale format as doubles:</p>
70
71 <pre><code>
72 magick stream -map i -storage-type double -extract 100x100+30+40 image.tif gray.raw
73 </code></pre>
74
75 <p>You can also associate the region to extract with the image filename:</p>
76
77 <pre><code>
78 magick stream -map i -storage-type double 'image.tif[100x100+30+40]' gray.raw
79 </code></pre>
80
81
82 <h2 class="magick-post-title"><a id="options"></a>Option Summary</h2>
83
84 <p>The <code>stream</code> command recognizes these options.  Click on an option to get more details about how that option works.</p>
85
86 <table class="table table-sm table-striped">
87   <tbody>
88   <tr>
89     <th align="left">Option</th>
90     <th align="left">Description</th>
91   </tr>
92
93   <tr>
94     <td><a href="command-line-options.html#authenticate">-authenticate <var>value</var></a></td>
95     <td>decrypt image with this password</td>
96   </tr>
97
98   <tr>
99     <td><a href="command-line-options.html#channel">-channel <var>type</var></a></td>
100     <td>apply option to select image channels</td>
101   </tr>
102
103   <tr>
104     <td><a href="command-line-options.html#colorspace">-colorspace <var>type</var></a></td>
105     <td>set image colorspace</td>
106   </tr>
107
108   <tr>
109     <td><a href="command-line-options.html#debug">-debug <var>events</var></a></td>
110     <td>display copious debugging information</td>
111   </tr>
112
113   <tr>
114     <td><a href="command-line-options.html#define">-define <var>format:option</var></a></td>
115     <td>define one or more image format options</td>
116   </tr>
117
118   <tr>
119     <td><a href="command-line-options.html#density">-density <var>geometry</var></a></td>
120     <td>horizontal and vertical density of the image</td>
121   </tr>
122
123   <tr>
124     <td><a href="command-line-options.html#depth">-depth <var>value</var></a></td>
125     <td>image depth</td>
126   </tr>
127
128   <tr>
129     <td><a href="command-line-options.html#extract">-extract <var>geometry</var></a></td>
130     <td>extract area from image</td>
131   </tr>
132
133   <tr>
134     <td><a href="command-line-options.html#help">-help</a></td>
135     <td>print program options</td>
136   </tr>
137
138   <tr>
139     <td><a href="command-line-options.html#interlace">-interlace <var>type</var></a></td>
140     <td>type of image interlacing scheme</td>
141   </tr>
142
143   <tr>
144     <td><a href="command-line-options.html#interpolate">-interpolate <var>method</var></a></td>
145     <td>pixel color interpolation method</td>
146   </tr>
147
148   <tr>
149     <td><a href="command-line-options.html#limit">-limit <var>type value</var></a></td>
150     <td>pixel cache resource limit</td>
151   </tr>
152
153   <tr>
154     <td><a href="command-line-options.html#list">-list <var>type</var></a></td>
155     <td>Color, Configure, Delegate, Format, Magic, Module, Resource, or Type</td>
156   </tr>
157
158   <tr>
159     <td><a href="command-line-options.html#log">-log <var>format</var></a></td>
160     <td>format of debugging information</td>
161   </tr>
162
163   <tr>
164     <td><a href="command-line-options.html#stream-map">-map <var>components</var></a></td>
165     <td>store pixels in this format.</td>
166   </tr>
167
168   <tr>
169     <td><a href="command-line-options.html#monitor">-monitor</a></td>
170     <td>monitor progress</td>
171   </tr>
172
173   <tr>
174     <td><a href="command-line-options.html#quantize">-quantize <var>colorspace</var></a></td>
175     <td>reduce image colors in this colorspace</td>
176   </tr>
177
178   <tr>
179     <td><a href="command-line-options.html#quiet">-quiet</a></td>
180     <td>suppress all warning messages</td>
181   </tr>
182
183   <tr>
184     <td><a href="command-line-options.html#regard-warnings">-regard-warnings</a></td>
185     <td>pay attention to warning messages.</td>
186   </tr>
187
188   <tr>
189     <td><a href="command-line-options.html#respect-parentheses">-respect-parentheses</a></td>
190     <td>settings remain in effect until parenthesis boundary.</td>
191   </tr>
192
193   <tr>
194     <td><a href="command-line-options.html#sampling-factor">-sampling-factor <var>geometry</var></a></td>
195     <td>horizontal and vertical sampling factor</td>
196   </tr>
197
198   <tr>
199     <td><a href="command-line-options.html#seed">-seed <var>value</var></a></td>
200     <td>seed a new sequence of pseudo-random numbers</td>
201   </tr>
202
203   <tr>
204     <td><a href="command-line-options.html#set">-set <var>attribute value</var></a></td>
205     <td>set an image attribute</td>
206   </tr>
207
208   <tr>
209     <td><a href="command-line-options.html#size">-size <var>geometry</var></a></td>
210     <td>width and height of image</td>
211   </tr>
212
213   <tr>
214     <td><a href="command-line-options.html#storage-type">-storage-type <var>type</var></a></td>
215     <td>store pixels with this storage type.</td>
216   </tr>
217
218   <tr>
219     <td><a href="command-line-options.html#synchronize">-synchronize</a></td>
220     <td>synchronize image to storage device</td>
221   </tr>
222
223   <tr>
224     <td><a href="command-line-options.html#taint">-taint</a></td>
225     <td>mark the image as modified</td>
226   </tr>
227
228   <tr>
229     <td><a href="command-line-options.html#transparent-color">-transparent-color <var>color</var></a></td>
230     <td>transparent color</td>
231   </tr>
232
233   <tr>
234     <td><a href="command-line-options.html#verbose">-verbose</a></td>
235     <td>print detailed information about the image</td>
236   </tr>
237
238   <tr>
239     <td><a href="command-line-options.html#version">-version</a></td>
240     <td>print version information</td>
241   </tr>
242
243   <tr>
244     <td><a href="command-line-options.html#virtual-pixel">-virtual-pixel <var>method</var></a></td>
245     <td>access method for pixels outside the boundaries of the image</td>
246   </tr>
247
248   </tbody>
249 </table>
250
251 </div>
252   <footer class="magick-footer">
253     <p><a href="support.html">Donate</a> •
254      <a href="sitemap.html">Sitemap</a> •
255     <a href="links.html">Related</a> •
256     <a href="security-policy.html">Security</a> •
257     <a href="architecture.html">Architecture</a>
258 </p>
259     <p><a href="stream.html#">Back to top</a> •
260     <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
261     <a href="https://www.imagemagick.org/script/contact.php">Contact Us</a></p>
262         <p><small>© 1999-2017 ImageMagick Studio LLC</small></p>
263   </footer>
264 </div><!-- /.container -->
265
266   <script src="https://localhost/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
267   <script src="../js/magick.html"></script>
268 </body>
269 </html>
270 <!-- Magick Cache 13th July 2017 06:49 -->