Debian Codegraph @

www/resources/index.html

raw symbols ◀ ▶ SCIP
2 Debian patches touch this file
1
2
3 <!DOCTYPE html>
4 <html lang="en" data-bs-theme="dark">
5
6
7 <head>
•8 <meta charset="utf-8" />
9 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
10 <title>ImageMagick | Resources</title>
•11 <meta name="description" content="Influence ImageMagick's default behavior with external configuration files and environment variables." />
12 <link rel="canonical" href="index.html" />
13 <meta name="robots" content="index, follow" />
14 <meta name="theme-color" content="#000000" />
15 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
•16 <link rel="shortcut icon" href="../image/wand.png" type="image/png" />
17 <link rel="apple-touch-icon" href="../image/wand.png" type="image/png" />
18 <link rel="preconnect" href="https://localhost/" />
19 <link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" as="style" crossorigin="anonymous" />
20 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" crossorigin="anonymous" />
21 <!-- Accessibility Enhancement -->
22 <style>
23 html {
24 scroll-padding-top: 70px;
25 }
26
27 a.nav-link:hover,
28 a.dropdown-item:hover {
29 color: #ffc107 !important;
30 text-shadow: 0px 2px 4px rgba(255, 193, 7, 0.8);
31 }
32
33 .btn-outline-warning {
34 color: #cd7f32;
35 border-color: #cd7f32;
36 }
37
38 .navbar-brand {
39 color: #d4af37;
40 transition: color 0.3s ease, text-shadow 0.3s ease;
41 }
42
43 .navbar-brand:hover {
44 color: #e9c03d;
45 text-shadow: 0px 2px 4px rgba(203, 163, 120, 0.6);
46 }
47
48 :root {
49 --bs-code-color: revert;
50 }
51 </style>
52 <!-- Open Graph Meta Tags -->
•53 <meta property="og:title" content="ImageMagick | Resources" />
54 <meta property="og:description" content="Influence ImageMagick's default behavior with external configuration files and environment variables." />
•55 <meta property="og:image" content="https://imagemagick.org/image/logo.png" />
56 <meta property="og:logo" content="https://imagemagick.org/image/logo.png" />
57 <meta property="og:url" content="https://imagemagick.org/resources/" />
•58 <meta property="og:type" content="website" />
59 <meta property="og:site_name" content="ImageMagick" />
60 <meta property="og:locale" content="en_us" />
61 <!-- Twitter Card Meta Tags -->
•62 <meta name="twitter:card" content="summary_large_image" />
63 $site=strtolower("ImageMagick");
•64 <meta name="twitter:site" content="@imagemagick" />
65 <meta name="twitter:creator" content="@imagemagick" />
66 <meta name="twitter:title" content="ImageMagick | Resources" />
•67 <meta name="twitter:description" content="$this- />description" />
68 <meta name="twitter:image" content="https://imagemagick.org/image/logo.png" />
•69 <meta name="twitter:image:alt" content="ImageMagick logo and tag line" />
70 <!-- JSON-LD Structured Data -->
71 <script type="application/ld+json">
72 {
73 "@context": "https://schema.org",
74 "@type": "SoftwareApplication",
75 "name": "ImageMagick",
76 "url": "ImageMagick | Resources",
77 "image": "https://imagemagick.org/image/logo.png",
78 "description": "$this->description",
79 "applicationCategory": "Multimedia",
80 "operatingSystem": "Windows, macOS, Linux, Unix",
81 "softwareVersion": "7.1.2-27",
82 "license": "https://imagemagick.org/license/",
83 "creator": {
84 "@type": "Organization",
85 "name": "ImageMagick Studio LLC",
86 "url": "https://imagemagick.org"
87 },
88 "keywords": [
89 "".ucfirst($title)."",
90 "image processing software",
91 "image conversion tool",
92 "batch image editing",
93 "open-source image editor",
94 "ImageMagick command-line",
95 "resize images ImageMagick",
96 "crop and rotate images",
97 "ImageMagick tutorial",
98 "ImageMagick automation",
99 "ImageMagick for developers",
100 "ImageMagick CLI",
101 "ImageMagick filters and effects",
102 "ImageMagick scripting",
103 "ImageMagick API integration"
104 ],
105 "sameAs": [
106 "https://github.com/ImageMagick",
107 "https://x.com/imagemagick"
108 ],
109 "offers": {
110 "@type": "Offer",
111 "price": "0.00",
112 "priceCurrency": "USD"
113 }
114 }
115 </script>
116 <!-- Google Custom Search -->
•117 <script async="true" src="https://localhost/cse.js?cx=8720b81722164487b"></script>
118 <script async="true" src="https://localhost/pagead/js/adsbygoogle.js?client=ca-pub-3129977114552745" crossorigin="anonymous"></script>
119 </head>
120
121 <body>
122 <script>
123 function setTheme(theme) {
124 localStorage.setItem('theme', theme);
125 updateThemeIcon(theme);
126 document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? getSystemTheme() : theme);
127 }
128 function getSystemTheme() {
129 return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
130 }
131 function updateThemeIcon(theme) {
132 const iconMap = {
133 light: '☀️',
134 dark: '🌙',
135 auto: '🌓'
136 };
137 document.getElementById('currentThemeIcon').textContent = iconMap[theme] || '🌓';
138 }
139 document.addEventListener('DOMContentLoaded', () => {
140 const savedTheme = localStorage.getItem('theme') || 'auto';
141 setTheme(savedTheme);
142 });
143 </script>
144 <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
145 <div class="container-fluid">
146 <a class="navbar-brand fw-bold" href="../index-2.html" title="ImageMagick">ImageMagick</a>
147 <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">
148 <span class="navbar-toggler-icon"></span>
149 </button>
150
151 <div class="collapse navbar-collapse" id="magick-navbars">
152 <ul class="navbar-nav me-auto">
153 <li class="nav-item">
•154 <a class="nav-link" href="../download/index.html">Download</a>
155 </li>
156 <li class="nav-item">
•157 <a class="nav-link" href="../command-line-tools/index.html">Tools</a>
158 </li>
159 <li class="nav-item">
•160 <a class="nav-link" href="../command-line-processing/index.html">CLI</a>
161 </li>
162 <li class="nav-item">
•163 <a class="nav-link" href="../develop/index.html">Develop</a>
164 </li>
165 <li class="nav-item">
166 <a class="nav-link" rel="noopener noreferrer" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
167 </li>
168 </ul>
169 <ul class="navbar-nav ms-auto">
170 <li class="nav-item ms-3">
171 <form class="d-flex form-inline" action="https://imagemagick.org/resources/">
•172 <input class="form-control me-2" type="text" name="q" placeholder="Search site..." aria-label="Search" />
173 <button class="btn btn-outline-warning" type="submit" name="sa">Search</button>
174 </form>
175 </li>
176 <li class="nav-item dropdown ms-3">
177 <a class="nav-link dropdown-toggle" href="#" id="themeDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
178 <span id="currentThemeIcon">🌓</span>
179 </a>
180 <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="themeDropdown">
181 <li><a class="dropdown-item" href="#" onclick="setTheme('light')">☀️ Light</a></li>
182 <li><a class="dropdown-item" href="#" onclick="setTheme('dark')">🌙 Dark</a></li>
183 <li><a class="dropdown-item" href="#" onclick="setTheme('auto')">🌓 Auto</a></li>
184 </ul>
185 </li>
186 </ul>
187 </div>
188 </div>
189 </nav>
190
191 <div class="col-lg-8 mx-auto text-body-secondary pt-5 pt-lg-5">
192 <header class="d-flex align-items-center pb-3 mb-5 border-bottom">
193 <div class="mt-3 ms-3">
194 <a href="../index-2.html" class="text-decoration-none">
195 <h1 class="fs-2 mb-1 display-5">Resources</h1>
196 </a>
197 <h2 class="fs-5 text-muted h4">ImageMagick</h2>
198 </div>
199 </header>
200
201 <main role="main" class="container">
202 <div class="row g-5">
203 <div class="col-md-9">
204 <div>
205 <p class="text-center"><a href="#configure">Configuration Files</a> • <a href="#modules">Modules</a> • <a href="#fonts">Fonts</a> • <a href="#environment">Environment Variables</a></p>
206
207 <p class="lead">ImageMagick depends on a number of external resources including configuration files, loadable modules, fonts, and environment variables.</p>
208
209 <h2><a class="anchor" id="configure"></a>Configuration Files</h2>
210
211 <p>ImageMagick depends on a number of external configuration files detailed here:</p>
212
213 <dl class="row">
214 <dt class="col-md-4"><a href="https://imagemagick.org/source/coder.xml">coder.xml</a></dt>
215 <dd class="col-md-8">Associate an image format with the specified coder module.
216
217 ImageMagick has a number of coder modules to support the reading and/or writing of an image format (e.g. JPEG). Some coder modules support more than one associated image format and the mapping between an associated format and its respective coder module is defined in this configuration file. For example, the PNG coder module not only supports the PNG image format, but the JNG and MNG formats as well.
218 </dd>
219
220 <dt class="col-md-4"><a href="https://imagemagick.org/source/colors.xml">colors.xml</a></dt>
221 <dd class="col-md-8">Associate a color name with its red, green, blue, and alpha intensities.
222
223 A number of command line options require a <a href="../color/index.html">color parameter</a>. It is often convenient to refer to a color by name (e.g. white) rather than by hex value (e.g. #fff). This file maps a color name to its equivalent red, green, blue, and alpha intensities (e.g. for white, red = 255, green = 255, blue = 255, and alpha = 0).
224 </dd>
225
226 <dt class="col-md-4"><a class="anchor" id="configure.xml"/><a href="https://imagemagick.org/source/configure.xml">configure.xml</a></dt>
227 <dd class="col-md-8">Set ImageMagick build parameters and system-wide environment variables (e.g. MAGICK_TEMPORARY_PATH).
228 As ImageMagick is built, a number of build parameters are saved to this configuration file. They include the version, release date, dependent delegate libraries, and quantum depth among others.
229 </dd>
230
231 <dt class="col-md-4"><a href="../source/delegates.xml">delegates.xml</a></dt>
232 <dd class="col-md-8">Associate delegate programs with certain image formats.
233
234 ImageMagick relies on a number of delegate programs to support certain image formats such as <a href="https://www.darktable.org/">darktable</a> to read raw camera formats or <a href="http://www.cs.wisc.edu/~ghost/">Ghostscript</a> to read Postscript images. Use this configuration file to map an input or output format to an external delegate program.
235 </dd>
236
237 <dt class="col-md-4"><a href="https://imagemagick.org/source/english.xml">english.xml</a></dt>
238 <dd class="col-md-8">Associate message tags with English translations.</dd>
239
240 <dt class="col-md-4"><a href="https://imagemagick.org/source/francais.xml">francais.xml</a></dt>
241 <dd class="col-md-8">Associate message tags with French translations. </dd>
242
243 <dt class="col-md-4"><a href="https://imagemagick.org/source/locale.xml">locale.xml</a></dt>
244 <dd class="col-md-8">Associate message tags with a translation for your locale.
245
246 ImageMagick has a number of informational, warning, and error messages that are represented as tags. Tags are short descriptions of a message such as
247 <var>FileNotFound</var> or <var>MemoryAllocationFailed</var>. This configuration file lists locales that have a translation for each tag recognized by ImageMagick. Currently only English and French translations are available in the <code>english.xml</code> and <code>francais.xml</code> configuration files.
248 </dd>
249
250 <dt class="col-md-4"><a href="https://imagemagick.org/source/log.xml">log.xml</a></dt>
251 <dd class="col-md-8">Configure logging parameters.
252 ImageMagick is capable of spewing copious amounts of informational or debugging statements. Use this file to configure how the information will appear in a log message and where you want the logging messages posted.
253 </dd>
254
255 <dt class="col-md-4"><a href="https://imagemagick.org/source/mime.xml">mime.xml</a></dt>
256 <dd class="col-md-8">Associate an internet media type with a unique identifier.
257 Many files and data streams have identifiers that uniquely identify a
258 particular internet media type. For example, files in the "Corel Draw
259 drawing" format (mime type="application/vnd.corel-draw") are associated with
260 the filename pattern <code>*.cdr</code>, and also have an initial string of the
261 characters "CDRXvrsn". ImageMagick uses combinations of this information,
262 when available, to attempt to quickly determine the internet media type of a
263 file or data stream.
264 </dd>
265
266 <dt class="col-md-4"><a href="../source/policy-open.xml">policy.xml</a></dt>
267 <dd class="col-md-8">Configure ImageMagick <a href="../security-policy/index.html">security policies</a>.
268 By default any coder, delegate, filter, or file path is permitted. Use a policy to deny access to, for example, the MPEG video delegate, or permit reading images from a file system but deny writing to that same file system. Or use the resource policy to set resource limits. Policies are useful for multi-user servers that want to limit the overall impact ImageMagick has on the system. For example, to limit the maximum image size in memory to 100MP:
269
270 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>&lt;policy domain="resource" name="area" value="100MP"/></code></pre>
271
272 Any image larger than this area limit is cached to disk rather than memory.
273
274 Use <code>width</code> to limit the maximum width of an image in pixels. Exceed this limit and an exception is thrown and processing stops.
275
276 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>&lt;policy domain="resource" name="width" value="8KP"/></code></pre>
277
278 To limit the elapsed time of any ImageMagick command to 5 minutes, use this policy:
279
280 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>&lt;policy domain="resource" name="time" value="300"/></code></pre>
281 For convenience, define arguments for the memory, map, and disk resources with SI prefixes (.e.g 100MB). In addition, resource policies are maximums for each instance of ImageMagick (e.g. policy memory limit 1GB, the <code>-limit 2GB</code> option exceeds policy maximum so memory limit is 1GB). </dd>
282
283 <dt class="col-md-4"><a href="https://imagemagick.org/source/quantization-table.xml">quantization-table.xml</a></dt>
284 <dd class="col-md-8">Custom JPEG quantization tables. Activate with <code>-define:q-table=quantization-table.xml</code>.</dd>
285
286 <dt class="col-md-4"><a href="https://imagemagick.org/source/thresholds.xml">thresholds.xml</a></dt>
287 <dd class="col-md-8">Set threshold maps for ordered posterized dither.</dd>
288
289 <dt class="col-md-4"><a class="anchor" id="type.xml"></a><a href="https://imagemagick.org/source/type.xml">type.xml</a></dt>
290 <dd class="col-md-8">Configure fonts.
291 Define the font name, family, foundry, style, format, metrics, and glyphs for any font you want to use within ImageMagick.
292 </dd>
293
294 <dt class="col-md-4"><a href="https://imagemagick.org/source/type-ghostscript.xml">type-ghostscript.xml</a></dt>
295 <dd class="col-md-8">Configure <a href="http://www.cs.wisc.edu/~ghost/">Ghostscript</a> fonts.
296 The Ghostscript package includes a number of <a href="https://sourceforge.net/projects/gs-fonts/">fonts</a> that can be accessed with ImageMagick.
297 </dd>
298
299 <dt class="col-md-4"><a href="https://imagemagick.org/source/type-windows.xml">type-windows.xml</a></dt>
300 <dd class="col-md-8">Associate names with Windows font glyphs.</dd>
301 </dl>
302
303 <p>Under Linux and Linux, ImageMagick searches for each of the configuration files listed above by looking in the locations given below, in order, and loads them if found:</p>
304
305 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_CONFIGURE_PATH
306 $PREFIX/etc/ImageMagick-7
307 $PREFIX/share/ImageMagick-7
308 $XDG_CACHE_HOME/ImageMagick
309 $HOME/.config/ImageMagick
310 &lt;<var>client path</var>&gt;/etc/ImageMagick</code></pre>
311
312 <p>The environmental variable $PREFIX is the default install path (e.g. <code>/usr/local</code>). The <var>client path</var> is the execution path of your ImageMagick client (e.g. <code>/usr/local</code>) .</p>
313
314 <p>For the Linux or Linux pre-compiled uninstalled binary distributions, the configuration load order is:</p>
315
316 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_CONFIGURE_PATH
317 $MAGICK_HOME/etc/ImageMagick-7
318 $MAGICK_HOME/share/ImageMagick-7
319 $PREFIX/share/ImageMagick-7
320 $XDG_CACHE_HOME/ImageMagick
321 $HOME/.config/ImageMagick/
322 &lt;<var>client path</var>&gt;/etc/ImageMagick
323 &lt;<var>current directory</var>&gt;</code></pre>
324
325 <p>Under Windows, ImageMagick searches for these configuration files in the following order, and loads them if found:</p>
326
327 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_CONFIGURE_PATH
328 &lt;<var>windows registry</var>&gt;
329 $PREFIX/config
330 $USERPROFILE/.config/ImageMagick
331 &lt;<var>client path</var>&gt;</code></pre>
332
333 <p>Above, $PREFIX is the default install path, typically <code>c:\\Program Files\\ImageMagick-7.1.2</code>.</p>
334
335 <p>For an uninstalled Windows installation, the configuration load order is:</p>
336
337 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_CONFIGURE_PATH
338 $MAGICK_HOME
339 $USERPROFILE/.config/ImageMagick
340 <var>client path</var>
341 &lt;<var>current directory</var>&gt;</code></pre>
342
343 <p>If a configuration file cannot not be found, ImageMagick relies on built-in default values.</p>
344
345 <h2><a class="anchor" id="modules"></a>Modules</h2>
346
347 <h4>Coders</h4>
348 <p>An image coder (i.e. encoder / decoder) is responsible for registering, optionally classifying, optionally reading, optionally writing, and unregistering one image format (e.g. PNG, GIF, JPEG, etc.). ImageMagick searches for coders in the following order and it uses the first match found:</p>
349
350 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_HOME/lib/ImageMagick-7.1.2/modules-Q16/coders
351 &lt;<var>client path</var>&gt;/../lib/ImageMagick-7.1.2/modules-Q16/coders
352 $MAGICK_HOME/lib/ImageMagick-7.1.2/modules-Q16/coders
353 $MAGICK_HOME/share/ImageMagick-7.1.2/modules-Q16/coders
354 $XDG_CACHE_HOME/ImageMagick
355 $HOME/.config/ImageMagick
356 &lt;<var>client path</var>&gt;/lib/ImageMagick-7.1.2/modules-Q16/coders</code></pre>
357
358 <h4>Filters</h4>
359 <p>ImageMagick provides a convenient mechanism for adding your own custom image processing algorithms. ImageMagick searches for filters in the following order and it uses the first match found:</p>
360 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_HOME/lib/ImageMagick-7.1.2/modules-Q16/filters
361 &lt;<var>client path</var>&gt;/../lib/ImageMagick-7.1.2/modules-Q16/filters
362 $MAGICK_HOME/lib/ImageMagick-7.1.2/modules-Q16/filters
363 $MAGICK_HOME/share/ImageMagick-7.1.2/modules-Q16/filters
364 $XDG_CACHE_HOME/ImageMagick
365 $HOME/.config/ImageMagick
366 &lt;<var>client path</var>&gt;/lib/ImageMagick-7.1.2/modules-Q16/filters</code></pre>
367
368 <h2><a class="anchor" id="fonts"></a>Fonts</h2>
369
370 <p>ImageMagick is able to load raw TrueType and Postscript font files. It searches for the font configuration file, <a href="#type.xml">type.xml</a>, in the following order, and loads them if found:</p>
371
372 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>$MAGICK_CONFIGURE_PATH
373 $MAGICK_HOME/etc/ImageMagick/-7.1.2
374
375 $MAGICK_HOME/share/ImageMagick-7.1.2
376
377 $XDG_CACHE_HOME/ImageMagick
378 $HOME/.config/ImageMagick
379 &lt;<var>client path</var>&gt;/etc/ImageMagick
380 $MAGICK_FONT_PATH</code></pre>
381
382 <h2><a class="anchor" id="environment"></a>Environment Variables</h2>
383
384 <p>Environment variables recognized by ImageMagick include:</p>
385
386 <div class="overflow-auto" style="max-height:75svh;">
387 <table class="table table-sm table-hover table-striped table-responsive">
388 <tr>
389 <td>HOME</td>
390 <td>Set path to search for configuration files in <code>$HOME/.config/ImageMagick</code> if the directory exists.</td>
391 </tr>
392 <tr>
393 <td>LD_LIBRARY_PATH</td>
394 <td>Set path to the ImageMagick shareable libraries and other dependent libraries.</td>
395 </tr>
396 <tr>
397 <td>MAGICK_AREA_LIMIT</td>
398 <td>Set the maximum <var>width * height</var> of an image that can reside in the pixel cache memory. Images that exceed the area limit are cached to disk (see <a href="#disk-limit">MAGICK_DISK_LIMIT</a>) and optionally memory-mapped.</td>
399 </tr>
400 <tr>
401 <td>MAGICK_FILTER_MODULE_PATH</td>
402 <td>Set search path to use when searching for filter process modules (invoked via <a href="../command-line-options/index.html#process">-process</a>). This path permits the user to extend ImageMagick's image processing functionality by adding loadable modules to a preferred location rather than copying them into the ImageMagick installation directory. The formatting of the search path is similar to operating system search paths (i.e. colon delimited for Linux, and semi-colon delimited for Microsoft Windows). This user specified search path is searched before trying the <a href="#modules">default search path</a>.</td>
403 </tr>
404 <tr>
405 <td>MAGICK_CODER_MODULE_PATH</td>
406 <td>Set path where ImageMagick can locate its coder modules. This path permits the user to arbitrarily extend the image formats supported by ImageMagick by adding loadable coder modules from an preferred location rather than copying them into the ImageMagick installation directory. The formatting of the search path is similar to operating system search paths (i.e. colon delimited for Linux, and semi-colon delimited for Microsoft Windows). This user specified search path is searched before trying the <a href="#modules">default search path</a>.</td>
407 </tr>
408 <tr>
409 <td>MAGICK_CONFIGURE_PATH</td>
410 <td>Set path where ImageMagick can locate its configuration files. Use this search path to search for configuration (.xml) files. The formatting of the search path is similar to operating system search paths (i.e. colon delimited for Linux, and semi-colon delimited for Microsoft Windows). This user specified search path is searched before trying the <a href="#configure">default search path</a>.</td>
411 </tr>
412 <tr>
413 <td>MAGICK_DATE_PRECISION</td>
414 <td>Set the maximum number of characters printed for any timestamp.</td>
415 </tr>
416 <tr>
417 <td>MAGICK_DEBUG</td>
418 <td>Set debug options. See <a href="../command-line-options/index.html#debug">-debug</a> for a description of debugging options.</td>
419 </tr>
420 <tr>
421 <td><a class="anchor" id="disk-limit"></a>MAGICK_DISK_LIMIT</td>
422 <td>Set maximum amount of disk space in bytes permitted for use by the pixel cache. When this limit is exceeded, the pixel cache is not be created and an error message is returned.</td>
423 </tr>
424 <tr>
425 <td>MAGICK_ERRORMODE</td>
426 <td>Set the process error mode (Windows only). A typical use might be a value of 1 to prevent error mode dialogs from displaying a message box and hanging the application.</td>
427 </tr>
428 <tr>
429 <td>MAGICK_FILE_LIMIT</td>
430 <td>Set maximum number of open pixel cache files. When this limit is exceeded, any subsequent pixels cached to disk are closed and reopened on demand. This behavior permits a large number of images to be accessed simultaneously on disk, but with a speed penalty due to repeated open/close calls.</td>
431 </tr>
432 <tr>
433 <td>MAGICK_FONT_PATH</td>
434 <td>Set path ImageMagick searches for TrueType and Postscript Type1 font files. This path is only consulted if a particular font file is not found in the current directory.</td>
435 </tr>
436 <tr>
437 <td>MAGICK_HEIGHT_LIMIT</td>
438 <td>Set the maximum <var>height</var> of an image.</td>
439 </tr>
440 <tr>
441 <td>MAGICK_HOME</td>
442 <td>Set the path at the top of ImageMagick installation directory. This path is consulted by <var>uninstalled</var> builds of ImageMagick which do not have their location hard-coded or set by an installer.</td>
443 </tr>
444 <tr>
445 <td>MAGICK_LIST_LENGTH_LIMIT</td>
446 <td>Set the maximum length of an image sequence.</td>
447 </tr>
448 <tr>
449 <td><a class="anchor" id="map-limit"></a>MAGICK_MAP_LIMIT</td>
450 <td>Set maximum amount of memory map in bytes to allocate for the pixel cache. When this limit is exceeded, the image pixels are cached to disk (see MAGICK_DISK_LIMIT).</td>
451 </tr>
452 <tr>
453 <td>MAGICK_MEMORY_LIMIT</td>
454 <td>Set maximum amount of memory in bytes to allocate for the pixel cache from the heap. When this limit is exceeded, the image pixels are cached to memory-mapped disk (see <a href="#map-limit">MAGICK_MAP_LIMIT</a>).</td>
455 </tr>
456 <tr>
457 <td>MAGICK_OCL_DEVICE</td>
458 <td>Set to <code>off</code> to disable hardware acceleration of certain accelerated algorithms (e.g. blur, convolve, etc.).</td>
459 </tr>
460 <tr>
461 <td>MAGICK_PRECISION</td>
462 <td>Set the maximum number of significant digits to be printed.</td>
463 </tr>
464 <tr>
465 <td>MAGICK_SHRED_PASSES</td>
466 <td>If you want to keep the temporary files ImageMagick creates private, overwrite them with zeros or random data before they are removed. On the first pass, the file is zeroed. For subsequent passes, random data is written.</td>
467 </tr>
468 <tr>
469 <td>MAGICK_SYNCHRONIZE</td>
470 <td>Set to "true" to ensure all image data is fully flushed and synchronized to disk. There is a performance penalty, however, the benefits include ensuring a valid image file in the event of a system crash and early reporting if there is not enough disk space for the image pixel cache.</td>
471 </tr>
472 <tr>
473 <td>MAGICK_TEMPORARY_PATH</td>
474 <td>Set path to store temporary files.</td>
475 </tr>
476 <tr>
477 <td>MAGICK_THREAD_LIMIT</td>
478 <td>Set maximum parallel threads. Many ImageMagick algorithms run in parallel on multi-processor systems. Use this environment variable to set the maximum number of threads that are permitted to run in parallel.</td>
479 </tr>
480 <tr>
481 <td>MAGICK_THROTTLE_LIMIT</td>
482 <td>Periodically yield the CPU for at least the time specified in milliseconds.</td>
483 </tr>
484 <tr>
485 <td>MAGICK_TIME_LIMIT</td>
486 <td>Set maximum time in seconds. When this limit is exceeded, an exception is thrown and processing stops.</td>
487 </tr>
488 <tr>
489 <td>MAGICK_WIDTH_LIMIT</td>
490 <td>Set the maximum <var>width</var> of an image.</td>
491 </tr>
492 <tr>
493 <td>SOURCE_DATE_EPOCH</td>
494 <td>A UNIX timestamp, defined as the number of seconds, excluding leap seconds, since <code>01 Jan 1970 00:00:00 UTC</code>. Special-purpose setting for pipeline builds. This setting disables the time-to-live settings.</td>
495 </tr>
496 </table></div>
497
498 <p>Define arguments for the <code>MAGICK_MEMORY_LIMIT</code>, <code>MAGICK_DISK_LIMIT</code>, and <code>MAGICK_MEMORY_LIMIT</code> environment variables with SI prefixes (.e.g <code>100MB</code>). <code>MAGICK_WIDTH_LIMIT</code>, <code>MAGICK_HEIGHT_LIMIT</code> and <code>MAGICK_AREA_LIMIT</code> accepts pixel suffixes such as MP for mega-pixels (e.g. 100MP). Note, you can restrict limits relative to any <a href="../security-policy/index.html">security policies</a>, but you cannot relax them.</p>
499
500 </div>
501
502 </div>
503 <div class="col-md-3">
504 <div class="container text-center my-3">
505 <a href="../image/wizard.png" rel="noopener noreferrer" target="_blank">
•506 <img alt="The Tao of the Spiritual Warrior" class="img-fluid img-thumbnail" height="1468" loading="lazy" src="../image/wizard.png" width="1104" />
507 </a>
508 <p class="mt-2"><iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe></p>
509 </div>
510 <div class="container text-center my-3">
•511 <script async="true" src="https://localhost/pagead/js/adsbygoogle.js?client=ca-pub-3129977114552745"
512 crossorigin="anonymous"></script>
513 <!-- Banner Ad -->
514 <ins class="adsbygoogle"
515 style="display:block"
516 data-ad-client="ca-pub-3129977114552745"
517 data-ad-slot="1083537442"
518 data-ad-format="auto"
519 data-full-width-responsive="true"></ins>
520 <script>
521 (adsbygoogle = window.adsbygoogle || []).push({});
522 </script>
523 </div>
524 </div>
525 </div>
526 <a aria-label="About ImageMagick" class="btn btn-outline-warning mt-3" href="../index-2.html">About ImageMagick</a>
527 </main><!-- /.container -->
528 <footer class="text-center pt-5 my-5 text-body-secondary border-top">
529 <div class="container-fluid">
530 <a href="../security-policy/index.html">Security</a> •
531 <a href="../news/index.html">News</a>
•532
533 <a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../image/wand.ico" /></a>
534
535 <a href="../links/index.html">Related</a> •
536 <a href="../sitemap/index.html">Sitemap</a>
•537 <br />
538 <a href="../support/index.html">Sponsor</a> •
539 <a href="../cite/index.html">Cite</a> •
540 <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
541 <a href="https://github.com/ImageMagick/ImageMagick/discussions">Contact Us</a>
•542 <br />
543 <a href="https://github.com/imagemagick/imagemagick" rel="noopener noreferrer" 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">
544 <title>GitHub</title>
545 <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" />
546 </svg></a> •
547 <a href="https://twitter.com/imagemagick" rel="noopener noreferrer" 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">
548 <title>Twitter</title>
549 <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" />
550 </svg></a>
•551 <br />
552 <small>Copyright © 1999 ImageMagick Studio LLC</small>
553 </div>
554 </footer>
555 <div style="visibility: hidden;">
556 <div class="gcse-search"></div>
557 </div>
558 </div>
559
560 <!-- Javascript assets -->
561 <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
562 </body>
563
564
565 </html>