Debian Codegraph @

www/defines.html

raw symbols ◀ ▶
Source reconstructed at patch state 4 of 6 — not the installed (fully patched) source.
6 Debian patches touch this file
1
2
3
4 <!DOCTYPE html>
5 <html lang="en" data-bs-theme="dark">
6 <head>
7 <script src="assets/color-modes.js" ></script>
8 <meta charset="utf-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1" />
10 <title>ImageMagick – Defines</title>
11 <meta name="keywords" content="Defines, Image Processing, Digital Image Editing, Image Conversion, Open-Source Software, Image Manipulation, Command-Line Image Tools" />
12 <meta name="description" content="ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations." />
13 <meta name="application-name" content="ImageMagick" />
14 <meta name="application-url" content="https://imagemagick.org" />
15 <meta name="copyright" content="Copyright (c) 1999 ImageMagick Studio LLC" />
16 <meta itemprop='url' content='../' />
17 <meta itemprop='title' content='ImageMagick' />
18 <meta itemprop='description' content="ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations." />
19 <meta property='og:url' content='../' />
20 <meta property='og:name' content='ImageMagick' />
21 <meta property='og:image' content='../images/logo.png' />
22 <meta property='og:type' content='website' />
23 <meta property='og:site_name' content='ImageMagick' />
24 <meta property='og:description' content="ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations." />
25 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
26 <link type="images/png" sizes="64x64" href="../images/wand.png" rel="icon" />
27 <link type="images/icon" sizes="16x16" href="../images/wand.ico" rel="shortcut icon" />
28 <link href="defines.html" rel="canonical" />
29 <link href="assets/bootstrap.min.css" rel="stylesheet" />
30 </head>
31 <body>
32 <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
33 <symbol id="check2" viewBox="0 0 16 16">
34 <path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/>
35 </symbol>
36 <symbol id="circle-half" viewBox="0 0 16 16">
37 <path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"/>
38 </symbol>
39 <symbol id="moon-stars-fill" viewBox="0 0 16 16">
40 <path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/>
41 <path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"/>
42 </symbol>
43 <symbol id="sun-fill" viewBox="0 0 16 16">
44 <path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/>
45 </symbol>
46 </svg>
47 <div class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle">
48 <button class="btn btn-bd-secondary py-2 dropdown-toggle d-flex align-items-center"
49 id="bd-theme"
50 type="button"
51 aria-expanded="false"
52 data-bs-toggle="dropdown"
53 aria-label="Toggle theme (auto)">
54 <svg class="bi my-1 theme-icon-active" width="1em" height="1em"><use href="#circle-half"></use></svg>
55 <span class="visually-hidden" id="bd-theme-text">Toggle theme</span>
56 </button>
57 <ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text">
58 <li>
59 <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false">
60 <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#sun-fill"></use></svg>
61 Light
62 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
63 </button>
64 </li>
65 <li>
66 <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="dark" aria-pressed="false">
67 <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg>
68 Dark
69 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
70 </button>
71 </li>
72 <li>
73 <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="auto" aria-pressed="true">
74 <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#circle-half"></use></svg>
75 Auto
76 <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg>
77 </button>
78 </li>
79 </ul>
80 </div>
81 <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
82 <symbol id="arrow-right-circle" viewBox="0 0 16 16">
83 <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>
84 </symbol>
85 <symbol id="color-mode" viewBox="0 0 118 94">
86 <title>Color Modes</title>
87 <path fill-rule="evenodd" clip-rule="evenodd" d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"></path>
88 </symbol>
89 </svg>
90 <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
91 <div class="container-fluid">
92 <a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../images/wand.ico"/></a>
93 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation">
94 <span class="navbar-toggler-icon"></span>
95 </button>
96
97 <div class="collapse navbar-collapse" id="magick-navbars">
98 <ul class="navbar-nav me-auto mb-2 mb-md-0">
99 <li class="nav-item">
100 <a class="nav-link " href="download.html">Download</a>
101 </li>
102 <li class="nav-item">
103 <a class="nav-link " href="command-line-tools.html">Tools</a>
104 </li>
105 <li class="nav-item">
106 <a class="nav-link " href="command-line-processing.html">CLI</a>
107 </li>
108 <li class="nav-item">
109 <a class="nav-link " href="develop.html">Develop</a>
110 </li>
111 <li class="nav-item">
112 <a class="nav-link" rel="noopener" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
113 </li>
114 <li class="nav-item">
115
116 </li>
117 </ul>
118 <form class="d-flex form-inline" action="../www/search.html">
119 <input class="form-control me-2" type="text" name="q" placeholder="Search" aria-label="Search">
120 <button class="btn btn-outline-success" type="submit" name="sa">Search</button>
121 </form>
122 </div>
123 </div>
124 </nav>
125
126 <div class="col-lg-8 mx-auto p-4 py-md-5 text-body-secondary">
127 <header class="d-flex align-items-center pb-3 mb-5 border-bottom">
128 <a href="../index.html" class="d-flex align-items-center text-decoration-none">
129 <h1 class="mt-5 fs-4">Defines</h1>
130 </a>
131 </header>
132
133 <main class="container">
134 <div>
135
136 <p class="magick-description">The <a href="command-line-options.html#define">-define</a> command-line option adds specific global settings generally used to control coders and image processing operations.</p>
137
138 <p>This option creates one or more definitions for coders and decoders to use
139 while reading and writing image data. Definitions are generally used to
140 control image file format coder modules, and image processing operations,
141 beyond what is provided by normal means. Defined settings are listed in <a href="command-line-options.html#verbose">-verbose</a> information ("<samp>info:</samp>" output format) as "Artifacts". </p>
142
143 <p>If <var>value</var> is missing for a definition, an empty-valued
144 definition of a flag is created with that name. This used to control on/off
145 options. Use <a href="command-line-options.html#define">-define keys</a> to remove definitions
146 previously created. Use <a href="command-line-options.html#define">+define "*"</a> to remove all existing definitions.</p>
147
148 <p>The same 'artifact' settings can also be defined using the <a href="command-line-options.html#set">-set "option:<var>key</var>" "<var>value</var>"</a> option, which also allows the use of <a href="../www/escape.html" >Format and Print Image Properties</a> in the defined value. </p>
149
150 <p>The <var>option</var> and <var>key</var> are case-independent (they are
151 converted to lowercase for use within the decoders) while the <var>value</var>
152 is case-dependent.</p>
153
154 <p>Such settings are global in scope, and affect all images and operations. </p>
155
156 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick bilevel.tif -define ps:imagemask eps3:stencil.ps
157 magick arrow.tga -set colorspace:auto-grayscale=off myArrow.tga </samp></pre>
158
159 <p>Set attributes of the image registry by prefixing the value with
160 <samp>registry:</samp>. For example, to set a temporary path to put work files,
161 use:</p>
162
163 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>-define registry:temporary-path=/data/tmp </samp></pre>
164
165 <p>Here is a list of recognized defines:</p>
166
167
168 <div>
169
170 <table class="table table-sm table-hover table-striped table-responsive">
171 <tr>
172 <th align="center" colspan=2>Command-line Defines</th>
173 </tr>
174
175 <tr>
176 <td colspan="2"><p></p></td>
177 </tr>
178
179 <tr>
180 <td>ashlar:best-fit</td>
181 <td>align tiles on both the left and right edges.</td>
182 </tr>
183
184 <tr>
185 <td>ashlar:tiles</td>
186 <td>set the maximum number of image tiles to render per canvas.</td>
187 </tr>
188
189 <tr>
190 <td>auto-threshold:verbose</td>
191 <td>return derived threshold as the <samp>auto-threshold:threshold</samp> image property.</td>
192 </tr>
193
194 <tr>
195 <td>color:illuminant</td>
196 <td>reference illuminant, defaults to D65.</td>
197 </tr>
198
199 <tr>
200 <td>colorspace:auto-grayscale=<var>on|off</var></td>
201 <td>Prevent automatic conversion to grayscale inside coders that support
202 grayscale. This should be accompanied by -type truecolor. PNG and TIF do
203 not need this define. With PNG, just use PNG24:image. With TIF, just use
204 -type truecolor. JPG and PSD will need this define.</td>
205 </tr>
206
207 <tr>
208 <td>compare:frequency-domain=<var>boolean</var></td>
209 <td>Certain similarity metrics such as DPC, MSE, NCC, PSNR, Phase, and RMSE operate in the frequency domain when FFTW and HDRI are enabled. To utilize their spatial equivalents, you can use the command <samp>-define compare:frequency-domain=false</samp>. However, note that DPC and PHASE metrics do not have spatial equivalents, so this command will be ignored for them.</td>
210 </tr>
211
212 <tr>
213 <td>compare:ssim-radius=<var>value</var></td>
214 <td>Set the structural similarity index radius.</td>
215 </tr>
216
217 <tr>
218 <td>compare:ssim-sigma=<var>value</var></td>
219 <td>Set the structural similarity index sigma.</td>
220 </tr>
221
222 <tr>
223 <td>compare:ssim-k1=<var>value</var></td>
224 <td>Set the structural similarity index k1 argument.</td>
225 </tr>
226
227 <tr>
228 <td>compare:ssim-k2=<var>value</var></td>
229 <td>Set the structural similarity index k2 argument.</td>
230 </tr>
231
232 <tr>
233 <td>compare:virtual-pixels=<var>boolean</var></td>
234 <td>ImageMagick compares images pixel by pixel, aligning from the top-left corner. If sizes differ, unmatched areas in the smaller image are treated as virtual pixels, possibly affecting comparison results. To limit comparison to authentic pixels only, use <samp>-define compare:virtual-pixels=false</samp>.</td>
235 </tr>
236
237 <tr>
238 <td>complex:snr=<var>value</var></td>
239 <td>Set the divide SNR constant <a href="command-line-options.html#complex">-complex</a>.</td>
240 </tr>
241
242 <tr>
243 <td>compose:args=<var>arguments</var></td>
244 <td>Set certain compose argument values when using convert ... -compose ...
245 -composite. See <a href="../www/compose.html"
246 >Image Composition</a>.</td>
247 </tr>
248
249 <tr>
250 <td>compose:clip-to-self=<var>true|false</var></td>
251 <td>Some <a href="command-line-options.html#compose" >-compose</a> methods can modify the
252 'destination' image outside the overlay area. It is disabled by default.</td>
253 </tr>
254
255 <tr>
256 <td>compose:clamp=<var>on|off</var></td>
257 <td>Set each pixel whose value is below zero to zero and any the pixel
258 whose value is above the quantum range to the quantum range (e.g. 65535)
259 otherwise the pixel value remains unchanged. Define supported in
260 ImageMagick 6.9.1-3 and above.</td>
261 </tr>
262
263 <tr>
264 <td>compose:colorspace=<var>colorspace</var></td>
265 <td>Set the colorspace for the colorize composite operator. The default is HCL.</td>
266 </tr>
267
268 <tr>
269 <td>compose:compose=<var>on|off</var></td>
270 <td>This special usage allows you to perform true mathematics of the image channels, without alpha composition effects, becoming involved.</td>
271 </tr>
272
273 <tr>
274 <td>connected-components:angle-threshold=<var>value</var></td>
275 <td>Merges any region with equivalent ellipse angle smaller than
276 <var>value</var> into its surrounding region or largest neighbor.
277 Supported in Imagemagick 7.0.9.24.</td>
278 </tr>
279
280 <tr>
281 <td>connected-components:area-threshold=<var>value</var></td>
282 <td>Merges any region with area smaller than <var>value</var> into its
283 surrounding region or largest neighbor. Thresholds can optionally include ranges, e.g. 410-1600.</td>
284 </tr>
285
286 <tr>
287 <td>connected-components:background-id=<var>object-id</var></td>
288 <td>Identify which object is to be the background object.
289 Supported in Imagemagick 7.0.9.21.</td>
290 </tr>
291
292 <tr>
293 <td>connected-components:circularity-threshold=<var>value</var></td>
294 <td>Merge any region with circularity smaller than <var>value</var>
295 into its surrounding region or largest neighbor. Circularity is
296 computed as 4*pi*area/perimeter^2.
297 Supported in Imagemagick 7.0.9.24.</td>
298 </tr>
299
300 <tr>
301 <td>connected-components:diameter-threshold=<var>value</var></td>
302 <td>Merge any region with diameter smaller than <var>value</var>
303 into its surrounding region or largest neighbor. Diameter is
304 computed as sqrt(4*area/pi).
305 Supported in Imagemagick 7.0.9.24.</td>
306 </tr>
307
308 <tr>
309 <td>connected-components:eccentricity-threshold=<var>value</var></td>
310 <td>Merge any region with equivalent ellipse eccentricity smaller
311 than <var>value</var> into its surrounding region or largest neighbor.
312 Supported in Imagemagick 7.0.9.24.</td>
313 </tr>
314
315 <tr>
316 <td>connected-components:exclude-header=<var>true</var></td>
317 <td>List the objects without the header. Supported in Imagemagick 7.0.9.21.</td>
318 </tr>
319
320 <tr>
321 <td>connected-components:keep=<var>list-of-ids</var></td>
322 <td>Comma and/or hyphenated list of id values to keep in the output. Supported in Imagemagick 6.9.3-0.</td>
323 </tr>
324
325 <tr>
326 <td>connected-components:keep-colors=<var>red;green;blue</var></td>
327 <td>Keeps objects identified by their color in a semicolon separated list. Supported in Imagemagick 6.9.3-0.</td>
328 </tr>
329
330 <tr>
331 <td>connected-components:keep-top=<var>number-of-objects</var></td>
332 <td>Keeps only the top number of objects by area. Supported in Imagemagick 7.0.9.21.</td>
333 </tr>
334
335 <tr>
336 <td>connected-components:major-axis-threshold=<var>value</var></td>
337 <td>Merge any region with equivalent ellipse major axis diameter smaller
338 than <var>value</var> into its surrounding region or largest neighbor.
339 Supported in Imagemagick 7.0.9.24.</td>
340 </tr>
341
342 <tr>
343 <td>connected-components:mean-color=<var>true</var></td>
344 <td>Change the output image from id values to mean color values. Supported in Imagemagick 6.9.2-8.</td>
345 </tr>
346
347 <tr>
348 <td>connected-components:minor-axis-threshold=<var>value</var></td>
349 <td>Merge any region with equivalent ellipse minor axis diameter smaller than <var>value</var> into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.</td>
350 </tr>
351
352 <tr>
353 <td>connected-components:perimeter-threshold=<var>value</var></td>
354 <td>Merge any region with perimeter smaller than <var>value</var> into its surrounding region or largest neighbor. Supported in Imagemagick 7.0.9.24.</td>
355 </tr>
356
357 <tr>
358 <td>connected-components:remove=<var>list-of-ids</var></td>
359 <td>Comma and/or hyphenated list of id values to remove from the output.
360 Supported in Imagemagick 6.9.2-9.</td>
361 </tr>
362
363 <tr>
364 <td>connected-components:remove-colors=<var>red;green;blue</var></td>
365 <td>Remove objects identified by their color in a semicolon separated list.
366 Supported in Imagemagick 6.9.3-0.</td>
367 </tr>
368
369 <tr>
370 <td>connected-components:verbose=<var>true</var></td>
371 <td>Lists id, bounding box, centroid, area, mean color for each region.</td>
372 </tr>
373
374 <tr>
375 <td>convolve:scale=<var>{kernel_scale}[!^] [,{origin_addition}] [%]</var></td>
376 <td>Define the kernel scaling. The special flag ! automatically scales to
377 full dynamic range. The ! flag can be used in combination with a factor or
378 percent. The factor or percent is then applied after the automatic scaling.
379 An example is 50%!. This produces a result 50% darker than full dynamic
380 range scaling. The ^ flag assures the kernel is 'zero-summing', for
381 example when some values are positive and some are negative as in edge
382 detection kernels. The origin addition adds that value to the center
383 pixel of the kernel. This produces an effect that is like adding the image
384 that many times to the result of the filtered image. The typical value
385 is 1 so that the original image is added to the result of the convolution.
386 The default is 0.</td>
387 </tr>
388
389 <tr>
390 <td>deskew:auto-crop=<var>true</var></td>
391 <td>auto crop the image after deskewing.</td>
392 </tr>
393
394 <tr>
395 <td>delegate:bimodal=<var>true</var></td>
396 <td>Specify direct conversion from Postscript to PDF.</td>
397 </tr>
398
399 <tr>
400 <td>distort:scale=<var>value</var></td>
401 <td>Set the output scaling factor for use with <a href="command-line-options.html#distort"
402 >-distort</a>.</td>
403 </tr>
404
405 <tr>
406 <td>distort:viewport=<var>WxH+X+Y</var></td>
407 <td>Set the viewport for use with <a href="command-line-options.html#distort">-distort</a>.</td>
408 </tr>
409
410 <tr>
411 <td>dither:diffusion-amount=<var>X%</var></td>
412 <td>Set the amount of diffusion to use with Floyd-Steinberg diffusion</td>
413 </tr>
414
415 <tr>
416 <td>exif:sync-image=false</td>
417 <td>By default, the resolution of the image is synced with the EXIF profile. Use this define to ignore the EXIF profile.</td>
418 </tr>
419
420 <tr>
421 <td>filename:literal=<var>true</var></td>
422 <td>By default, output filenames can contain <a href="command-line-processing.html#output">embedded formatting characters</a>. Use this option to bypass interpreting embedded formatting characters and instead use the filename literally.</td>
423 </tr>
424
425 <tr>
426 <td>filter:option=<var>value</var></td>
427 <td>Set a filter option for use with <a href="command-line-options.html#resize">-resize</a>.
428 See below for specific options.</td>
429 </tr>
430
431 <tr>
432 <td>filter:b=<var>value</var></td>
433 <td>Redefine the spline factor used for cubic filters such as Cubic,
434 Catrom, Mitchel, and Hermite, as well as the Parzen cubic windowing
435 function. If only one of the b or c values are defined, the other is
436 set so as to generate a 'Cubic-Keys' filter. The meaning of the b and c
437 values was defined in a research paper by Mitchell-Netravali.</td>
438 </tr>
439
440 <tr>
441 <td>filter:blur=<var>factor</var></td>
442 <td>Scale the X axis of the filter (and its window). Use > 1.0 for blurry
443 or &lt; 1.0 for sharp. This should only be used with Gaussian and
444 Gaussian-like filters simple filters, or you may not get the
445 expected results.</td>
446 </tr>
447
448 <tr>
449 <td>filter:c=<var>value</var></td>
450 <td>Redefine the Keys alpha factor used for cubic filters such as Cubic,
451 Catrom, Mitchel, and Hermite, as well as the Parzen cubic windowing
452 function. If only one of the b or c values are defined, the other is
453 set so as to generate a 'Cubic-Keys' filter. The meaning of the b and c
454 values was defined in a research paper by Mitchell-Netravali.</td>
455 </tr>
456
457 <tr>
458 <td>filter:kaiser-alpha=<var>value</var></td>
459 <td>Set the Kaiser window alpha value. When it is multiplied by 'PI',
460 it is equivalent to "kaiser-beta" and will override that setting.
461 It only affects the Kaiser windowing function and does not affect
462 any other attributes.</td>
463 </tr>
464
465 <tr>
466 <td>filter:kaiser-beta=<var>value</var></td>
467 <td>Set the Kaiser window beta value. It only affects Kaiser windowing
468 function and does not affect any other attributes. Before ImageMagick
469 v6.7.6-10, this option was known as "filter:alpha" (an inheritance
470 from the very old "zoom" program). It was changed to bring the function
471 in line with more modern academic research usage and better assign it
472 be more definitive. The default value is 6.5</td>
473 </tr>
474
475 <tr>
476 <td>filter:lobes=<var>count</var></td>
477 <td>Set the number of lobes to use for the Sinc/Bessel filter.
478 This is an alternate way of specifying the 'support' range of the filter,
479 that is designed to be more suited to windowed filters, especially when
480 used for image distorts.</td>
481 </tr>
482
483 <tr>
484 <td>filter:sigma=<var>value</var></td>
485 <td>Set the 'sigma' value used to define the Gaussian filter.
486 The default sigma value is '0.5'. It only affects the Gaussian filter,
487 but does not shrink (but may enlarge) the filter's 'support'.
488 It can be used to generate very small blurs, but without the filter
489 'missing' pixels due to using a small support setting.
490 A larger value of '0.707' (a value of '1/sqrt(2)') is another
491 common setting.</td>
492 </tr>
493
494 <tr>
495 <td>filter:support=<var>radius</var></td>
496 <td>Set the filter support radius. It defines how large the filter
497 should be and thus directly defines how slow the filtered resampling
498 process is. All filters have a default 'preferred' support size.
499 Some filters like Lagrange and windowed filters adjust themselves
500 depending on this value. With simple filters this value either does
501 nothing (but slow the resampling), or will clip the filter function
502 in a detrimental way.</td>
503 </tr>
504
505 <tr>
506 <td>filter:verbose=<var>true</var></td>
507 <td>Enable printing of information about the final internal
508 filter selection to standard output. This includes a commented header
509 on the filter settings being used and data allowing the filter weights
510 to be easily graphed. Note however that some filters are internally
511 defined in terms of other filters. The Lanczos filter, for example,
512 is defined in terms of a SincFast windowed SincFast filter, while
513 the Mitchell filter is defined as a general Cubic family filter
514 with specific 'B' and 'C' settings.</td>
515 </tr>
516
517 <tr>
518 <td>filter:window=<var>filter_function</var></td>
519 <td>The IIR (infinite impulse response) filters Sinc and Jinc are
520 windowed (brought down to zero over the defined support range) with
521 the given filter. This allows you to specify a filter function to be
522 used as a windowing function for these IIR filters. Many of the defined
523 filters are actually windowing functions for these IIR filters. A typical
524 choices is Box, (which effectively turns off the windowing function).</td>
525 </tr>
526
527 <tr>
528 <td>filter:window-support=<var>radius</var></td>
529 <td>Scale the windowing function to this size. This causes
530 the windowing (or self-windowing Lagrange filter) to act is if the
531 support window is larger than what is actually supplied to the calling
532 operator. The filter, however, is still clipped to the true support
533 size that is provided. If unset, this will equal the normal filter
534 support size.</td>
535 </tr>
536
537 <tr>
538 <td>h:format=<var>value</var></td>
539 <td>Set the image encoding format use when writing a C-style header.
540 <var>format</var> can be any output format supported by ImageMagick
541 except for <var>h</var> and <var>magick</var>. If this
542 option is omitted, the default is <var>GIF</var> for PseudoClass
543 images and <var>PNM</var> for DirectClass images.</td>
544 </tr>
545
546 <tr>
547 <td>fourier:normalize=<var>inverse</var></td>
548 <td>Set the location for the FFT/IFT normalization as use by
549 <a href="command-line-options.html#fft">+-fft</a> and <a href="command-line-options.html#ift">+-ift</a>. The default is
550 <var>forward</var>.</td>
551 </tr>
552
553 <tr>
554 <td>frames:step</td>
555 <td>When selecting image <a href="command-line-processing.html">frames</a>, the default is to step one frame at a time through a list, e.g. [0-3], returns frames 0, 1, 2, and 3. Set the step to 2 in this example and we instead get frames 0 and 2.</td>
556 </tr>
557
558 <tr>
559 <td>fx:debug=true</td>
560 <td>Debug <samp>-fx</samp> expression.</td>
561 </tr>
562
563 <tr>
564 <td>hough-lines:accumulator=true</td>
565 <td>Return the accumulator image in addition to the lines image.</td>
566 </tr>
567
568 <tr>
569 <td>json:features</td>
570 <td>Include features in verbose information.</td>
571 </tr>
572
573 <tr>
574 <td>json:limit</td>
575 <td> </td>
576 </tr>
577
578 <tr>
579 <td>json:locate</td>
580 <td> </td>
581 </tr>
582
583 <tr>
584 <td>json:moments</td>
585 <td>Include image moments in verbose information.</td>
586 </tr>
587
588 <tr>
589 <td>kmeans:seed-colors=<var>color-list</var></td>
590 <td>Initialize the colors, where color-list is a semicolon delimited
591 list of seed colors (e.g. red;sRGB(19,167,254);#00ffff)</td>
592 </tr>
593
594 <tr>
595 <td>magick:format=<var>value</var></td>
596 <td>Set the image encoding format use when writing a C-style header.
597 This is the same as "h:format=format" described above.</td>
598 </tr>
599
600 <tr>
601 <td>magnify:method=<var>value</var></td>
602 <td>Choose the method of pixel art magnification. The choices are:
603 eagle2X, eagle3X, eagle3XB, epb2X, fish2X, hq2X, scale2X (default),
604 scale3X, xbr2X</td>
605 </tr>
606
607 <tr>
608 <td>modulate:colorspace=<var>colorspace</var></td>
609 <td>Define the colorspace to use with <a href="command-line-options.html#modulate">-modulate</a>.
610 Any hue-based colorspace may be use. The default is HSL.</td>
611 </tr>
612
613 <tr>
614 <td>morphology:compose=<var>compose-method</var></td>
615 <td>Specify how to merge results generated by multiple<a
616 href="#morphology" >-morphology</a> kernel. The default is none. One
617 typical value is 'lighten' as used, for example, with the sobel edge
618 kernels. </td>
619 </tr>
620
621 <tr>
622 <td>morphology:showKernel=<var>1</var></td>
623 <td>Output (to 'standard error') all the information about a generated <a
624 href="#morphology" >-morphology</a> kernel.</td>
625 </tr>
626
627 <tr>
628 <td>phash:colorspaces=<var>colorspace,colorspace,...</var></td>
629 <td>The perceptual hash defaults to the xyY and HSB colorspaces. When
630 using this define, you can specify up to six alternative colorspaces. (as
631 of IM 7.0.3-8)</td>
632 </tr>
633
634 <tr>
635 <td>phash:normalize=<var>true</var></td>
636 <td>Normalize the phash metric</td>
637 </tr>
638
639 <tr>
640 <td>pixel:compliance=<var>{none|undefined|svg|mvg|x11|xpm}</var></td>
641 <td>In combination with <a href="command-line-options.html#depth">-depth</a>, this define allows color values to be presented in one or combination of: percent, names, 8-bit components, or hex values. 16-bit depth values are generally shown as percents and 8-bit depth values generally are shown as a combination of color names and 8-bit component values.</td>
642 </tr>
643
644 <tr>
645 <td>png:bit-depth=<var>value</var></td>
646 <td> </td>
647 </tr>
648
649 <tr>
650 <td>png:chunk-malloc-max=<var>value</var></td>
651 <td>Set the maximum chunk size.</td>
652 </tr>
653
654 <tr>
655 <td>profile:skip=<var>name1,name2,...</var></td>
656 <td>Skip the named profile[s] when reading the image. Use skip="*" to
657 skip all named profiles in the image. Many named profiles exist,
658 including ICC, EXIF, APP1, IPTC, XMP, and others.</td>
659 </tr>
660
661 <tr>
662 <td>precision:highres-transform=<var>true</var></td>
663 <td>Increase the profile transform precision. Note, there is a slight
664 performance penalty as the high-precision transform is floating point
665 rather than unsigned. It is important to note that results may depend
666 on whether or not the original image already has an included profile.</td>
667 </tr>
668
669 <tr>
670 <td>preserve-timestamp=<var>true|false</var></td>
671 <td>Preserve file timestamp (<samp>mogrify</samp> only).</td>
672 </tr>
673
674 <tr>
675 <td>q-table=<var>quantization-table.xml</var></td>
676 <td>Custom JPEG quantization tables.</td>
677 </tr>
678
679 <tr>
680 <td>quantum:format=<var>type</var></td>
681 <td>Set the type to <samp>floating-point</samp> to specify a floating-point
682 format for raw files (e.g. GRAY:) or for MIFF and TIFF images in HDRI mode
683 to preserve negative values. If <a href="command-line-options.html#depth">-depth</a> 16 is
684 included, the result is a single precision floating point format.
685 If <a href="command-line-options.html#depth">-depth</a> 32 is included, the result is
686 double precision floating point format. For signed pixel data, use <samp>-define quantum:format=signed</samp></td>
687 </tr>
688
689 <tr>
690 <td>quantum:maximum=<var>value</var></td>
691 <td>Maximum value for certain image types such as DCM. If not set, the
692 the maximum value is QuantumRange.</td>
693 </tr>
694
695 <tr>
696 <td>quantum:minimum=<var>value</var></td>
697 <td>Minimum value for certain image types such as DCM. If not set, the
698 the minimum value is zero.</td>
699 </tr>
700
701 <tr>
702 <td>quantum:polarity=<var>photometric-interpretation</var></td>
703 <td>Set the photometric-interpretation of an image (typically for TIFF
704 image file format) to either <samp>min-is-black</samp> (default) or
705 <samp>min-is-white</samp>.</td>
706 </tr>
707
708 <tr>
709 <td>registry:<var>attribute</var>=<var>value</var></td>
710 <td>Set attributes of the image registry, for example,
711 registry:temporary-path=/data/tmp.
712 </td>
713 </tr>
714
715 <tr>
716 <td>registry:date:precision=<var>length</var></td>
717 <td>Set the maximum number of characters printed for any timestamp.</td>
718 </tr>
719
720 <tr>
721 <td>registry:option:pedantic=<var>true | false</var></td>
722 <td>By default, if a command-line option is also a filename (e.g., -quality), it is intrepetted as a filename. Set this option to <samp>true</samp> to interpret it as an option. </td>
723 </tr>
724
725 <tr>
726 <td>registry:precision=<var>value</var></td>
727 <td>Set the maximum number of significant digits to be printed.</td>
728 </tr>
729
730 <tr>
731 <td>resample:verbose=<var>true</var></td>
732 <td>Output the cylindrical filter lookup table created by the EWA
733 (Elliptical Weighted Average) resampling algorithm. Note this table
734 uses a squared radius lookup value. This is typically only used for
735 debugging EWA resampling.
736 </td>
737 </tr>
738
739 <tr>
740 <td>sample:offset=<var>geometry</var></td>
741 <td>Location of the sampling point within the sub-region being sampled,
742 expressed as percentages (see <a href="command-line-options.html#sample" >-sample</a>).</td>
743 </tr>
744
745 <tr>
746 <td>shepards:power=<var>value</var></td>
747 <td>Set the exponent in the Shepard's distortion. The default is 2.</td>
748 </tr>
749
750 <tr>
751 <td>stream:buffer-size=<var>value</var></td>
752 <td>Set the stream buffer size. Select 0 for unbuffered I/O.</td>
753 </tr>
754
755 <tr>
756 <td>trim:percent-background=<var>X%</var></td>
757 <td>Set the amount of background that is tolerated in an edge. It is
758 specified as a percent. 0% means no background is tolerated.
759 50% means an edge can contain up to 50% pixels that are background per
760 the fuzz-factor.</td>
761 </tr>
762
763 <tr>
764 <td>trim:edges={<var>north,east,south,west</var>}</td>
765 <td>Only trim the specified edges of the image.</td>
766 </tr>
767
768 <tr>
769 <td>trim:minSize=<var>geometry</var></td>
770 <td>Limit the trim to the specified size.</td>
771 </tr>
772
773 <tr>
774 <td>type:features=<var>string</var></td>
775 <td>Add a font feature to be used by the RAQM delegate during complex
776 text layout. This is usually used to turn on optional font features that
777 are not enabled by default, but can be also used to turn off default font
778 features. Features include those to control kerning, ligature and Arabic.</td>
779 </tr>
780
781 <tr>
782 <td>type:hinting=<var>false</var></td>
783 <td>Disable font hinting. Proper glyph rendering needs the scaled points
784 to be aligned along the target device pixel grid, through an operation
785 often called hinting. One of its main purposes is to ensure that important
786 widths and heights are respected throughout the whole font. (For example,
787 it is very often desirable that the ‘I’ and the ‘T’ glyphs have their
788 central vertical line of the same pixel width. Hinting also manages
789 features like stems and overshoots, which can cause problems at small
790 pixel sizes.</td>
791 </tr>
792
793 <tr>
794 <td>white-balance:vibrance=<var>value{%}</var></td>
795 <td>Change in color vibrance of the a &amp; b channels.</td>
796 </tr>
797
798 <tr>
799 <td>x:screen=<var>true</var></td>
800 <td>Obtain the image from the root window.</td>
801 </tr>
802
803 <tr>
804 <td>x:silent=<var>true</var></td>
805 <td>Turn off the beep when importing an image.</td>
806 </tr>
807
808 <tr>
809 <td colspan="2"><p></p></td>
810 </tr>
811
812 <tr>
813 <td colspan="2"><p></p></td>
814 </tr>
815
816 <tr>
817 <th align="center" colspan=2>IMAGE FORMATS</th>
818 </tr>
819
820 <tr>
821 <td colspan="2"><p></p></td>
822 </tr>
823
824 <tr>
825 <td>bmp3:alpha=<var>true|false</var></td>
826 <td>Include any alpha channel when writing in the BMP image format.</td>
827 </tr>
828
829 <tr>
830 <td>bmp:format=<var>value</var></td>
831 <td>Valid values are <var>bmp2</var>, <var>bmp3</var>,
832 and <var>bmp4</var>. This option can be useful when the
833 method of prepending "BMP2:" to the output filename is inconvenient or
834 is not available, such as when using the <a href="mogrify.html">mogrify</a>
835 utility.</td>
836 </tr>
837
838 <tr>
839 <td>bmp:subtype=<var>value</var></td>
840 <td>BMP channel depth subtypes. The choices are: RGB555, RGB565, ARGB4444,
841 ARGB1555. Only support in BMP (BMP4). BMP3 and BMP2 do not contain header
842 fields to support these options.</td>
843 </tr>
844
845 <tr>
846 <td>{caption,label}:{max,start}-pointsize=<var>value</var></td>
847 <td>This sets the bounding pointsize to use when searching for the maximum pointsize where the text annotation still fits within the image boundaries.</td>
848 </tr>
849
850 <tr>
851 <td>dcm:display-range=<var>reset</var></td>
852 <td>Set the display range to the minimum and maximum pixel values for the
853 DCM image format.</td>
854 </tr>
855
856 <tr>
857 <td>dcm:rescale=<var>true</var></td>
858 <td>Enable interpretation of the rescale slope and intercept settings
859 in the file.</td>
860 </tr>
861
862 <tr>
863 <td>dcm:rescale=<var>true</var></td>
864 <td>Enable interpretation of the rescale slope and intercept settings
865 in the file.</td>
866 </tr>
867
868 <tr>
869 <td>dcm:window=<var>CxW</var></td>
870 <td>Specify the dcm window center and width.</td>
871 </tr>
872
873 <tr>
874 <td>dds:cluster-fit=<var>true|false</var></td>
875 <td>Enable the DDS cluster-fit.</td>
876 </tr>
877
878 <tr>
879 <td>dds:compression=<var>dxt1|dxt5|none</var></td>
880 <td>Set the dds compression.</td>
881 </tr>
882
883 <tr>
884 <td>dds:mipmaps=<var>value</var></td>
885 <td>Set the dds number of mipmaps.</td>
886 </tr>
887
888 <tr>
889 <td>dds:weight-by-alpha=<var>true|false</var></td>
890 <td>Enable the DDS alpha weighting.</td>
891 </tr>
892
893 <tr>
894 <td>dng:max-raw-memory=<var>value</var></td>
895 <td>Stop processing if raw buffer size grows larger than that value (in megabytes). Default is 8192.</td>
896 </tr>
897
898 <tr>
899 <td>dng:no-auto-bright=<var>true</var></td>
900 <td>Disable the histogram-based white level.</td>
901 </tr>
902
903 <tr>
904 <td>dng:output-color=<var>value</var></td>
905 <td>Select the output colorspace. The choices are:
906 0 - Raw color (unique to each camera),
907 1 - sRGB D65 (default),
908 2 - Adobe RGB (1998) D65,
909 3 - Wide Gamut RGB D65,
910 4 - Kodak ProPhoto RGB D65,
911 5 - XYZ,
912 6 - ACES</td>
913 </tr>
914
915 <tr>
916 <td>dng:read-thumbnail=<var>true</var></td>
917 <td>Read the embedded thumbnail and store it as a profile called 'dng:thumbnail'.</td>
918 </tr>
919
920 <tr>
921 <td>dng:use-auto-wb=<var>true</var></td>
922 <td>Compute the white balance by averaging the entire image.</td>
923 </tr>
924
925 <tr>
926 <td>dng:use-camera-wb=<var>true</var></td>
927 <td>Uses the white balance specified by the camera. Default is true.</td>
928 </tr>
929
930 <tr>
931 <td>dot:layout-engine=<var>value</var></td>
932 <td>Specify the layout engine for the DOT image format (e.g., <samp>neato</samp>).</td>
933 </tr>
934
935 <tr>
936 <td>eps:use-cropbox=<var>true</var></td>
937 <td>Force Imagemagick to respect the crop box.</td>
938 </tr>
939
940 <tr>
941 <td>exr:color-type=<var>value</var></td>
942 <td>Specify the color type for the EXR format: RGB, RGBA, YC, YCA, Y,
943 YA, R, G, B, A).</td>
944 </tr>
945
946 <tr>
947 <td>fpx:view=<var>value</var></td>
948 <td>Specify the FlashPix viewing object, which contains the specification
949 of a viewing transform. The viewing transform enables applications to
950 represent a set of simple edits as a list of "commands" which are applied
951 to the image in real time without altering the original image.</td>
952 </tr>
953
954 <tr>
955 <td>ftxt:chsep=<var>value</var></td>
956 <td>A single text character that separates channel values for reading and
957 writing. Default: "," (Comma).</td>
958 </tr>
959
960 <tr>
961 <td>ftxt:format=<var>value</var></td>
962 <td>The format string for writing and reading. Default: "\x,\y:\c".
963 For escapes \x etc, see
964 [ftxt: formatted text](http://im.snibgo.com/fmttxt.htm).</td>
965 </tr>
966
967 <tr>
968 <td>ftxt:hasalpha=<var>value</var></td>
969 <td>Whether the text has an alpha channel, for reading only.
970 Default: false.</td>
971 </tr>
972
973 <tr>
974 <td>ftxt:nummeta=<var>value</var></td>
975 <td>The number of meta channels, for reading only. Default 0 (Zero).</td>
976 </tr>
977
978 <tr>
979 <td>heic:chroma=<var>value</var></td>
980 <td>Set the HEIC chroma parameter. Possible values are: "420", "422", "444". Default is "420", except output with preserved CICP matrix coefficient 0 uses "444" when this define is omitted because identity matrix CICP cannot be written with chroma subsampling.</td>
981 </tr>
982
983 <tr>
984 <td>heic:cicp=<var>value</var></td>
985 <td>Set the HEIC color primaries, transfer characteristics, matrix coefficients, and full range flag. Use <samp>1/13/6/1</samp> for full range BT.709. If omitted, the source HEIC CICP value is preserved when available unless <samp>heic:preserve-cicp=false</samp> is set. When preserving source matrix coefficient 0 with <samp>heic:chroma=420</samp> or <samp>422</samp>, ImageMagick writes matrix coefficient 6 (BT.601) for the subsampled YCbCr output. Explicit <samp>heic:cicp</samp> values with matrix coefficient 0 require <samp>heic:chroma=444</samp>. Requires libheif 1.17.0 or later. See ISO/IEC 14496-12:2022 standard for a description of these fields and values.</td>
986 </tr>
987
988 <tr>
989 <td>heic:clli=<var>value</var></td>
990 <td>Set the HEIC content light level information as <samp>MaxCLL,MaxFALL</samp>. If omitted, the source HEIC content light level is preserved when available unless <samp>heic:preserve-clli=false</samp> is set. Requires libheif 1.20.0 or later.</td>
991 </tr>
992
993 <tr>
994 <td>heic:depth-image=<var>true</var></td>
995 <td>Extract the depth image if the container has one.</td>
996 </tr>
997
998 <tr>
999 <td>heic:max-number-of-tiles=<var>value</var></td>
1000 <td>Sets the maximum number of tiles of a HEIC image.</td>
1001 </tr>
1002
1003 <tr>
1004 <td>heic:max-bayer-pattern-pixels=<var>value</var></td>
1005 <td>Sets the maximum bayer pattern size in pixels of a HEIC image.</td>
1006 </tr>
1007
1008 <tr>
1009 <td>heic:max-items=<var>value</var></td>
1010 <td>Sets the maximum number of items in a box of a HEIC image.</td>
1011 </tr>
1012
1013 <tr>
1014 <td>heic:max-components=<var>value</var></td>
1015 <td>Sets the maximum number of components of a HEIC image.</td>
1016 </tr>
1017
1018 <tr>
1019 <td>heic:max-iloc-extents-per-item=<var>value</var></td>
1020 <td>Sets the maximum number of extents in iloc box of a HEIC image.</td>
1021 </tr>
1022
1023 <tr>
1024 <td>heic:max-size-entity-group=<var>value</var></td>
1025 <td>Sets the maximum size of an entity group of a HEIC image.</td>
1026 </tr>
1027
1028 <tr>
1029 <td>heic:mmax-children-per-box=<var>value</var></td>
1030 <td>Sets the maximum number of children per box of a HEIC image.</td>
1031 </tr>
1032
1033 <tr>
1034 <td>heic:preserve-orientation=<var>true</var></td>
1035 <td>Preserve the original EXIF orientation during HEIC decoding and rotate
1036 the pixels accordingly. By default, EXIF orientation is reset to "1" to
1037 match the actual orientation of pixels in HEIC.
1038 </td>
1039 </tr>
1040
1041 <tr>
1042 <td>heic:preserve-cicp=<var>false</var></td>
1043 <td>Do not preserve the source HEIC CICP color information when writing HEIC output. Requires libheif 1.17.0 or later.</td>
1044 </tr>
1045
1046 <tr>
1047 <td>heic:preserve-clli=<var>false</var></td>
1048 <td>Do not preserve the source HEIC content light level information when writing HEIC output. Requires libheif 1.20.0 or later.</td>
1049 </tr>
1050
1051 <tr>
1052 <td>heic:speed=<var>value</var></td>
1053 <td>Set the HEIC speed parameter. Integer value from 0-9. Default is 5.</td>
1054 </tr>
1055
1056 <tr>
1057 <td>icon:auto-resize</td>
1058 <td>Automatically stores multiple sizes when writing an ico image
1059 (requires a 256x256 input image).</td>
1060 </tr>
1061
1062 <tr>
1063 <td>identify:convex-hull=<var>true</var></td>
1064 <td>Display convex hull & minimum bounding box.</td>
1065 </tr>
1066
1067 <tr>
1068 <td>identify:locate=<var>value</var></td>
1069 <td>Display minimum or maximum pixel locations. Valid values are <samp>minimum</samp> or <samp>maximum</samp>. The default is <samp>maximum</samp>.</td>
1070 </tr>
1071
1072 <tr>
1073 <td>identify:limit=<var>value</var></td>
1074 <td>The maximum number of pixel locations to display when using <samp>identify:locate</samp>.</td>
1075 </tr>
1076
1077 <tr>
1078 <td>jp2:layer-number=<var>value</var></td>
1079 <td>Set the maximum number of quality layers to decode. Same for JPT, JC2,
1080 and J2K.</td>
1081 </tr>
1082
1083 <tr>
1084 <td>jp2:number-resolutions=<var>value</var></td>
1085 <td>Set the number of resolutions to encode.Same for JPT, JC2, and
1086 J2K.</td>
1087 </tr>
1088
1089 <tr>
1090 <td>jp2:progression-order=<var>value</var></td>
1091 <td>Choose from LRCP, RLCP, RPCL, PCRL or CPRL. Same for JPT, JC2, and
1092 J2K.</td>
1093 </tr>
1094
1095 <tr>
1096 <td>jp2:quality=<var>value,value...</var></td>
1097 <td>Set the quality layer PSNR, given in dB. The order is from left to
1098 right in ascending order. The default is a single lossless quality layer.
1099 Same for JPT, JC2, and J2K.</td>
1100 </tr>
1101
1102 <tr>
1103 <td>jp2:rate=<var>value</var></td>
1104 <td>Specify the compression factor to use while writing JPEG-2000 files.
1105 The compression factor is the reciprocal of the compression ratio. The
1106 valid range is 0.0 to 1.0, with 1.0 indicating lossless compression. If
1107 defined, this value overrides the -quality setting. A quality setting
1108 of 75 results in a rate value of 0.06641. Same for JPT, JC2, and J2K.</td>
1109 </tr>
1110
1111 <tr>
1112 <td>jp2:reduce-factor=<var>value</var></td>
1113 <td>Set the number of highest resolution levels to be discarded.Same for
1114 JPT, JC2, and J2K.</td>
1115 </tr>
1116
1117 <tr>
1118 <td>jpeg:arithmetic-coding=<var>on|off</var></td>
1119 <td>enable/disable Huffman optimization.</td>
1120 </tr>
1121
1122 <tr>
1123 <td>jpeg:block-smoothing=<var>on|off</var></td>
1124 <td> </td>
1125 </tr>
1126
1127 <tr>
1128 <td>jpeg:colors=<var>value</var></td>
1129 <td>Set the desired number of colors and let the JPEG encoder do the
1130 quantizing.</td>
1131 </tr>
1132
1133 <tr>
1134 <td>jpeg:dct-method=<var>value</var></td>
1135 <td>Choose from <samp>default</samp>, <samp>fastest</samp>,
1136 <samp>float</samp>, <samp>ifast</samp>, and <samp>islow</samp>.</td>
1137 </tr>
1138
1139 <tr>
1140 <td>jpeg:extent=<var>value</var></td>
1141 <td>Restrict the maximum JPEG file size, for example <samp>-define
1142 jpeg:extent=400KB</samp>. The JPEG encoder will search for the highest
1143 compression quality level that results in an output file that does not
1144 exceed the value. The <samp>-quality</samp> option also will be respected
1145 starting with version 6.9.2-5. Between 6.9.1-0 and 6.9.2-4, add -quality
1146 100 in order for the jpeg:extent to work properly. Prior to 6.9.1-0, the
1147 -quality setting was ignored.</td>
1148 </tr>
1149
1150 <tr>
1151 <td>jpeg:fancy-upsampling=<var>on|off</var></td>
1152 <td> </td>
1153 </tr>
1154
1155 <tr>
1156 <td>jpeg:optimize-coding=<var>on|off</var></td>
1157 <td> </td>
1158 </tr>
1159
1160 <tr>
1161 <td>jpeg:q-table=<var>table</var></td>
1162 <td> </td>
1163 </tr>
1164
1165 <tr>
1166 <td>jpeg:restart-interval=<var>value</var></td>
1167 <td>Set the restart interval to `interval` MCU blocks.</td>
1168 </tr>
1169
1170 <tr>
1171 <td>jpeg:sampling-factor=<var>sampling-factor-string</var></td>
1172 <td> </td>
1173 </tr>
1174
1175 <tr>
1176 <td>jpeg:size=<var>geometry</var></td>
1177 <td>Set the size hint of a JPEG image, for
1178 example, <samp>-define jpeg:size=128x128</samp>.
1179 It is most useful for increasing performance and reducing the memory
1180 requirements when reducing the size of a large JPEG image.</td>
1181 </tr>
1182
1183 <tr>
1184 <td>jxl:decoding-speed=<var>value</var></td>
1185 <td>Set the jpeg-xl decoding speed. Valid values are in the range of 0 (slowest) to 4 (fastest, at the cost of some quality/density).</td>
1186 </tr>
1187
1188 <tr>
1189 <td>jxl:effort=<var>value</var></td>
1190 <td>Set the jpeg-xl encoding effort. Valid values are in the range of 3 (falcon) to 9 (tortoise).</td>
1191 </tr>
1192
1193 <tr>
1194 <td>minimum-bounding-box:orientation=<var>value</var></td>
1195 <td>Find smallest perpendicular distance from edge to origin. Valid values are <samp>horizontal</samp>
1196 and <samp>vertical</samp>.
1197 </td>
1198 </tr>
1199
1200 <tr>
1201 <td>mng:need-cacheoff</td>
1202 <td>turn playback caching off for streaming MNG.</td>
1203 </tr>
1204
1205 <tr>
1206 <td>pcl:fit-to-page=<var>true</var></td>
1207 <td> </td>
1208 </tr>
1209
1210 <tr>
1211 <td>pdf:author=<var>author</var></td>
1212 <td>Sets the author of the document</td>
1213 </tr>
1214
1215 <tr>
1216 <td>pdf:create-epoch=<var>seconds</var></td>
1217 <td>Sets the creation time of the document</td>
1218 </tr>
1219
1220 <tr>
1221 <td>pdf:creator=<var>creator</var></td>
1222 <td>Sets the creator of the document</td>
1223 </tr>
1224
1225 <tr>
1226 <td>pdf:fit-page=<var>geometry</var></td>
1227 <td><var>Geometry</var> specifies the scaling dimensions for resizing when the PDF is being read. The geometry is either WxH{%} or page size. No offsets are allowed. (introduced in IM 6.8.8-8)</td>
1228 </tr>
1229
1230 <tr>
1231 <td>pdf:fit-to-page=<var>true</var></td>
1232 <td> </td>
1233 </tr>
1234
1235 <tr>
1236 <td>pdf:hide-annotations=<var>true</var></td>
1237 <td>hide annotations associated with the page Annots key.</td>
1238 </tr>
1239
1240 <tr>
1241 <td>pdf:interpolate=<var>true</var></td>
1242 <td>enable interpolation while rendering</td>
1243 </tr>
1244
1245 <tr>
1246 <td>pdf:keywords=<var>keywords</var></td>
1247 <td>Sets the keywords of the document</td>
1248 </tr>
1249
1250 <tr>
1251 <td>pdf:modify-epoch=<var>seconds</var></td>
1252 <td>Sets the modification time of the document</td>
1253 </tr>
1254
1255 <tr>
1256 <td>pdf:no-identifier=<var>true</var></td>
1257 <td>Do not generate the ID entry</td>
1258 </tr>
1259
1260 <tr>
1261 <td>pdf:page-direction=<var>right-to-left</var></td>
1262 <td> </td>
1263 </tr>
1264
1265 <tr>
1266 <td>pdf:printed=<var>true</var></td>
1267 <td>Determines whether the file should be displayed or printed using the "screen" or "printer" options for annotations and images.</td>
1268 </tr>
1269
1270 <tr>
1271 <td>pdf:producer=<var>producer</var></td>
1272 <td>Sets the producer of the document</td>
1273 </tr>
1274
1275 <tr>
1276 <td>pdf:subject=<var>subject</var></td>
1277 <td>Sets the subject of the document</td>
1278 </tr>
1279
1280 <tr>
1281 <td>pdf:stop-on-error=<var>true</var></td>
1282 <td> </td>
1283 </tr>
1284
1285 <tr>
1286 <td>pdf:thumbnail=<var>false</var></td>
1287 <td>Generate image thumbnails when saving a PDF file.</td>
1288 </tr>
1289
1290 <tr>
1291 <td>pdf:title=<var>title</var></td>
1292 <td>Sets the title of the document</td>
1293 </tr>
1294
1295 <tr>
1296 <td>pdf:use-cropbox=<var>true</var></td>
1297 <td> </td>
1298 </tr>
1299
1300 <tr>
1301 <td>pdf:use-trimbox=<var>true</var></td>
1302 <td> </td>
1303 </tr>
1304
1305 <tr>
1306 <td>png:color-type=<var>value</var></td>
1307 <td>Desired bit-depth and color-type for PNG output. You can force the
1308 PNG encoder to use a different bit-depth and color-type than it would have
1309 normally selected, but only if this does not cause any loss of image
1310 quality. Any attempt to reduce image quality is treated as an error and no
1311 PNG file is written. E.g., if you have a 1-bit black-and-white image, you
1312 can use these "defines" to cause it to be written as an 8-bit grayscale,
1313 indexed, or even a 64-bit RGBA. But if you have a 16-million color image,
1314 you cannot force it to be written as a grayscale or indexed PNG. If you
1315 wish to do this, you must use the appropriate <a href="command-line-options.html#depth">-depth</a>,
1316 <a href="command-line-options.html#colors">-colors</a>, or <a href="command-line-options.html#type">-type</a> directives to
1317 reduce the image quality prior to using the PNG encoder. Note that in
1318 indexed PNG files, "bit-depth" refers to the number of bits per index,
1319 which can be 1, 2, 4, or 8. In such files, the color samples always have
1320 8-bit depth.</td>
1321 </tr>
1322
1323 <tr>
1324 <td>png:compression-filter=<var>value</var></td>
1325 <td>Valid values are 0 through 9. 0-4 are the corresponding PNG filters,
1326 5 means adaptive filtering except for images with a colormap, 6 means
1327 adaptive filtering for all images, 7 means MNG "loco" compression, 8 means
1328 Z_RLE strategy with adaptive filtering, and 9 means Z_RLE strategy with no
1329 filtering.</td>
1330 </tr>
1331
1332 <tr>
1333 <td>png:compression-level=<var>value</var></td>
1334 <td>Valid values are 0 through 9, with 0 providing the least, but fastest
1335 compression and 9 usually providing the best and always the slowest.</td>
1336 </tr>
1337
1338 <tr>
1339 <td>png:compression-strategy=<var>value</var></td>
1340 <td>Valid values are 0 through 4, meaning default, filtered, huffman_only,
1341 rle, and fixed ZLIB compression strategy. If you are using an old zlib
1342 that does not support Z_RLE (before 1.2.0) or Z_FIXED (before 1.2.2.2),
1343 values 3 and 4, respectively, will use the zlib default strategy
1344 instead.</td>
1345 </tr>
1346
1347 <tr>
1348 <td>png:format=<var>value</var></td>
1349 <td> valid values are <var>png8</var>, <var>png24</var>,
1350 <var>png32</var>, <var>png48</var>,
1351 <var>png64</var>, and <var>png00</var>.
1352 This property is useful for specifying
1353 the specific PNG format to be used, when the usual method of prepending the
1354 format name to the output filename is inconvenient, such as when writing
1355 a PNG-encoded ICO file or when using <a href="mogrify.html">mogrify</a>.
1356 Value = <var>png8</var> reduces the number of colors to 256,
1357 only one of which may be fully transparent, if necessary. The other
1358 values do not force any reduction of quality; it is an error to request
1359 a format that cannot represent the image data without loss (except that
1360 it is allowed to reduce the bit-depth from 16 to 8 for all formats).
1361 Value = <var>png24</var> and <var>png48</var>
1362 allow transparency, only if a single color is fully transparent and that
1363 color does not also appear in an opaque pixel; such transparency is
1364 written in a PNG <samp>tRNS</samp> chunk.
1365 Value = <var>png00</var> causes the image to inherit its
1366 color-type and bit-depth from the input image, if the input was also
1367 a PNG.</td>
1368 </tr>
1369
1370 <tr>
1371 <td>png:exclude-chunk=<var>value</var></td>
1372 <td> </td>
1373 </tr>
1374 <tr>
1375 <td>png:include-chunk=<var>value</var></td>
1376 <td>ancillary chunks to be excluded from or included in PNG output.
1377
1378 <p>The <var>value</var> can be the name of a PNG chunk-type such
1379 as <var>bKGD</var>, a comma-separated list of chunk-names
1380 (which can include the word <var>date</var>, the word
1381 <var>all</var>, or the word <var>none</var>).
1382 Although PNG chunk-names are case-dependent, you can use all lowercase
1383 names if you prefer.</p>
1384
1385 <p>The "include-chunk" and "exclude-chunk" lists only affect the behavior
1386 of the PNG encoder and have no effect on the PNG decoder.</p>
1387
1388 <p>As a special case, if the <samp>sRGB</samp> chunk is excluded and
1389 the <samp>gAMA</samp> chunk is included, the <samp>gAMA</samp> chunk will
1390 only be written if gamma is not 1/2.2, since most decoders do not assume
1391 sRGB for gAMA=0.45455 when no colorspace information is included in
1392 the PNG file. Because the list is processed from left to right, you
1393 can achieve this with a single define:</p>
1394
1395 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>-define png:include-chunk=none,gAMA
1396 </samp></pre>
1397
1398 <p>As a special case, if the <samp>sRGB</samp> chunk is not excluded and
1399 the PNG encoder recognizes that the image contains the sRGB ICC profile,
1400 the PNG encoder will write the <samp>sRGB</samp> chunk instead of the
1401 entire ICC profile. To force the PNG encoder to write the sRGB
1402 profile as an <samp>iCCP</samp> chunk in the output PNG instead of the
1403 <samp>sRGB</samp> chunk, exclude the <samp>sRGB</samp> chunk.</p>
1404
1405 <p>The critical PNG chunks <samp>IHDR</samp>, <samp>PLTE</samp>,
1406 <samp>IDAT</samp>, and <samp>IEND</samp> cannot be excluded. Any such
1407 entries appearing in the list will be ignored.</p>
1408
1409 <p>If the ancillary PNG <samp>tRNS</samp> chunk is excluded and the
1410 image has transparency, the PNG colortype is forced to be 4 or 6
1411 (GRAY_ALPHA or RGBA). If the image is not transparent, then the
1412 <samp>tRNS</samp> chunk isn't written anyhow, and there is no effect
1413 on the PNG colortype of the output image.</p>
1414
1415 <p>The <a href="command-line-options.html#strip">-strip</a>
1416 option does the equivalent of the following for PNG output:</p>
1417
1418 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>-define png:exclude-chunk=EXIF,iCCP,iTXt,sRGB,tEXt,zCCP,zTXt,date</samp></pre>
1419
1420 <p>The default behavior is to include all known PNG ancillary chunks
1421 plus ImageMagick's private <samp>vpAg</samp> ("virtual page") chunk,
1422 and to exclude all PNG chunks that are unknown to ImageMagick,
1423 regardless of their PNG "copy-safe" status as described in the
1424 PNG specification.</p>
1425
1426 <p>Any chunk names that are not known to ImageMagick are ignored
1427 if they appear in either the "include-chunk" or "exclude-chunk" list.
1428 The ancillary chunks currently known to ImageMagick are
1429 <samp>bKGD</samp>, <samp>cHRM</samp>, <samp>gAMA</samp>, <samp>iCCP</samp>,
1430 <samp>oFFs</samp>, <samp>orNT</samp>, <samp>pHYs</samp>, <samp>sRGB</samp>, <samp>tEXt</samp>,
1431 <samp>tRNS</samp>, <samp>vpAg</samp>, and <samp>zTXt</samp>.</p>
1432
1433 <p>You can also put <samp>date</samp> in the list to include or exclude
1434 the "Date:create" and "Date:modify" text chunks that ImageMagick normally
1435 inserts in the output PNG.</p></td>
1436 </tr>
1437
1438 <tr>
1439 <td>png:ignore-crc[=<var>true</var>]</td>
1440 <td>When you know your image has no CRC or ADLER32 errors, this can speed
1441 up decoding. It is also helpful in debugging bug reports from "fuzzers".</td>
1442 </tr>
1443
1444 <tr>
1445 <td>png:preserve-colormap[=<var>true</var>]</td>
1446 <td>Use the existing image->colormap. Normally the PNG encoder will
1447 try to optimize the palette, eliminating unused entries and putting
1448 the transparent colors first. If this flag is set, that behavior
1449 is suppressed.</td>
1450 </tr>
1451
1452 <tr>
1453 <td>png:preserve-iCCP[=<var>true</var>]</td>
1454 <td>By default, the PNG decoder and encoder examine any ICC profile
1455 that is present, either from an <samp>iCCP</samp> chunk in the PNG
1456 input or supplied via an option, and if the profile is recognized
1457 to be the sRGB profile, converts it to the <samp>sRGB</samp> chunk.
1458 You can use <samp>-define png:preserve-iCCP</samp> to prevent
1459 this from happening; in such cases the <samp>iCCP</samp> chunk
1460 will be read or written and no <samp>sRGB</samp> chunk will be
1461 written. There are some ICC profiles that claim to be sRGB but
1462 have various errors that cause them to be rejected by libpng16; such
1463 profiles are recognized anyhow and converted to the <samp>sRGB</samp>
1464 chunk, but are rejected if the <samp>-define png:preserve-iCCP</samp>
1465 is present. Note that not all "sRGB" ICC profiles are recognized
1466 yet; we will add them to the list as we encounter them.</td>
1467 </tr>
1468
1469 <tr>
1470 <td>png:swap-bytes[=<var>true</var>]</td>
1471 <td>The PNG specification requires that any multi-byte integers be stored
1472 in network byte order (MSB-LSB endian). This option allows you to
1473 fix any invalid PNG files that have 16-bit samples stored incorrectly
1474 in little-endian order (LSB-MSB). The "-define png:swap-bytes" option
1475 must appear before the input filename on the commandline. The swapping
1476 is done during the libpng decoding operation.</td>
1477 </tr>
1478
1479 <tr>
1480 <td>ps:imagemask</td>
1481 <td>If the ps:imagemask flag is defined, the PS3 and EPS3 coders will
1482 create Postscript files that render bilevel images with the Postscript
1483 imagemask operator instead of the image operator.</td>
1484 </tr>
1485
1486 <tr>
1487 <td>psd:additional-info=all|selective</td>
1488 <td>This option should only be used when converting from a PSD file to
1489 another PSD file. This should be placed after the image is read. The two
1490 options are 'all' and 'selective'. The 'selective' option will preserve
1491 all additional information that is not related to the geometry of the
1492 image. The 'all' option should only be used when the geometry of the
1493 image has not been changed. This option is helpful when transferring
1494 non-simple layers, such as adjustment layers from the input PSD file to
1495 the output PSD file. If this option is not used, the additional
1496 information will not be preserved. This define is available as of
1497 Imagemagick version 6.9.5-8.
1498 </td>
1499 </tr>
1500
1501 <tr>
1502 <td>psd:alpha-unblend=off</td>
1503 <td>Disable new automatic un-blending of transparency with the base image
1504 for the flattened layer 0 before adding the alpha channel to the output
1505 image. This define must be placed before the input psd image. (Available
1506 as of IM 6.9.2.5). The automatic un-blending is new to IM 6.9.2.5 and
1507 prevents the transparency from being applied twice in the output
1508 image. This option should be set before reading the image.</td>
1509 </tr>
1510
1511 <tr>
1512 <td>psd:preserve-opacity-mask=<var>true</var></td>
1513 <td>This option should only be used when converting from a PSD file to
1514 another PSD file. It will preserve the opacity mask of a layer and add it
1515 back to the layer when the image is saved. Setting this to 'true' will
1516 enable this feature. This define is available as of Imagemagick version
1517 6.9.5-10.
1518 </td>
1519 </tr>
1520
1521 <tr>
1522 <td>psd:write-layers=<var>false</var></td>
1523 <td>This option can be used to disable writing the layers of a PSD file.
1524 </td>
1525 </tr>
1526
1527 <tr>
1528 <td>psd:replicate-profile=<var>true</var></td>
1529 <td>This option can be used to copy the image profile to all the images
1530 instead of only the first image that is returned.
1531 </td>
1532 </tr>
1533
1534 <tr>
1535 <td>ptif:pyramid=<var>min-base</var>x<var>levels</var></td>
1536 <td>Specify the min-base and number of levels of the pyramid, e.g., 64x4.</td>
1537 </tr>
1538
1539 <tr>
1540 <td>svg:embedding=<var>true</var></td>
1541 <td>Enable embedding of a another SVG for which you trust the source. This is disabled by default as it can be a source of infinite recusion.</td>
1542 </tr>
1543
1544 <tr>
1545 <td>svg:parse-huge=<var>true</var></td>
1546 <td>Enable rendering of a very large SVG for which you trust the source.</td>
1547 </tr>
1548
1549 <tr>
1550 <td>svg:substitute-entities=<var>true</var></td>
1551 <td>Enable entity substitution if you trust the source.</td>
1552 </tr>
1553
1554 <tr>
1555 <td>tga:preserve-orientation=<var>true</var></td>
1556 <td>Preserve the image orientation.</td>
1557 </tr>
1558
1559 <tr>
1560 <td>tga:write-footer=<var>true</var></td>
1561 <td>Enable writing of an empty optional footer.</td>
1562 </tr>
1563
1564 <tr>
1565 <td>tiff:alpha=<var>associated|unassociated|unspecified</var></td>
1566 <td>Specify the alpha extra samples as associated, unassociated or
1567 unspecified.</td>
1568 </tr>
1569
1570 <tr>
1571 <td>tiff:assume-alpha=<var>true|false</var></td>
1572 <td>Assume undeclared extra channels are alpha.</td>
1573 </tr>
1574
1575 <tr>
1576 <td>tiff:endian=<var>msb|lsb</var></td>
1577 <td> </td>
1578 </tr>
1579
1580 <tr>
1581 <td>tiff:exif-properties=<var>false</var></td>
1582 <td>Disable reading the EXIF properties.</td>
1583 </tr>
1584
1585 <tr>
1586 <td>tiff:fill-order=<var>msb|lsb</var></td>
1587 <td> </td>
1588 </tr>
1589
1590 <tr>
1591 <td>tiff:peg-tables-mode=<var>0-3</var></td>
1592 <td>Set the TIFFTAG_JPEGTABLESMODE when the tiff file is written with
1593 jpeg compression</td>
1594 </tr>
1595
1596 <tr>
1597 <td>tiff:gps-properties=<var>false</var></td>
1598 <td>Disable reading the GPS properties.</td>
1599 </tr>
1600
1601 <tr>
1602 <td>tiff:ignore-layers=<var>true</var></td>
1603 <td>Ignore the Photoshop layers.</td>
1604 </tr>
1605
1606 <tr>
1607 <td>tiff:ignore-tags=<var>comma-separate-list-of-tag-IDs</var></td>
1608 <td>Allow one or more tag ID values to be ignored.</td>
1609 </tr>
1610
1611 <tr>
1612 <td>tiff:predictor=<var>[1, 2 or 3]</var></td>
1613 <td>A mathematical operator that is applied to the image data before an
1614 encoding scheme is applied. The general idea is that subsequent pixels of
1615 an image resemble each other. Thus, substracting the information from a
1616 pixel that is already contained in previous one is likely to reduce its
1617 information density considerably and aid subsequent compression.
1618 1 = No prediction scheme used before coding. 2 = Horizontal differencing.
1619 3 = Floating point horizontal differencing.</td>
1620 </tr>
1621
1622 <tr>
1623 <td>tiff:preserve-compression=<var>true</var></td>
1624 <td>Preserve compression of the source image.</td>
1625 </tr>
1626
1627 <tr>
1628 <td>tiff:rows-per-strip=<var>value</var></td>
1629 <td>Set the number of rows per strip.</td>
1630 </tr>
1631
1632 <tr>
1633 <td>tiff:tile-geometry=<var>WxH</var></td>
1634 <td>Set the tile size for pyramid tiffs. Requires the suffix
1635 PTIF: before the outputname.</td>
1636 </tr>
1637
1638 <tr>
1639 <td>uhdr:gainmap-gamma=<var>value</var></td>
1640 <td>Set gainmap image encoding gamma. Must be greater than 0.0. Used during
1641 encoding. Optional. Default value is 1.0.</td>
1642 </tr>
1643
1644 <tr>
1645 <td>uhdr:gainmap-quality=<var>value</var></td>
1646 <td>Set gainmap image encoding quality factor. The valid range is 1 to 100,
1647 with 1 indicating lowest image quality or highest compression and 100
1648 indicating best quality or least effective compression. Used during
1649 encoding. Optional. Default value is 95.</td>
1650 </tr>
1651
1652 <tr>
1653 <td>uhdr:gainmap-max-content-boost=<var>value</var></td>
1654 <td>Specify the maximum allowed ratio of the linear luminance for the target
1655 HDR rendition relative to (divided by) that of the SDR image, at a given
1656 pixel. In other words, this specifies how much brighter a pixel can get,
1657 when shown on an HDR display, relative to the SDR rendition. Must be
1658 greater than 0.0. Used during encoding. Optional. If not configured,
1659 this is computed dynamically based on the input.</td>
1660 </tr>
1661
1662 <tr>
1663 <td>uhdr:gainmap-min-content-boost=<var>value</var></td>
1664 <td>Specify the minimum allowed ratio of the linear luminance for the target
1665 HDR rendition relative to (divided by) that of the SDR image, at a given
1666 pixel. In other words, this specifies how much darker a pixel can get,
1667 when shown on an HDR display, relative to the SDR rendition. Must be
1668 greater than 0.0. Used during encoding. Optional. If not configured,
1669 this is computed dynamically based on the input.</td>
1670 </tr>
1671
1672 <tr>
1673 <td>uhdr:hdr-color-gamut=<var>{bt709|display_p3|bt2100}</var></td>
1674 <td>Set input HDR intent color gamut. Used during encoding. Required.</td>
1675 </tr>
1676
1677 <tr>
1678 <td>uhdr:hdr-color-transfer=<var>{hlg|pq|linear}</var></td>
1679 <td>Set input HDR intent color transfer. Used during encoding. Required.</td>
1680 </tr>
1681
1682 <tr>
1683 <td>uhdr:output-color-transfer=<var>{hlg|pq|linear|srgb}</var></td>
1684 <td>Set the target display transfer characteristics on which the
1685 ultrahdr image is rendered. Used during decoding. Required.
1686 If <em>srgb</em>, only sdr intent is decoded and sent as output,
1687 otherwise, sdr intent and gainmap are decoded, combined into
1688 hdr image and sent as output.</td>
1689 </tr>
1690
1691 <tr>
1692 <td>uhdr:sdr-color-gamut=<var>{bt709|display_p3|bt2100}</var></td>
1693 <td>Set input SDR intent color gamut. Used during encoding. Required.</td>
1694 </tr>
1695
1696 <tr>
1697 <td>uhdr:uhdr:target-display-peak-brightness=<var>value</var></td>
1698 <td>Peak brightness refers to the maximum brightness level that a display can achieve. This is important for accurately representing bright highlights in HDR content.</td>
1699 </tr>
1700
1701 <tr>
1702 <td>video:intermediate-format=<var>{pam,webp}</var></td>
1703 <td>Set the video intermediate format option of <samp>ffmpeg</samp>.</td>
1704 </tr>
1705
1706 <tr>
1707 <td>video:pixel-format=<var>value</var></td>
1708 <td>Set the pixel format option of <samp>ffmpeg</samp>.</td>
1709 </tr>
1710
1711 <tr>
1712 <td>video:vsync=<var>value</var></td>
1713 <td>Set the vsync option of <samp>ffmpeg</samp>.</td>
1714 </tr>
1715
1716 <tr>
1717 <td colspan="2"><p></p></td>
1718 </tr>
1719
1720 <tr>
1721 <td colspan="2"><p></p></td>
1722 </tr>
1723
1724 <tr>
1725 <th align="center" colspan="2">PSEUDO-IMAGE FORMATS</th>
1726 </tr>
1727
1728 <tr>
1729 <td>caption:max-pointsize=<var>pointsize</var></td>
1730 <td>Limit the maximum point size</td>
1731 </tr>
1732
1733 <tr>
1734 <td>caption:split=<var>boolean</var></td>
1735 <td>split text if required to fit caption on canvas</td>
1736 </tr>
1737
1738 <tr>
1739 <td>gradient:angle=<var>angle (in degrees)</var></td>
1740 <td>For a linear gradient, this specifies the direction of
1741 the gradient going from color1 to color2 in a clockwise
1742 positive manner relative to north (up). For a radial
1743 gradient, this specifies the rotation of the gradient in a
1744 clockwise positive manner from its normal X-Y orientation.
1745 Supported in Imagemagick 6.9.2-5.</td>
1746 </tr>
1747 <tr>
1748 <td>gradient:bounding-box=<var>WxH+X+Y</var></td>
1749 <td>Limit the gradient to a larger or smaller region than
1750 the image dimensions. If the region defined by the bounding
1751 box is smaller than the image, then color1 will be the color
1752 of the background.
1753 Supported in Imagemagick 6.9.2-5.</td>
1754 </tr>
1755
1756 <tr>
1757 <td>gradient:center=<var>x,y</var></td>
1758 <td>Specify the coordinates of the center point for the
1759 radial gradient. The default is the center of the image.
1760 Supported in Imagemagick 6.9.2-5.</td>
1761 </tr>
1762
1763 <tr>
1764 <td>gradient:direction=<var>value</var></td>
1765 <td>Specify the direction of the linear gradient towards
1766 the top/bottom/left/right or diagonal corners. The choices are:
1767 NorthWest, North, Northeast, West, East, SouthWest, South, SouthEast.
1768 Supported in Imagemagick 6.9.2-5.</td>
1769 </tr>
1770
1771 <tr>
1772 <td>gradient:extent=<var>value</var></td>
1773 <td>Specify the shape of an image centered radial gradient.
1774 The choices are: Circle, Diagonal, Ellipse, Maximum, Minimum.
1775 Circle and Maximum draw a circular radial gradient even for
1776 rectangular shaped images of radius equal to the larger of
1777 the half-width and half-height of the image. The Circle and
1778 Maximum options are both equivalent to the default radial
1779 gradient. The Minimum option draws a circular radial gradient
1780 even for rectangular shaped images of radius equal to the
1781 smaller of the half-width and half-height of the image.
1782 The Diagonal option draws a circular radial gradient even
1783 for rectangular shaped images of radius equal to the
1784 half-diagonal of the image. The Ellipse options draws an
1785 elliptical radial gradient for rectangular shaped images of
1786 radii equal to half the width and half the height of the image.
1787 Supported in Imagemagick 6.9.2-5.</td>
1788 </tr>
1789
1790 <tr>
1791 <td>gradient:radii=<var>x,y</var></td>
1792 <td>Specify the x and y radii of the gradient. If the
1793 x radius and the y radius are equal, the shape of the
1794 radial gradient will be a circle. If they differ, then
1795 the shape will be an ellipse. The default values are the
1796 maximum of the half width and half height of the image.
1797 Supported in Imagemagick 6.9.2-5.</td>
1798 </tr>
1799
1800 <tr>
1801 <td>gradient:vector=<var>x1,y1,x2,y2</var></td>
1802 <td>Specify the direction of the linear gradient going from
1803 vector1 (x1,y1) to vector2 (x2,y2). Color1 (fromColor) will be
1804 located at vector position x1,y1 and color2 (toColor) will be
1805 located at vector position x2,y2.
1806 Supported in Imagemagick 6.9.2-5.</td>
1807 </tr>
1808
1809 <tr>
1810 <td>histogram:unique-colors=<var>false</var></td>
1811 <td>Suppress the textual listing of the image's unique colors.</td>
1812 </tr>
1813
1814 <tr>
1815 <td>pango:align=<var>left|center|right</var></td>
1816 <td></td>
1817 </tr>
1818
1819 <tr>
1820 <td>pango:auto-dir=<var>true|false</var></td>
1821 <td></td>
1822 </tr>
1823
1824 <tr>
1825 <td>pango:ellipsize=<var>start|middle|end</var></td>
1826 <td></td>
1827 </tr>
1828
1829 <tr>
1830 <td>pango:gravity-hint=<var>natural|strong|line</var></td>
1831 <td></td>
1832 </tr>
1833
1834 <tr>
1835 <td>pango:hinting=<var>none|auto|full</var></td>
1836 <td></td>
1837 </tr>
1838
1839 <tr>
1840 <td>pango:indent=<var>points</var></td>
1841 <td></td>
1842 </tr>
1843
1844 <tr>
1845 <td>pango:justify=<var>true|false</var></td>
1846 <td></td>
1847 </tr>
1848
1849 <tr>
1850 <td>pango:language=<var>en_US|others</var></td>
1851 <td></td>
1852 </tr>
1853
1854 <tr>
1855 <td>pango:markup=<var>true|false</var></td>
1856 <td></td>
1857 </tr>
1858
1859 <tr>
1860 <td>pango:single-paragraph=<var>true|false</var></td>
1861 <td></td>
1862 </tr>
1863
1864 <tr>
1865 <td>pango:wrap=<var>word|char|word-char</var></td>
1866 <td></td>
1867 </tr>
1868
1869 <tr>
1870 <td>pixel:compliance=<var>value</var></td>
1871 <td>Set the "pixel:" output format according to several standards.
1872 The choices are SVG, None, Undefined, MVG, X11, XPM. The default
1873 list values for (s)RGB colors in the form of (s)rgb(r,g,b) or
1874 (s)rgba(r,g,b,a). Color names will no longer be presented. For sRGB or
1875 RGB colors, the SVG, X11, XPM and None options lists color names,
1876 if they exist. The MVG and Undefined options list hex values. When
1877 colors are presented or converted to hue-based colorspaces, the values
1878 listed will be integers for hue and percents for the other two components.
1879 For other colorspaces, values may be listed as either percents or
1880 fractional value. Setting the depth to 8 will limit values to the 8-bit
1881 range, except for hue-based colors.</td>
1882 </tr>
1883
1884 <tr>
1885 <td>txt:compliance=<var>value</var></td>
1886 <td>Set the "txt:" format for the values in parentheses according to
1887 several standards. The choices are svg, none, undefined, mvg, x11, xpm.
1888 The default will list values for (s)RGB colors in the quantum range.
1889 The SVG, X11, XPM, MVG and None options lists values in the 8-bit range
1890 for all Q-level compiles. The undefined option also lists values in the
1891 quantum range. When colors are presented or converted to hue-based
1892 colorspaces, the values listed will be integers for hue and percents for
1893 the other two components. For other colorspaces, values may be listed as
1894 either percents or fractional value. Setting the depth to 8 will limit
1895 values to the 8-bit range, except for hue-based colors.</td>
1896 </tr>
1897
1898 <tr>
1899 <td>webp:<var>tag</var>=<var>value</var></td>
1900 <td>WebP has a plethora of defines detailed on this <a href="../www/webp.html">page</a>.</td>
1901 </tr>
1902
1903 <tr>
1904 <td>xmp:validate=<var>{true,false}</var></td>
1905 <td>By default, ImageMagick validates any XMP profile embedded in an image.</td>
1906 </tr>
1907
1908 <tr>
1909 <td colspan="2"><p></p></td>
1910 </tr>
1911
1912 <tr>
1913 <td colspan="2"><p></p></td>
1914 </tr>
1915
1916 <tr>
1917 <th align="center" colspan="2">Identify Defines</th>
1918 </tr>
1919
1920 <tr>
1921 <td colspan="2"><p></p></td>
1922 </tr>
1923
1924 <tr>
1925 <td>identify:locate=<var>minimum|maximum</var></td>
1926 <td>Locate the coordinates of one or more image minimum or maximum.</td>
1927 </tr>
1928
1929 <tr>
1930 <td>identify:limit=<var>number</var></td>
1931 <td>Locate the coordinates for the number of minima or maxima specified.</td>
1932 </tr>
1933
1934 </table>
1935
1936 </div>
1937 </div>
1938 </main><!-- /.container -->
1939 <footer class="text-center pt-5 my-5 text-body-secondary border-top">
1940 <div class="container-fluid">
1941 <a href="security-policy.html">Security</a> •
1942 <a href="../www/news.html">News</a>
1943
1944 <a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../images/wand.ico"/></a>
1945
1946 <a href="../www/links.html">Related</a> •
1947 <a href="../www/sitemap.html">Sitemap</a>
1948 <br/>
1949 <a href="../www/support.html">Sponsor</a> •
1950 <a href="cite.html">Cite</a> •
1951 <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
1952 <a href="../www/../www/../www/https://imagemagick.org/script/contact.php">Contact Us</a>
1953 <br/>
1954 <a href="https://github.com/imagemagick/imagemagick" rel="noopener" target="_blank" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a> •
1955 <a href="https://twitter.com/imagemagick" rel="noopener" target="_blank" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 300 300" width="2%" height="2%" role="img" focusable="false"><title>Twitter</title><path d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"/></svg></a>
1956 <br/>
1957 <small>Copyright © 1999 ImageMagick Studio LLC</small>
1958 </div>
1959 </footer>
1960 </div>
1961
1962 <!-- Javascript assets -->
1963 <script src="assets/bootstrap.bundle.min.js" ></script>
1964 </body>
1965 </html>
1966 <!-- Magick Cache 27th July 2025 09:38 -->