Debian Codegraph @

www/fx/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 | The FX Special Effects Image Operator</title>
•11 <meta name="description" content="" />
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 | The FX Special Effects Image Operator" />
54 <meta property="og:description" content="" />
•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/fx/" />
•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 | The FX Special Effects Image Operator" />
•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 | The FX Special Effects Image Operator",
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/fx/">
•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">The FX Special Effects Image Operator</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="#fx">The FX Special Effects Image Operator</a> • <a href="#anatomy">The Anatomy of an FX Expression</a></p>
206
207 <a class="anchor" id="fx"></a>
208
209 <p class="lead">The <a href="http://im.snibgo.com/fxnew.htm" rel="noopener noreferrer" target="_blank">FX special effects image operator</a> applies a mathematical expression to each pixel channel of an image. The FX expression language provides a powerful and flexible way to manipulate images, allowing you to perform a wide range of operations and transformations on your images. Use FX to:</p>
210
211 <ul>
212 <li>create canvases, gradients, mathematical colormaps</li>
213 <li>move color values between images and channels</li>
214 <li>translate, flip, mirror, rotate, scale, shear and generally distort images</li>
215 <li>merge or composite multiple images together</li>
216 <li>convolve or merge neighboring pixels together</li>
217 <li>generate image metrics or 'fingerprints'</li>
218 </ul>
219
220 <p>The operator loops through all the pixels of an image and all the channels of each pixel and returns a new image with the results. The expression can reference any image in the image sequence, but only a copy of the first image is returned with suitable updates per your expression.</p>
221
222 <p>The expression can be simple:</p>
223
224 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick -size 64x64 canvas:black -channel blue -fx "1/2" fx_navy.png
225 </samp></pre>
226
227 <p>Here, we convert a black to a navy blue image:</p>
228
229 <ul>
230 <a href="../image/black.png"><img src="../image/black.png" width="64" height="64" alt="black" /></a>
231 <img style="margin-top:22px; margin-bottom:22px;" src="../image/right.gif" width="20" height="20" alt="==>" />
232 <a href="../image/navy.png"><img src="../image/navy.png" width="64" height="64" alt="navy" /></a>
233 </ul>
234
235 <p>Or the expression can be complex:</p>
236
237 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick rose: \
238 -fx "(1.0/(1.0+exp(10.0*(0.5-u)))-0.006693)*1.0092503" \
239 rose-sigmoidal.png
240 </samp></pre>
241
242 <p>This expression results in a high contrast version of the source image:</p>
243
244 <ul>
245 <a href="../image/rose.jpg"><img src="../image/rose.jpg" width="70" height="46" alt="rose" /></a>
246 <img style="margin-top:13px; margin-bottom:13px;" src="../image/right.gif" width="20" height="20" alt="==>" />
247 <a href="../image/rose-sigmoidal.png"><img src="../image/rose-sigmoidal.png" width="70" height="46" alt="rose-sigmoidal" /></a>
248 </ul>
249
250 <p>The expression can include variable assignments. Assignments, in most cases, reduce the complexity of an expression and permit some operations that might not be possible any other way. For example, lets create a radial gradient:</p>
251
252 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick -size 70x70 canvas: \
253 -fx "Xi=i-w/2; Yj=j-h/2; 1.2*(0.5-hypot(Xi,Yj)/70.0)+0.5" \
254 radial-gradient.png
255 </samp></pre>
256
257 <p>The command above returns this image:</p>
258
259 <ul>
260 <a href="../image/radial-gradient.png"><img src="../image/radial-gradient.png" width="70" height="70" alt="radial-gradient" /></a>
261 </ul>
262
263 <p>This FX expression adds random noise to an image:</p>
264
265 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick photo.jpg -fx 'iso=32; rone=rand(); rtwo=rand(); \
266 myn=sqrt(-2*ln(rone))*cos(2*Pi*rtwo); myntwo=sqrt(-2*ln(rtwo))* \
267 cos(2*Pi*rone); pnoise=sqrt(p)*myn*sqrt(iso)* \
268 channel(4.28,3.86,6.68)/255; max(0,p+pnoise)' noisy.png
269 </samp></pre>
270
271 <p>This FX script utilizes a loop to create a <a href="https://en.wikipedia.org/wiki/Julia_set">Julia set</a>:</p>
272
273 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick -size 400x400 xc:gray -fx " \
274 Xi=2.4*i/w-1.2; \
275 Yj=2.4*j/h-1.2; \
276 for (pixel=0.0, (hypot(Xi,Yj) &lt; 2.0) &amp;&amp; (pixel &lt; 1.0), \
277 delta=Xi^2-Yj^2; \
278 Yj=2.0*Xi*Yj+0.2; \
279 Xi=delta+0.4; \
280 pixel+=0.00390625 \
281 ); \
282 pixel == 1.0 ? 0.0 : pixel" \
283 \( -size 1x1 xc:white xc:red xc:orange xc:yellow xc:green1 xc:cyan xc:blue \
284 xc:blueviolet xc:white -reverse +append -filter Cubic -resize 1024x1! \) \
285 -clut -rotate -90 julia-set.png</samp></pre>
286
287 <ul>
288 <a href="../image/julia-set.png"><img src="../image/julia-set.png" width="160" height="160" alt="Julia Fractals" /></a>
289 </ul>
290
291 <p>This FX script prints the first 10 prime numbers:</p>
292 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick xc:gray -fx " \
293 for (prime=2, prime &lt; 30, composite=0; \
294 for (nn=2, nn &lt; (prime/2+1), if ((prime % nn) == 0, composite++, ); nn++); \
295 if (composite &lt;= 0, debug(prime), ); prime++)" null:</samp></pre>
296
297 <p>See <a href="https://usage.imagemagick.org/transform/index.html#fx">Using FX, The Special Effects Image Operator</a> for more examples.</p>
298
299 <p>The <code>-fx</code> option replaces any image sequence with a clone of the first image updated with the results of the expression. If you prefer to apply the expression to each image in the sequence, use <code>+fx</code> instead.</p>
300
301 <p>The FX expression is interpreted in a single-thread, however, it is executed in multiple threads unless the expression includes the <code>debug()</code> function.</p>
302
303 <p>The next section discusses the FX expression language.</p>
304
305 <h2><a class="anchor" id="anatomy"></a>The Anatomy of an FX Expression</h2>
306
307 <h4>The FX Expression Language</h4>
308
309 <p>The formal FX expression language is defined here:</p>
310
311 <dl class="row">
312 <dt class="col-md-4"> numbers:</dt>
313 <dd class="col-md-8"> integer, floating point, scientific notation (+/- required, e.g. 3.81469e-06), International System number postfixes (.e.g KB, Mib, GB, etc.)</dd>
314 <dt class="col-md-4"> constants: </dt>
315 <dd class="col-md-8"> E (Euler's number), Epsilon, Opaque, Phi (golden ratio), Pi, QuantumRange, QuantumScale, Transparent</dd>
316 <dt class="col-md-4"> FX operators (in order of precedence): </dt>
317 <dd class="col-md-8"> ^ (power), unary -, *, /, % (modulo), +, -,
318 &lt;&lt;, &gt;&gt;, &lt;, &lt;=, &gt;, &gt;=, +=, -=, *=, /=, %=, &lt;&lt;=
319 , &gt;&gt;=,
320 &amp;=, |=, ++, --, ==, !=, &amp; (bitwise AND), | (bitwise OR),
321 &amp;&amp; (logical AND), || (logical OR),
322 ~ (logical NOT), ?: (ternary conditional)</dd>
323 <dt class="col-md-4"> array: </dt>
324 <dd class="col-md-8">an image offers array storage (e.g. p[-1,-1].r) bounded by its width and height. An image sequence represents multiple arrays (e.g. u.p[0,0].r, v.p[0,0].r). Storage is limited to Quantum values, e.g. [0..65535] for Q16 builds and floating point for HDRI-enabled builds.</dd>
325 <dt class="col-md-4"> math functions: </dt>
326 <dd class="col-md-8"> abs(), acos(), acosh(), airy(), alt(), asin(), asinh(), atan(), atanh(), atan2(), ceil(), clamp(), cos(), cosh(), debug(), drc(), epoch(), erf(), exp(), floor(), gauss(), gcd(), hypot(), int(), isnan(), j0(), j1(), jinc(), ln(), log(), logtwo(), magicktime(), max(), min(), mod(), not(), pow(), rand(), round(), sign(), sin(), sinc(), sinh(), sqrt(), squish(), tan(), tanh(), trunc()</dd>
327 <dt class="col-md-4"> channel functions: </dt>
328 <dd class="col-md-8"> define up to 5 pixel channels</dd>
329 <dt class="col-md-4"> color names:</dt>
330 <dd class="col-md-8"> red, cyan, black, etc.</dd>
331 <dt class="col-md-4"> color functions:</dt>
332 <dd class="col-md-8"> srgb(), srgba(), rgb(), rgba(), cmyk(), cmyka(), hsl(), hsla(), etc.</dd>
333 <dt class="col-md-4"> color hex values:</dt>
334 <dd class="col-md-8"> #ccc, #cbfed0, #b9e1cc00, etc.</dd>
335 <dt class="col-md-4"> symbols:</dt><dd class="col-md-8"><dl>
336 <dd><code>u</code>: first image in list</dd>
337 <dd><code>v</code>: second image in list</dd>
338 <dd><code>s</code>: current image in list (for %[fx:] otherwise = u)</dd>
339 <dd><code>t</code>: index of current image (s) in list</dd>
340 <dd><code>n</code>: number of images in list</dd>
341
342 <dd><code>i</code>: column offset</dd>
343 <dd><code>j</code>: row offset</dd>
344 <dd><code>p</code>: pixel to use (absolute or relative to current pixel)</dd>
345
346 <dd><code>w</code>: width of this image</dd>
347 <dd><code>h</code>: height of this image</dd>
348 <dd><code>z</code>: channel depth</dd>
349
350 <dd><code>r</code>: red value (from RGBA), of a specific or current pixel</dd>
351 <dd><code>g</code>: green</dd>
352 <dd><code>b</code>: blue</dd>
353 <dd><code>a</code>: alpha</dd>
354 <dd><code>o</code>: opacity</dd>
355
356 <dd><code>c</code>: cyan value of CMYK color of pixel</dd>
357 <dd><code>y</code>: yellow</dd>
358 <dd><code>m</code>: magenta</dd>
359 <dd><code>k</code>: black</dd>
360
361 <dd><code>all</code>: all channels</dd>
362 <dd><code>this</code>: this channel</dd>
363
364 <dd><code>intensity</code>: pixel intensity</dd>
365
366 <dd><code>hue</code>: pixel hue</dd>
367 <dd><code>saturation</code>: pixel saturation</dd>
368 <dd><code>lightness</code>: pixel lightness</dd>
369 <dd><code>luma</code>: pixel luma</dd>
370
371 <dd><code>page.width</code>: page width</dd>
372 <dd><code>page.height</code>: page height</dd>
373 <dd><code>page.x</code>: page x offset</dd>
374 <dd><code>page.y</code>: page y offset</dd>
375
376 <dd><code>printsize.x</code>: x printsize</dd>
377 <dd><code>printsize.y</code>: y printsize</dd>
378
379 <dd><code>resolution.x</code>: x resolution</dd>
380 <dd><code>resolution.y</code>: y resolution</dd>
381
382 <dd><code>depth</code>: image depth</dd>
383 <dd><code>extent</code>: image extent</dd>
384 <dd><code>minima</code>: image minima</dd>
385 <dd><code>maxima</code>: image maxima</dd>
386 <dd><code>mean</code>: image mean</dd>
387 <dd><code>median</code>: image median</dd>
388 <dd><code>standard_deviation</code>: image standard deviation</dd>
389 <dd><code>kurtosis</code>: image kurtosis</dd>
390 <dd><code>skewness</code>: image skewness (add a channel specifier to compute a statistic for that channel, e.g. depth.r)</dd></dl></dd>
391 <dt class="col-md-4"> iterators:</dt>
392 <dd class="col-md-8"> do(), for(), while()</dd>
393 <dt class="col-md-4"> image attributes:</dt>
394 <dd class="col-md-8"> s.depth, s.kurtosis, s.maxima, s.mean, s.minima, s.resolution.x, s.resolution.y, s.skewness, s.standard_deviation</dd>
395 <dt class="col-md-4"> user settings:</dt>
•396 <dd class="col-md-8">define Fx symbols as user settings, e.g. <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><pre><samp>$ magick ... -set option:wd1 "%[fx:w/2]" -resize "%[fx:wd1-5]" ...</samp></pre></pre></dd>
397 </dl>
398
399 <h4>The FX Expression</h4>
400
401 <p>An FX expression may include any combination of the following:</p>
402 <dl class="row">
403 <dt class="col-md-4"> <var>x</var> <code>^</code> <var>y</var></dt><dd class="col-md-8"> exponentiation (<var>x<sup>y</sup></var>)</dd>
404 <dt class="col-md-4"> <code>(</code> ... <code>)</code></dt><dd class="col-md-8"> grouping</dd>
405 <dt class="col-md-4"> <var>x</var> <code>*</code> <var>y</var></dt><dd class="col-md-8"> multiplication</dd>
406 <dt class="col-md-4"> <var>x</var> <code>/</code> <var>y</var></dt><dd class="col-md-8"> division</dd>
407 <dt class="col-md-4"> <var>x</var> <code>%</code> <var>y</var></dt><dd class="col-md-8"> modulo</dd>
408 <dt class="col-md-4"> <var>x</var> <code>+</code> <var>y</var></dt><dd class="col-md-8"> addition</dd>
409 <dt class="col-md-4"> <var>x</var> <code>-</code> <var>y</var></dt><dd class="col-md-8"> subtraction</dd>
410 <dt class="col-md-4"> <var>x</var> <code>&lt;&lt;</code> <var>y</var></dt><dd class="col-md-8"> left shift</dd>
411 <dt class="col-md-4"> <var>x</var> <code>&gt;&gt;</code> <var>y</var></dt><dd class="col-md-8"> right shift</dd>
412 <dt class="col-md-4"> <var>x</var> <code>&lt;</code> <var>y</var></dt><dd class="col-md-8"> boolean relation, return value 1.0 if <var>x</var> &lt; <var>y</var>, otherwise 0.0</dd>
413 <dt class="col-md-4"> <var>x</var> <code>&lt;=</code> <var>y</var></dt><dd class="col-md-8"> boolean relation, return value 1.0 if <var>x</var> &lt;= <var>y</var>, otherwise 0.0</dd>
414 <dt class="col-md-4"> <var>x</var> <code>&gt;</code> <var>y</var></dt><dd class="col-md-8"> boolean relation, return value 1.0 if <var>x</var> &gt; <var>y</var>, otherwise 0.0</dd>
415 <dt class="col-md-4"> <var>x</var> <code>&gt;=</code> <var>y</var></dt><dd class="col-md-8"> boolean relation, return value 1.0 if <var>x</var> &gt;= <var>y</var>, otherwise 0.0</dd>
416 <dt class="col-md-4"> <var>x</var> <code>==</code> <var>y</var></dt><dd class="col-md-8"> boolean relation, return value 1.0 if <var>x </var>==<var> y</var> within epsilon (1e-12), otherwise 0.0. Two values as equal when their difference is within about 1e‑12.</dd>
417 <dt class="col-md-4"> <var>x</var> <code>!=</code> <var>y</var></dt><dd class="col-md-8"> boolean relation, return value 1.0 if <var>x </var>!=<var> y</var> within epsilon (1e-12), otherwise 0.0</dd>
418 <dt class="col-md-4"> <var>x</var> <code>&amp;</code> <var>y</var></dt><dd class="col-md-8"> binary AND</dd>
419 <dt class="col-md-4"> <var>x</var> <code>|</code> <var>y</var></dt><dd class="col-md-8"> binary OR</dd>
420 <dt class="col-md-4"> <var>x</var> <code>&amp;&amp;</code> <var>y</var></dt><dd class="col-md-8"> logical AND connective, return value 1.0 if <var>x</var> &gt; 0 and <var>y</var> &gt; 0, otherwise 0.0</dd>
421 <dt class="col-md-4"> <var>x</var> <code>||</code> <var>y</var></dt><dd class="col-md-8"> logical OR connective (inclusive), return value 1.0 if <var>x</var> &gt; 0 or <var>y</var> &gt; 0 (or both), otherwise 0.0</dd>
422 <dt class="col-md-4"> <code>~</code><var>x</var></dt><dd class="col-md-8"> logical NOT operator, return value 1.0 if <var>not</var> <var>x</var> &gt; 0, otherwise 0.0</dd>
423 <dt class="col-md-4"> <code>+</code><var>x</var></dt><dd class="col-md-8"> unary plus, return 1.0*value</dd>
424 <dt class="col-md-4"> <code>-</code><var>x</var></dt><dd class="col-md-8"> unary minus, return -1.0*value</dd>
425 <dt class="col-md-4"> <var>condition</var> <code>?</code> <var>true-statements</var> <code>:</code> <var>false-statements</var> </dt><dd class="col-md-8">ternary conditional expression, return value <var>true-statements</var> if <var>condition</var> != 0, otherwise <var>false-statements</var></dd>
426 <dt class="col-md-4"> <var>x</var> <code>=</code> <var>y</var></dt><dd class="col-md-8">assignment; single character variables are reserved, instead use 2 or more characters, letter combinations only (e.g. Xi not X1)</dd>
427 <dt class="col-md-4"> <var>x</var> <code>;</code> <var>y</var></dt><dd class="col-md-8">statement separator </dd>
428 <dt class="col-md-4"> <code>phi</code></dt><dd class="col-md-8"> constant (1.618034...)</dd>
429 <dt class="col-md-4"> <code>pi</code></dt><dd class="col-md-8"> constant (3.14159265359...)</dd>
430 <dt class="col-md-4"> <code>e</code></dt><dd class="col-md-8"> constant (2.71828...)</dd>
431 <dt class="col-md-4"> <code>QuantumRange</code></dt><dd class="col-md-8"> constant maximum pixel value (255 for Q8, 65535 for Q16)</dd>
432 <dt class="col-md-4"> <code>QuantumScale</code></dt><dd class="col-md-8"> constant 1.0/<code>QuantumRange</code></dd>
433 <dt class="col-md-4"> <code>intensity</code></dt><dd class="col-md-8"> pixel intensity whose value respects the <a href="../command-line-options/index.html#intensity">-intensity</a> option.</dd>
434 <dt class="col-md-4"> <code>hue</code></dt><dd class="col-md-8"> pixel hue</dd>
435 <dt class="col-md-4"> <code>saturation</code></dt><dd class="col-md-8"> pixel saturation</dd>
436 <dt class="col-md-4"> <code>lightness</code></dt><dd class="col-md-8"> pixel lightness; equivalent to 0.5*max(red,green,blue) + 0.5*min(red,green,blue)</dd>
437 <dt class="col-md-4"> <code>luminance</code></dt><dd class="col-md-8"> pixel luminance; equivalent to <code>0.212656*red + 0.715158*green + 0.072186*blue</code></dd>
438 <dt class="col-md-4"> <code>red, green, blue</code>, etc.</dt><dd class="col-md-8"> color names</dd>
439 <dt class="col-md-4"> <code>#ccc, #cbfed0, #b9e1cc00</code>, etc.</dt><dd class="col-md-8"> color hex values</dd>
440 <dt class="col-md-4"> <code>rgb(), rgba(), cmyk(), cmyka(), hsl(), hsla()</code></dt><dd class="col-md-8"> color functions</dd>
441 <dt class="col-md-4"> <code>s, t, u, v, n, i, j, w, h, z, r, g, b, a, o, c, y, m, k</code></dt><dd class="col-md-8"> symbols</dd>
442 <dt class="col-md-4"> <code>abs(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> absolute value function</dd>
443 <dt class="col-md-4"> <code>acos(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> arc cosine function</dd>
444 <dt class="col-md-4"> <code>acosh(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> inverse hyperbolic cosine function</dd>
445 <dt class="col-md-4"> <code>airy(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> Airy function (max=1, min=0); airy(<var>x</var>)=[jinc(<var>x</var>)]<sup>2</sup>=[2*j1(<var>pi*x</var>)/(<var>pi*x</var>)]<sup>2</sup></dd>
446 <dt class="col-md-4"> <code>alt(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> sign alternation function (return 1.0 if int(<var>x</var>) is even, -1.0 if int(<var>x</var>) is odd)</dd>
447 <dt class="col-md-4"> <code>asin(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> arc sine function</dd>
448 <dt class="col-md-4"> <code>asinh(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> inverse hyperbolic sine function</dd>
449 <dt class="col-md-4"> <code>atan(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> arc tangent function</dd>
450 <dt class="col-md-4"> <code>atanh(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> inverse hyperbolic tangent function</dd>
451 <dt class="col-md-4"> <code>atan2(</code><var>y</var>,<var>x</var><code>)</code></dt><dd class="col-md-8"> arc tangent function of two variables</dd>
452 <dt class="col-md-4"> <code>ceil(</code><var>x</var><code>)</code></dt><dd class="col-md-8">smallest integral value not less than argument</dd>
453 <dt class="col-md-4"> <code>channel(</code>...<code>)</code></dt><dd class="col-md-8">supports from zero to five arguments, e.g., channel(0.1) sets the first channel to 0.1 and zero's the other channels.</dd>
454 <dt class="col-md-4"> <code>clamp(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> clamp value</dd>
455 <dt class="col-md-4"> <code>cos(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> cosine function</dd>
456 <dt class="col-md-4"> <code>cosh(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> hyperbolic cosine function</dd>
457 <dt class="col-md-4"> <code>debug(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> print <var>x</var> (useful for debugging your expression)</dd>
458 <dt class="col-md-4"> <code>do(</code><var>statements</var>, <var>condition</var><code>)</code></dt><dd class="col-md-8"> iterate while the condition is not equal to 0</dd>
459 <dt class="col-md-4"> <code>drc(</code><var>x</var>,<var>y</var><code>)</code></dt><dd class="col-md-8"> dynamic range compression (knee curve); drc(<var>x</var>,<var>y</var>)=(<var>x</var>)/(<var>y</var>*(<var>x</var>-1)+1); -1&lt;<var>y</var>&lt;1 </dd>
460 <dt class="col-md-4"> <code>epoch(</code><var>date-time</var><code>)</code></dt><dd class="col-md-8"> convert date-time property to the number of seconds since the epoch, 00:00:00 UTC</dd>
461 <dt class="col-md-4"> <code>erf(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> error function</dd>
462 <dt class="col-md-4"> <code>exp(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> natural exponential function (<var>e<sup>x</sup></var>)</dd>
463 <dt class="col-md-4"> <code>floor(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> largest integral value not greater than argument</dd>
464 <dt class="col-md-4"> <code>for(</code><var>initialize</var>, <var>condition</var>, <var>statements</var><code>)</code></dt><dd class="col-md-8"> iterate while the condition is not equal to 0</dd>
465 <dt class="col-md-4"> <code>gauss(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> gaussian function; gauss(<var>x</var>)=exp(<var>-x*x/2</var>)/sqrt(2*pi)</dd>
466 <dt class="col-md-4"> <code>gcd(</code><var>x</var>,<var>y</var><code>)</code></dt><dd class="col-md-8"> greatest common denominator</dd>
467 <dt class="col-md-4"> <code>hypot(</code><var>x</var>,<var>y</var><code>)</code></dt><dd class="col-md-8"> the square root of x<sup>2</sup>+y<sup>2</sup></dd>
468 <dt class="col-md-4"> <code>if(</code><var>condition</var>, <var>nonzero-statements</var>, <var>zero-statements</var><code>)</code></dt><dd class="col-md-8"> interpret expression depending on condition</dd>
469 <dt class="col-md-4"> <code>int(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> greatest integer function (return greatest integer less than or equal to <var>x</var>)</dd>
470 <dt class="col-md-4"> <code>isnan(</code><var>x</var><code>)</code></dt><dd class="col-md-8">return 1.0 if <var>x</var> is NAN, 0.0 otherwise</dd>
471 <dt class="col-md-4"> <code>j0(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> Bessel functions of <var>x</var> of the first kind of order 0</dd>
472 <dt class="col-md-4"> <code>j1(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> Bessel functions of <var>x</var> of the first kind of order 1</dd>
473 <dt class="col-md-4"> <code>jinc(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> jinc function (max=1, min=-0.1323); jinc(<var>x</var>)=2*j1(pi*<var>x</var>)/(pi*<var>*x</var>)</dd>
474 <dt class="col-md-4"> <code>ln(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> natural logarithm function</dd>
475 <dt class="col-md-4"> <code>log(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> logarithm base 10</dd>
476 <dt class="col-md-4"> <code>logtwo(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> logarithm base 2</dd>
477 <dt class="col-md-4"> <code>ln(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> natural logarithm</dd>
478 <dt class="col-md-4"> <samp>$ magicktime()</samp></dt><dd class="col-md-8"> the current time in seconds since the epoch, 00:00:00 UTC</dd>
479 <dt class="col-md-4"> <code>max(</code><var>x</var>, <var>y</var><code>)</code></dt><dd class="col-md-8"> maximum of <var>x</var> and <var>y</var></dd>
480 <dt class="col-md-4"> <code>min(</code><var>x</var>, <var>y</var><code>)</code></dt><dd class="col-md-8"> minimum of <var>x</var> and <var>y</var></dd>
481 <dt class="col-md-4"> <code>mod(</code><var>x</var>, <var>y</var><code>)</code></dt><dd class="col-md-8"> floating-point remainder function</dd>
482 <dt class="col-md-4"> <code>not(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> return 1.0 if <var>x</var> is zero, 0.0 otherwise</dd>
483 <dt class="col-md-4"> <code>pow(</code><var>x</var>,<var>y</var><code>)</code></dt><dd class="col-md-8"> power function (<var>x<sup>y</sup></var>)</dd>
484 <dt class="col-md-4"> <code>rand()</code></dt><dd class="col-md-8"> value uniformly distributed over the interval [0.0, 1.0) with a 2 to the 128th-1 period</dd>
485 <dt class="col-md-4"> <code>round()</code></dt><dd class="col-md-8"> round to integral value, regardless of rounding direction</dd>
486 <dt class="col-md-4"> <code>sign(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> return -1.0 if <var>x</var> is less than 0.0 otherwise 1.0</dd>
487 <dt class="col-md-4"> <code>sin(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> sine function</dd>
488 <dt class="col-md-4"> <code>sinc(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> sinc function (max=1, min=-0.21); sinc(<var>x</var>)=sin(<var>pi*x</var>)/(<var>pi*x</var>)</dd>
489 <dt class="col-md-4"> <code>squish(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> squish function; squish(<var>x</var>)=1.0/(1.0+exp(<var>-x</var>))</dd>
490 <dt class="col-md-4"> <code>sinh(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> hyperbolic sine function</dd>
491 <dt class="col-md-4"> <code>sqrt(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> square root function</dd>
492 <dt class="col-md-4"> <code>tan(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> tangent function</dd>
493 <dt class="col-md-4"> <code>tanh(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> hyperbolic tangent function</dd>
494 <dt class="col-md-4"> <code>trunc(</code><var>x</var><code>)</code></dt><dd class="col-md-8"> round to integer, towards zero</dd>
495 <dt class="col-md-4"> <code>while(</code><var>condition</var>, <var>statements</var><code>)</code></dt><dd class="col-md-8"> iterate while the condition is not equal to 0</dd>
496 <dt class="col-md-4"> <code>image.depth, image.kurtosis, image.maxima, image.mean, image.median, image.minima, image.resolution.x, image.resolution.y, image.skewness, image.standard_deviation</code></dt><dd class="col-md-8"> image attributes</dd>
497 </dl>
498 <p>The expression semantics include these rules:</p>
499
500 <ul>
501 <li>symbols are case insensitive</li>
502 <li>only one ternary conditional (e.g. x ? y : z) per statement</li>
503 <li>statements are assignments or the final expression to return</li>
504 <li>an assignment starts a statement, it is not an operator</li>
505 <li>single character variables are reserved. Assignments to reserved built-ins throw an exception; e.g. <code>r=3.0; r</code> returns <em>Attempted assignment to non-UserSymbol 'r' at '3.0'</em>.</li>
506 <li>unary operators have a lower priority than binary operators, that is, the unary minus (negation) has lower precedence than exponentiation, so -3^2 is interpreted as -(3^2) = -9. Use parentheses to clarify your intent (e.g. (-3)^2 = 9).</li>
507 <li>care must be exercised when using the slash ('/') symbol. The string of characters <var>1/2x</var> is interpreted as (1/2)x. The contrary interpretation should be written explicitly as 1/(2x). Again, the use of parentheses helps clarify the meaning and should be used whenever there is any chance of misinterpretation.</li>
508 <li>As <code>--</code> is the variable decrement operator, use parenthesis to subtract a negative number, e.g, <code>-4-(-5)</code>.</li>
509 </ul>
510 <br/>
511
512
513 <h4>Source Images</h4>
514
515 <p>The symbols <code>u</code> and <code>v</code> refer to the first and second images, respectively, in the current image sequence. Refer to a particular image in a sequence by appending its index to any image reference (usually <code>u</code>), with a zero index for the beginning of the sequence. A negative index counts from the end. For example, <code>u[0]</code> is the first image in the sequence, <code>u[2]</code> is the third, <code>u[-1]</code> is the last image, and <code>u[t]</code> is the current image. The current image can also be referenced by <code>s</code>. If the sequence number exceeds the length of the sequence, the count is wrapped. Thus in a 3-image sequence, <code>u[-1]</code>, <code>u[2]</code>, and <code>u[5]</code> all refer to the same (third) image.</p>
516
517 <p>As an example, we form an image by averaging the first image and third images (the second (index 1) image is ignored and just junked):</p>
518
519 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick image1.jpg image2.jpg image3.jpg -fx "(u+u[2])/2" image.jpg
520 </samp></pre>
521
522 <p>By default, the image to which <code>p</code>, <code>r</code>, <code>g</code>, <code>b</code>, <code>a</code>, etc., are applied is the current image <code>s</code> in the image list. This is equivalent to <code>u</code> except when used in an escape sequence <code>%[fx:...]</code>. </p>
523
524 <p>It is important to note the special role played by the first image. This is the only image in the image sequence that is modified, other images are used only for their data. As an illustrative example, consider the following, and note that the setting <a href="../command-line-options/index.html#channel">-channel red</a> instructs <a href="../command-line-options/index.html#fx">-fx</a> to modify only the green channel; nothing in the red or blue channels will change. It is instructive to ponder why the result is not symmetric.</p>
525
526 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick logo: -flop logo: -resize "20%" -channel green -fx "(u+v)/2" image.jpg
527 </samp></pre>
528
529 <ul>
530 <a href="../image/logo-sm-flop.png"><img src="../image/logo-sm-flop.png" width="128" height="96" alt="logo-sm-flop.png" /></a>
531 <a href="../image/logo-sm.png"><img src="../image/logo-sm.png" width="128" height="96" alt="logo-sm.png" /></a>
532 <img style="margin-top:38px; margin-bottom:38px;" src="../image/right.gif" width="20" height="20" alt="==>" />
533 <a href="../image/logo-sm-fx.png"><img src="../image/logo-sm-fx.png" width="128" height="96" alt="logo-sm-fx.png" /></a>
534 </ul>
535
536 <br/>
537 <h4>Accessing Pixels</h4>
538
539 <p>All color values are normalized to the range of 0.0 to 1.0. The alpha channel ranges from 0.0 (fully transparent) to 1.0 (fully opaque).</p>
540
541 <p>The pixels are processed one at a time, but a different pixel of an image can be specified using a pixel index represented by <code>p</code>. For example,</p>
542
543 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>p[-1].g green value of pixel to the immediate left of the current pixel
544 p[-1,-1].r red value of the pixel diagonally left and up from current pixel
545 </code></pre>
546
547 <p>To specify an absolute position, use braces, rather than brackets.</p>
548
549 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><code>p{0,0}.r red value of the pixel in the upper left corner of the image
550 p{12,34}.b blue pixel value at column number 12, row 34 of the image
551 </code></pre>
552
553 <p>Integer values of the position retrieve the color of the pixel referenced, while non-integer position values return a blended color according to the current <a href="../command-line-options/index.html#interpolate">-interpolate</a> setting.</p>
554
555 <p>A position outside the boundary of the image retrieves a value dictated by the <a href="../command-line-options/index.html#virtual-pixel">-virtual-pixel</a> option setting.</p>
556
557 <p>Specify <code>u.r</code> to specify the red channel of the current image. If you don't specify a channel qualifier, you get the current channel. Use <code>mean.this</code> to set the output channel to the mean of just the input channel. Use <code>mean.all</code> to set the overall mean of the input channels.</p>
558
559 <h4>Apply an Expression to Select Image Channels</h4>
560
561 <p>Use the <a href="../command-line-options/index.html#channel">-channel</a> setting to specify the output channel of the result. If no output channel is given, the result is set over all channels except the opacity channel. For example, to replace the red channel of <code>alpha.png</code> with the average of the green channels from the images <code>alpha.png</code> and <code>beta.png</code>, use:</p>
562
563 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick alpha.png beta.png -channel red -fx "(u.g+v.g)/2" gamma.png
564 </samp></pre>
565
566
567 <h4>Results</h4>
568
569 <p>The <a href="../command-line-options/index.html#fx">-fx</a> operator evaluates the given expression for each channel (set by <a href="../command-line-options/index.html#channel">-channel</a>) of each pixel in the first image (<code>u</code>) in the sequence. The computed values are temporarily stored in a copy (clone) of that first image until all the pixels have been processed, after which this single new image replaces the list of images in the current image sequence. As such, in the previous example the updated version of <code>alpha.png</code> replaces both of the original images, <code>alpha.png</code> and <code>beta.png</code>, before being saved as <code>gamma.png</code>.</p>
570
571 <p>The current image <code>s</code> is set to the first image in the sequence (<code>u</code>), and <code>t</code> to its index, 0. The symbols <code>i</code> and <code>j</code> reference the current pixel being processed.</p>
572
573
574 <p>For use with <a href="../command-line-options/index.html#format_identify_">-format</a>, the value-escape <code>%[fx:]</code> is evaluated just once for each image in the current image sequence. As each image in the sequence is being evaluated, <code>s</code> and <code>t</code> successively refer to the current image and its index, while <code>i</code> and <code>j</code> are set to zero, and the current channel set to red (<a href="../command-line-options/index.html#channel">-channel</a> is ignored). An example:</p>
575
576 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary"><samp>$ magick canvas:'rgb(25%,50%,75%)' rose: -colorspace gray \
577 -format 'Red channel of NW corner of image #%[fx:t] is %[fx:s]\n' info:
578 Red channel of NW corner of image #0 is 0.464883
579 Red channel of NW corner of image #1 is 0.184582
580 </samp></pre>
581
582 <p>Here we use the image indexes to <var>rotate</var> each image differently, and use <code>-set</code> with the image index to set a different <var>pause delay</var> on the first image in the animation:</p>
583
584 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>$ magick rose: -duplicate 29 -virtual-pixel Gray -distort SRT '%[fx:360.0*t/n]' \
585 -set delay '%[fx:t == 0 ? 240 : 10]' -loop 0 rose.gif
586 </samp></pre>
587
588 <p>This example tests the difference between two images, measured by RMSE. If the difference is greater than 0.1 it returns 1; otherwise it returns 0:</p>
589
590 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><pre><samp>$ magick water.png reference.png -metric RMSE -compare -format "%[fx:%[distortion]>0.1]" info:</samp></pre></pre>
591
592 <p>The color-escape <code>%[pixel:]</code> or <code>%[hex:]</code> is evaluated once per image and per color channel in that image (<a href="../command-line-options/index.html#channel">-channel</a> is ignored), The values generated are then converted into a color string (a named color or hex color value). The symbols <code>i</code> and <code>j</code> are set to zero, and <code>s</code> and <code>t</code> refer to each successively current image and index.</p>
593
594 <p>The <code>epoch()</code> method takes an date-time property, for example:</p>
595 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><pre><samp>$ magick rose.png -precision 16 -format '%[fx:epoch(%%[date:modify])]' info:</samp></pre></pre>
596
597 </div>
598
599 </div>
600 <div class="col-md-3">
601 <div class="container text-center my-3">
602 <a href="../image/wizard.png" rel="noopener noreferrer" target="_blank">
•603 <img alt="The Tao of the Spiritual Warrior" class="img-fluid img-thumbnail" height="1468" loading="lazy" src="../image/wizard.png" width="1104" />
604 </a>
605 <p class="mt-2"><iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe></p>
606 </div>
607 <div class="container text-center my-3">
•608 <script async="true" src="https://localhost/pagead/js/adsbygoogle.js?client=ca-pub-3129977114552745"
609 crossorigin="anonymous"></script>
610 <!-- Banner Ad -->
611 <ins class="adsbygoogle"
612 style="display:block"
613 data-ad-client="ca-pub-3129977114552745"
614 data-ad-slot="1083537442"
615 data-ad-format="auto"
616 data-full-width-responsive="true"></ins>
617 <script>
618 (adsbygoogle = window.adsbygoogle || []).push({});
619 </script>
620 </div>
621 </div>
622 </div>
623 <a aria-label="About ImageMagick" class="btn btn-outline-warning mt-3" href="../index-2.html">About ImageMagick</a>
624 </main><!-- /.container -->
625 <footer class="text-center pt-5 my-5 text-body-secondary border-top">
626 <div class="container-fluid">
627 <a href="../security-policy/index.html">Security</a> •
628 <a href="../news/index.html">News</a>
•629
630 <a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../image/wand.ico" /></a>
631
632 <a href="../links/index.html">Related</a> •
633 <a href="../sitemap/index.html">Sitemap</a>
•634 <br />
635 <a href="../support/index.html">Sponsor</a> •
636 <a href="../cite/index.html">Cite</a> •
637 <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
638 <a href="https://github.com/ImageMagick/ImageMagick/discussions">Contact Us</a>
•639 <br />
640 <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">
641 <title>GitHub</title>
642 <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" />
643 </svg></a> •
644 <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">
645 <title>Twitter</title>
646 <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" />
647 </svg></a>
•648 <br />
649 <small>Copyright © 1999 ImageMagick Studio LLC</small>
650 </div>
651 </footer>
652 <div style="visibility: hidden;">
653 <div class="gcse-search"></div>
654 </div>
655 </div>
656
657 <!-- Javascript assets -->
658 <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
659 </body>
660
661
662 </html>