MagickCore  7.1.0
Convert, Edit, Or Compose Bitmap Images
option.c
1 /*
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % %
4 % %
5 % %
6 % OOO PPPP TTTTT IIIII OOO N N %
7 % O O P P T I O O NN N %
8 % O O PPPP T I O O N N N %
9 % O O P T I O O N NN %
10 % OOO P T IIIII OOO N N %
11 % %
12 % %
13 % MagickCore Option Methods %
14 % %
15 % Software Design %
16 % Cristy %
17 % March 2000 %
18 % %
19 % %
20 % Copyright @ 2000 ImageMagick Studio LLC, a non-profit organization %
21 % dedicated to making software imaging solutions freely available. %
22 % %
23 % You may not use this file except in compliance with the License. You may %
24 % obtain a copy of the License at %
25 % %
26 % https://imagemagick.org/script/license.php %
27 % %
28 % Unless required by applicable law or agreed to in writing, software %
29 % distributed under the License is distributed on an "AS IS" BASIS, %
30 % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
31 % See the License for the specific language governing permissions and %
32 % limitations under the License. %
33 % %
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35 %
36 %
37 %
38 */
39 ␌
40 /*
41  Include declarations.
42 */
43 #include "MagickCore/studio.h"
44 #include "MagickCore/artifact.h"
45 #include "MagickCore/cache.h"
46 #include "MagickCore/color.h"
47 #include "MagickCore/compare.h"
48 #include "MagickCore/constitute.h"
49 #include "MagickCore/distort.h"
50 #include "MagickCore/draw.h"
51 #include "MagickCore/effect.h"
52 #include "MagickCore/exception.h"
53 #include "MagickCore/exception-private.h"
54 #include "MagickCore/fourier.h"
55 #include "MagickCore/gem.h"
56 #include "MagickCore/geometry.h"
57 #include "MagickCore/image.h"
58 #include "MagickCore/image-private.h"
59 #include "MagickCore/layer.h"
60 #include "MagickCore/mime-private.h"
61 #include "MagickCore/memory_.h"
62 #include "MagickCore/monitor.h"
63 #include "MagickCore/montage.h"
64 #include "MagickCore/morphology.h"
65 #include "MagickCore/option.h"
66 #include "MagickCore/option-private.h"
67 #include "MagickCore/pixel.h"
68 #include "MagickCore/policy.h"
69 #include "MagickCore/property.h"
70 #include "MagickCore/quantize.h"
71 #include "MagickCore/quantum.h"
72 #include "MagickCore/registry.h"
73 #include "MagickCore/resample.h"
74 #include "MagickCore/resource_.h"
75 #include "MagickCore/splay-tree.h"
76 #include "MagickCore/statistic.h"
77 #include "MagickCore/string_.h"
78 #include "MagickCore/threshold.h"
79 #include "MagickCore/token.h"
80 #include "MagickCore/utility.h"
81 #include "MagickCore/visual-effects.h"
82 ␌
83 /*
84  ImageMagick options.
85 */
86 static const OptionInfo
87  AlignOptions[] =
88  {
89  { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
90  { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
91  { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
92  { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
93  { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
94  { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
95  { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
96  { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
97  },
98  AlphaChannelOptions[] =
99  {
100  { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
101  { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
102  { "Associate", AssociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
103  { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
104  { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
105  { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
106  { "Discrete", DiscreteAlphaChannel, UndefinedOptionFlag, MagickFalse },
107  { "Disassociate", DisassociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
108  { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
109  { "Off", OffAlphaChannel, UndefinedOptionFlag, MagickFalse },
110  { "On", OnAlphaChannel, UndefinedOptionFlag, MagickFalse },
111  { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
112  { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
113  { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
114  { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
115  { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
116  { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
117  { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
118  },
119  AutoThresholdOptions[] =
120  {
121  { "Undefined", UndefinedThresholdMethod, UndefinedOptionFlag, MagickTrue },
122  { "Kapur", KapurThresholdMethod, UndefinedOptionFlag, MagickFalse },
123  { "OTSU", OTSUThresholdMethod, UndefinedOptionFlag, MagickFalse },
124  { "Triangle", TriangleThresholdMethod, UndefinedOptionFlag, MagickFalse },
125  { (char *) NULL, UndefinedThresholdMethod, UndefinedOptionFlag, MagickFalse }
126  },
127  BooleanOptions[] =
128  {
129  { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
130  { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
131  { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
132  { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
133  { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
134  },
135  CacheOptions[] =
136  {
137  { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
138  { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
139  { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
140  { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
141  { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
142  { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
143  },
144  ChannelOptions[] =
145  {
146  { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
147  /* special */
148  { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
149  { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
150  { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
151  /* individual channel */
152  { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
153  { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
154  { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
155  { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
156  { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
157  { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
158  { "Chroma", GreenChannel, UndefinedOptionFlag, MagickFalse },
159  { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
160  { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
161  { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
162  { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
163  { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
164  { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
165  { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
166  { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
167  { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
168  { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
169  { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
170  { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
171  { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
172  { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
173  { "Meta", MetaChannel, UndefinedOptionFlag, MagickFalse },
174  { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
175  { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
176  { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
177  { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
178  { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
179  { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
180  { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
181  { "0", (((ssize_t) 1) << 0), UndefinedOptionFlag, MagickFalse },
182  { "1", (((ssize_t) 1) << 1), UndefinedOptionFlag, MagickFalse },
183  { "2", (((ssize_t) 1) << 2), UndefinedOptionFlag, MagickFalse },
184  { "3", (((ssize_t) 1) << 3), UndefinedOptionFlag, MagickFalse },
185  { "4", (((ssize_t) 1) << 4), UndefinedOptionFlag, MagickFalse },
186  { "5", (((ssize_t) 1) << 5), UndefinedOptionFlag, MagickFalse },
187  { "6", (((ssize_t) 1) << 6), UndefinedOptionFlag, MagickFalse },
188  { "7", (((ssize_t) 1) << 7), UndefinedOptionFlag, MagickFalse },
189  { "8", (((ssize_t) 1) << 8), UndefinedOptionFlag, MagickFalse },
190  { "9", (((ssize_t) 1) << 9), UndefinedOptionFlag, MagickFalse },
191  { "10", (((ssize_t) 1) << 10), UndefinedOptionFlag, MagickFalse },
192  { "11", (((ssize_t) 1) << 11), UndefinedOptionFlag, MagickFalse },
193  { "12", (((ssize_t) 1) << 12), UndefinedOptionFlag, MagickFalse },
194  { "13", (((ssize_t) 1) << 13), UndefinedOptionFlag, MagickFalse },
195  { "14", (((ssize_t) 1) << 14), UndefinedOptionFlag, MagickFalse },
196  { "15", (((ssize_t) 1) << 15), UndefinedOptionFlag, MagickFalse },
197  { "16", (((ssize_t) 1) << 16), UndefinedOptionFlag, MagickFalse },
198  { "17", (((ssize_t) 1) << 17), UndefinedOptionFlag, MagickFalse },
199  { "18", (((ssize_t) 1) << 18), UndefinedOptionFlag, MagickFalse },
200  { "19", (((ssize_t) 1) << 19), UndefinedOptionFlag, MagickFalse },
201  { "20", (((ssize_t) 1) << 20), UndefinedOptionFlag, MagickFalse },
202  { "21", (((ssize_t) 1) << 21), UndefinedOptionFlag, MagickFalse },
203  { "22", (((ssize_t) 1) << 22), UndefinedOptionFlag, MagickFalse },
204  { "23", (((ssize_t) 1) << 23), UndefinedOptionFlag, MagickFalse },
205  { "24", (((ssize_t) 1) << 24), UndefinedOptionFlag, MagickFalse },
206  { "25", (((ssize_t) 1) << 25), UndefinedOptionFlag, MagickFalse },
207  { "26", (((ssize_t) 1) << 26), UndefinedOptionFlag, MagickFalse },
208  { "27", (((ssize_t) 1) << 27), UndefinedOptionFlag, MagickFalse },
209  { "28", (((ssize_t) 1) << 28), UndefinedOptionFlag, MagickFalse },
210  { "29", (((ssize_t) 1) << 29), UndefinedOptionFlag, MagickFalse },
211  { "30", (((ssize_t) 1) << 30), UndefinedOptionFlag, MagickFalse },
212  { "31", (((ssize_t) 1) << 31), UndefinedOptionFlag, MagickFalse },
213 #if MAGICKCORE_SIZEOF_SSIZE_T > 4
214  { "32", (((ssize_t) 1) << 32), UndefinedOptionFlag, MagickFalse },
215  { "33", (((ssize_t) 1) << 33), UndefinedOptionFlag, MagickFalse },
216  { "34", (((ssize_t) 1) << 34), UndefinedOptionFlag, MagickFalse },
217  { "35", (((ssize_t) 1) << 35), UndefinedOptionFlag, MagickFalse },
218  { "36", (((ssize_t) 1) << 36), UndefinedOptionFlag, MagickFalse },
219  { "37", (((ssize_t) 1) << 37), UndefinedOptionFlag, MagickFalse },
220  { "38", (((ssize_t) 1) << 38), UndefinedOptionFlag, MagickFalse },
221  { "39", (((ssize_t) 1) << 39), UndefinedOptionFlag, MagickFalse },
222  { "40", (((ssize_t) 1) << 40), UndefinedOptionFlag, MagickFalse },
223  { "41", (((ssize_t) 1) << 41), UndefinedOptionFlag, MagickFalse },
224  { "42", (((ssize_t) 1) << 42), UndefinedOptionFlag, MagickFalse },
225  { "43", (((ssize_t) 1) << 43), UndefinedOptionFlag, MagickFalse },
226  { "44", (((ssize_t) 1) << 44), UndefinedOptionFlag, MagickFalse },
227  { "45", (((ssize_t) 1) << 45), UndefinedOptionFlag, MagickFalse },
228  { "46", (((ssize_t) 1) << 46), UndefinedOptionFlag, MagickFalse },
229  { "47", (((ssize_t) 1) << 47), UndefinedOptionFlag, MagickFalse },
230  { "48", (((ssize_t) 1) << 48), UndefinedOptionFlag, MagickFalse },
231  { "49", (((ssize_t) 1) << 49), UndefinedOptionFlag, MagickFalse },
232  { "50", (((ssize_t) 1) << 50), UndefinedOptionFlag, MagickFalse },
233  { "51", (((ssize_t) 1) << 41), UndefinedOptionFlag, MagickFalse },
234  { "52", (((ssize_t) 1) << 52), UndefinedOptionFlag, MagickFalse },
235  { "53", (((ssize_t) 1) << 53), UndefinedOptionFlag, MagickFalse },
236  { "54", (((ssize_t) 1) << 54), UndefinedOptionFlag, MagickFalse },
237  { "55", (((ssize_t) 1) << 55), UndefinedOptionFlag, MagickFalse },
238  { "56", (((ssize_t) 1) << 56), UndefinedOptionFlag, MagickFalse },
239  { "57", (((ssize_t) 1) << 57), UndefinedOptionFlag, MagickFalse },
240  { "58", (((ssize_t) 1) << 58), UndefinedOptionFlag, MagickFalse },
241  { "59", (((ssize_t) 1) << 59), UndefinedOptionFlag, MagickFalse },
242  { "60", (((ssize_t) 1) << 60), UndefinedOptionFlag, MagickFalse },
243  { "61", (((ssize_t) 1) << 61), UndefinedOptionFlag, MagickFalse },
244  { "62", (((ssize_t) 1) << 62), UndefinedOptionFlag, MagickFalse },
245  { "63", (((ssize_t) 1) << 63), UndefinedOptionFlag, MagickFalse },
246 #endif
247  { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
248  },
249  ClassOptions[] =
250  {
251  { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
252  { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
253  { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
254  { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
255  },
256  CLIOptions[] =
257  {
258  { "Setting", 0, UndefinedOptionFlag, MagickFalse },
259  { " adjoin", 0, UndefinedOptionFlag, MagickFalse },
260  { " affine", 0, UndefinedOptionFlag, MagickFalse },
261  { " alpha", 0, UndefinedOptionFlag, MagickFalse },
262  { " antialias", 0, UndefinedOptionFlag, MagickFalse },
263  { " authenticate", 0, UndefinedOptionFlag, MagickFalse },
264  { " background", 0, UndefinedOptionFlag, MagickFalse },
265  { " bias", 0, UndefinedOptionFlag, MagickFalse },
266  { " bilateral-blur", 0, UndefinedOptionFlag, MagickFalse },
267  { " black-point-compensation", 0, UndefinedOptionFlag, MagickFalse },
268  { " blue-primary", 0, UndefinedOptionFlag, MagickFalse },
269  { " bordercolor", 0, UndefinedOptionFlag, MagickFalse },
270  { " caption", 0, UndefinedOptionFlag, MagickFalse },
271  { " channel", 0, UndefinedOptionFlag, MagickFalse },
272  { " comment", 0, UndefinedOptionFlag, MagickFalse },
273  { " compress", 0, UndefinedOptionFlag, MagickFalse },
274  { " debug", 0, UndefinedOptionFlag, MagickFalse },
275  { " define", 0, UndefinedOptionFlag, MagickFalse },
276  { " delay", 0, UndefinedOptionFlag, MagickFalse },
277  { " density", 0, UndefinedOptionFlag, MagickFalse },
278  { " depth", 0, UndefinedOptionFlag, MagickFalse },
279  { " direction", 0, UndefinedOptionFlag, MagickFalse },
280  { " display", 0, UndefinedOptionFlag, MagickFalse },
281  { " dispose", 0, UndefinedOptionFlag, MagickFalse },
282  { " dither", 0, UndefinedOptionFlag, MagickFalse },
283  { " encoding", 0, UndefinedOptionFlag, MagickFalse },
284  { " endian", 0, UndefinedOptionFlag, MagickFalse },
285  { " extract", 0, UndefinedOptionFlag, MagickFalse },
286  { " family", 0, UndefinedOptionFlag, MagickFalse },
287  { " fill", 0, UndefinedOptionFlag, MagickFalse },
288  { " filter", 0, UndefinedOptionFlag, MagickFalse },
289  { " font", 0, UndefinedOptionFlag, MagickFalse },
290  { " format", 0, UndefinedOptionFlag, MagickFalse },
291  { " fuzz", 0, UndefinedOptionFlag, MagickFalse },
292  { " geometry", 0, UndefinedOptionFlag, MagickFalse },
293  { " gravity", 0, UndefinedOptionFlag, MagickFalse },
294  { " green-primary", 0, UndefinedOptionFlag, MagickFalse },
295  { " interlace", 0, UndefinedOptionFlag, MagickFalse },
296  { " intent", 0, UndefinedOptionFlag, MagickFalse },
297  { " interpolate", 0, UndefinedOptionFlag, MagickFalse },
298  { " label", 0, UndefinedOptionFlag, MagickFalse },
299  { " limit", 0, UndefinedOptionFlag, MagickFalse },
300  { " linewidth", 0, UndefinedOptionFlag, MagickFalse },
301  { " log", 0, UndefinedOptionFlag, MagickFalse },
302  { " loop", 0, UndefinedOptionFlag, MagickFalse },
303  { " mattecolor", 0, UndefinedOptionFlag, MagickFalse },
304  { " monitor", 0, UndefinedOptionFlag, MagickFalse },
305  { " orient", 0, UndefinedOptionFlag, MagickFalse },
306  { " page", 0, UndefinedOptionFlag, MagickFalse },
307  { " pointsize", 0, UndefinedOptionFlag, MagickFalse },
308  { " preview", 0, UndefinedOptionFlag, MagickFalse },
309  { " quality", 0, UndefinedOptionFlag, MagickFalse },
310  { " quiet", 0, UndefinedOptionFlag, MagickFalse },
311  { " read-mask", 0, UndefinedOptionFlag, MagickFalse },
312  { " red-primary", 0, UndefinedOptionFlag, MagickFalse },
313  { " region", 0, UndefinedOptionFlag, MagickFalse },
314  { " render", 0, UndefinedOptionFlag, MagickFalse },
315  { " repage", 0, UndefinedOptionFlag, MagickFalse },
316  { " sampling-factor", 0, UndefinedOptionFlag, MagickFalse },
317  { " scene", 0, UndefinedOptionFlag, MagickFalse },
318  { " seed", 0, UndefinedOptionFlag, MagickFalse },
319  { " size", 0, UndefinedOptionFlag, MagickFalse },
320  { " stretch", 0, UndefinedOptionFlag, MagickFalse },
321  { " stroke", 0, UndefinedOptionFlag, MagickFalse },
322  { " strokewidth", 0, UndefinedOptionFlag, MagickFalse },
323  { " style", 0, UndefinedOptionFlag, MagickFalse },
324  { " texture", 0, UndefinedOptionFlag, MagickFalse },
325  { " tile", 0, UndefinedOptionFlag, MagickFalse },
326  { " transparent-color", 0, UndefinedOptionFlag, MagickFalse },
327  { " treedepth", 0, UndefinedOptionFlag, MagickFalse },
328  { " type", 0, UndefinedOptionFlag, MagickFalse },
329  { " undercolor", 0, UndefinedOptionFlag, MagickFalse },
330  { " units", 0, UndefinedOptionFlag, MagickFalse },
331  { " verbose", 0, UndefinedOptionFlag, MagickFalse },
332  { " virtual-pixel", 0, UndefinedOptionFlag, MagickFalse },
333  { " weight", 0, UndefinedOptionFlag, MagickFalse },
334  { " write-mask", 0, UndefinedOptionFlag, MagickFalse },
335  { "Operator", 0, UndefinedOptionFlag, MagickFalse },
336  { " annotate", 0, UndefinedOptionFlag, MagickFalse },
337  { " black-threshold", 0, UndefinedOptionFlag, MagickFalse },
338  { " blur", 0, UndefinedOptionFlag, MagickFalse },
339  { " border", 0, UndefinedOptionFlag, MagickFalse },
340  { " charcoal", 0, UndefinedOptionFlag, MagickFalse },
341  { " chop", 0, UndefinedOptionFlag, MagickFalse },
342  { " clip", 0, UndefinedOptionFlag, MagickFalse },
343  { " clip-path", 0, UndefinedOptionFlag, MagickFalse },
344  { " clip-mask", 0, UndefinedOptionFlag, MagickFalse },
345  { " colors", 0, UndefinedOptionFlag, MagickFalse },
346  { " colorize", 0, UndefinedOptionFlag, MagickFalse },
347  { " colorspace", 0, UndefinedOptionFlag, MagickFalse },
348  { " color-threshold", 0, UndefinedOptionFlag, MagickFalse },
349  { " compose", 0, UndefinedOptionFlag, MagickFalse },
350  { " contrast", 0, UndefinedOptionFlag, MagickFalse },
351  { " convolve", 0, UndefinedOptionFlag, MagickFalse },
352  { " crop", 0, UndefinedOptionFlag, MagickFalse },
353  { " cycle", 0, UndefinedOptionFlag, MagickFalse },
354  { " despeckle", 0, UndefinedOptionFlag, MagickFalse },
355  { " draw", 0, UndefinedOptionFlag, MagickFalse },
356  { " edge", 0, UndefinedOptionFlag, MagickFalse },
357  { " emboss", 0, UndefinedOptionFlag, MagickFalse },
358  { " enhance", 0, UndefinedOptionFlag, MagickFalse },
359  { " equalize", 0, UndefinedOptionFlag, MagickFalse },
360  { " evaluate", 0, UndefinedOptionFlag, MagickFalse },
361  { " extent", 0, UndefinedOptionFlag, MagickFalse },
362  { " flip", 0, UndefinedOptionFlag, MagickFalse },
363  { " flop", 0, UndefinedOptionFlag, MagickFalse },
364  { " floodfill", 0, UndefinedOptionFlag, MagickFalse },
365  { " frame", 0, UndefinedOptionFlag, MagickFalse },
366  { " gamma", 0, UndefinedOptionFlag, MagickFalse },
367  { " gaussian-blur", 0, UndefinedOptionFlag, MagickFalse },
368  { " grayscale", 0, UndefinedOptionFlag, MagickFalse },
369  { " implode", 0, UndefinedOptionFlag, MagickFalse },
370  { " integral", 0, UndefinedOptionFlag, MagickFalse },
371  { " kmeans", 0, UndefinedOptionFlag, MagickFalse },
372  { " lat", 0, UndefinedOptionFlag, MagickFalse },
373  { " level", 0, UndefinedOptionFlag, MagickFalse },
374  { " map", 0, UndefinedOptionFlag, MagickFalse },
375  { " median", 0, UndefinedOptionFlag, MagickFalse },
376  { " modulate", 0, UndefinedOptionFlag, MagickFalse },
377  { " monochrome", 0, UndefinedOptionFlag, MagickFalse },
378  { " negate", 0, UndefinedOptionFlag, MagickFalse },
379  { " noise", 0, UndefinedOptionFlag, MagickFalse },
380  { " normalize", 0, UndefinedOptionFlag, MagickFalse },
381  { " opaque", 0, UndefinedOptionFlag, MagickFalse },
382  { " ordered-dither", 0, UndefinedOptionFlag, MagickFalse },
383  { " paint", 0, UndefinedOptionFlag, MagickFalse },
384  { " posterize", 0, UndefinedOptionFlag, MagickFalse },
385  { " raise", 0, UndefinedOptionFlag, MagickFalse },
386  { " profile", 0, UndefinedOptionFlag, MagickFalse },
387  { " radial-blur", 0, UndefinedOptionFlag, MagickFalse },
388  { " raise", 0, UndefinedOptionFlag, MagickFalse },
389  { " random-threshold", 0, UndefinedOptionFlag, MagickFalse },
390  { " range-threshold", 0, UndefinedOptionFlag, MagickFalse },
391  { " resample", 0, UndefinedOptionFlag, MagickFalse },
392  { " resize", 0, UndefinedOptionFlag, MagickFalse },
393  { " roll", 0, UndefinedOptionFlag, MagickFalse },
394  { " rotate", 0, UndefinedOptionFlag, MagickFalse },
395  { " sample", 0, UndefinedOptionFlag, MagickFalse },
396  { " scale", 0, UndefinedOptionFlag, MagickFalse },
397  { " sepia-tone", 0, UndefinedOptionFlag, MagickFalse },
398  { " segment", 0, UndefinedOptionFlag, MagickFalse },
399  { " shade", 0, UndefinedOptionFlag, MagickFalse },
400  { " shadow", 0, UndefinedOptionFlag, MagickFalse },
401  { " sharpen", 0, UndefinedOptionFlag, MagickFalse },
402  { " shave", 0, UndefinedOptionFlag, MagickFalse },
403  { " shear", 0, UndefinedOptionFlag, MagickFalse },
404  { " sigmoidal-contrast", 0, UndefinedOptionFlag, MagickFalse },
405  { " solarize", 0, UndefinedOptionFlag, MagickFalse },
406  { " splice", 0, UndefinedOptionFlag, MagickFalse },
407  { " spread", 0, UndefinedOptionFlag, MagickFalse },
408  { " strip", 0, UndefinedOptionFlag, MagickFalse },
409  { " swirl", 0, UndefinedOptionFlag, MagickFalse },
410  { " threshold", 0, UndefinedOptionFlag, MagickFalse },
411  { " transparent", 0, UndefinedOptionFlag, MagickFalse },
412  { " thumbnail", 0, UndefinedOptionFlag, MagickFalse },
413  { " tint", 0, UndefinedOptionFlag, MagickFalse },
414  { " transform", 0, UndefinedOptionFlag, MagickFalse },
415  { " trim", 0, UndefinedOptionFlag, MagickFalse },
416  { " unsharp", 0, UndefinedOptionFlag, MagickFalse },
417  { " version", 0, UndefinedOptionFlag, MagickFalse },
418  { " wave", 0, UndefinedOptionFlag, MagickFalse },
419  { " white-point", 0, UndefinedOptionFlag, MagickFalse },
420  { " white-threshold", 0, UndefinedOptionFlag, MagickFalse },
421  { "Channel Operator", 0, UndefinedOptionFlag, MagickFalse },
422  { " channel-fx", 0, UndefinedOptionFlag, MagickFalse },
423  { " separate", 0, UndefinedOptionFlag, MagickFalse },
424  { "Sequence Operator", 0, UndefinedOptionFlag, MagickFalse },
425  { " append", 0, UndefinedOptionFlag, MagickFalse },
426  { " affinity", 0, UndefinedOptionFlag, MagickFalse },
427  { " average", 0, UndefinedOptionFlag, MagickFalse },
428  { " clut", 0, UndefinedOptionFlag, MagickFalse },
429  { " coalesce", 0, UndefinedOptionFlag, MagickFalse },
430  { " combine", 0, UndefinedOptionFlag, MagickFalse },
431  { " compare", 0, UndefinedOptionFlag, MagickFalse },
432  { " complex", 0, UndefinedOptionFlag, MagickFalse },
433  { " composite", 0, UndefinedOptionFlag, MagickFalse },
434  { " copy", 0, UndefinedOptionFlag, MagickFalse },
435  { " crop", 0, UndefinedOptionFlag, MagickFalse },
436  { " debug", 0, UndefinedOptionFlag, MagickFalse },
437  { " deconstruct", 0, UndefinedOptionFlag, MagickFalse },
438  { " delete", 0, UndefinedOptionFlag, MagickFalse },
439  { " evaluate-sequence", 0, UndefinedOptionFlag, MagickFalse },
440  { " fft", 0, UndefinedOptionFlag, MagickFalse },
441  { " flatten", 0, UndefinedOptionFlag, MagickFalse },
442  { " fx", 0, UndefinedOptionFlag, MagickFalse },
443  { " hald-clut", 0, UndefinedOptionFlag, MagickFalse },
444  { " ift", 0, UndefinedOptionFlag, MagickFalse },
445  { " identify", 0, UndefinedOptionFlag, MagickFalse },
446  { " insert", 0, UndefinedOptionFlag, MagickFalse },
447  { " layers", 0, UndefinedOptionFlag, MagickFalse },
448  { " limit", 0, UndefinedOptionFlag, MagickFalse },
449  { " map", 0, UndefinedOptionFlag, MagickFalse },
450  { " maximum", 0, UndefinedOptionFlag, MagickFalse },
451  { " minimum", 0, UndefinedOptionFlag, MagickFalse },
452  { " morph", 0, UndefinedOptionFlag, MagickFalse },
453  { " mosaic", 0, UndefinedOptionFlag, MagickFalse },
454  { " optimize", 0, UndefinedOptionFlag, MagickFalse },
455  { " print", 0, UndefinedOptionFlag, MagickFalse },
456  { " process", 0, UndefinedOptionFlag, MagickFalse },
457  { " quiet", 0, UndefinedOptionFlag, MagickFalse },
458  { " swap", 0, UndefinedOptionFlag, MagickFalse },
459  { " write", 0, UndefinedOptionFlag, MagickFalse },
460  { "Geometry", 0, UndefinedOptionFlag, MagickFalse },
461  { " adaptive-resize", 0, UndefinedOptionFlag, MagickFalse },
462  { " border", 0, UndefinedOptionFlag, MagickFalse },
463  { " borderwidth", 0, UndefinedOptionFlag, MagickFalse },
464  { " chop", 0, UndefinedOptionFlag, MagickFalse },
465  { " crop", 0, UndefinedOptionFlag, MagickFalse },
466  { " density", 0, UndefinedOptionFlag, MagickFalse },
467  { " extent", 0, UndefinedOptionFlag, MagickFalse },
468  { " extract", 0, UndefinedOptionFlag, MagickFalse },
469  { " frame", 0, UndefinedOptionFlag, MagickFalse },
470  { " geometry", 0, UndefinedOptionFlag, MagickFalse },
471  { " iconGeometry", 0, UndefinedOptionFlag, MagickFalse },
472  { " liquid-rescale", 0, UndefinedOptionFlag, MagickFalse },
473  { " page", 0, UndefinedOptionFlag, MagickFalse },
474  { " region", 0, UndefinedOptionFlag, MagickFalse },
475  { " repage", 0, UndefinedOptionFlag, MagickFalse },
476  { " resize", 0, UndefinedOptionFlag, MagickFalse },
477  { " sample", 0, UndefinedOptionFlag, MagickFalse },
478  { " scale", 0, UndefinedOptionFlag, MagickFalse },
479  { " shave", 0, UndefinedOptionFlag, MagickFalse },
480  { " splice", 0, UndefinedOptionFlag, MagickFalse },
481  { " thumbnail", 0, UndefinedOptionFlag, MagickFalse },
482  { " window", 0, UndefinedOptionFlag, MagickFalse },
483  { "Stack", 0, UndefinedOptionFlag, MagickFalse },
484  { " clone", 0, UndefinedOptionFlag, MagickFalse },
485  { " delete", 0, UndefinedOptionFlag, MagickFalse },
486  { " insert", 0, UndefinedOptionFlag, MagickFalse },
487  { " swap", 0, UndefinedOptionFlag, MagickFalse },
488  { (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
489  },
490  ClipPathOptions[] =
491  {
492  { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
493  { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
494  { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
495  { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
496  { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
497  },
498  ColorspaceOptions[] =
499  {
500  { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
501  { "Adobe98", Adobe98Colorspace, UndefinedOptionFlag, MagickFalse },
502  { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
503  { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
504  { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
505  { "DisplayP3", DisplayP3Colorspace, UndefinedOptionFlag, MagickFalse },
506  { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
507  { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
508  { "HCLp", HCLpColorspace, UndefinedOptionFlag, MagickFalse },
509  { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
510  { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
511  { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
512  { "HSV", HSVColorspace, UndefinedOptionFlag, MagickFalse },
513  { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
514  { "Jzazbz", JzazbzColorspace, UndefinedOptionFlag, MagickFalse },
515  { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
516  { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
517  { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
518  { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
519  { "LinearGray", LinearGRAYColorspace, UndefinedOptionFlag, MagickFalse },
520  { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
521  { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
522  { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
523  { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
524  { "ProPhoto", ProPhotoColorspace, UndefinedOptionFlag, MagickFalse },
525  { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
526  { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
527  { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
528  { "scRGB", scRGBColorspace, UndefinedOptionFlag, MagickFalse },
529  { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
530  { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
531  { "xyY", xyYColorspace, UndefinedOptionFlag, MagickFalse },
532  { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
533  { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
534  { "YDbDr", YDbDrColorspace, UndefinedOptionFlag, MagickFalse },
535  { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
536  { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
537  { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
538  { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
539  { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
540  },
541  ComplexOptions[] =
542  {
543  { "Undefined", UndefinedComplexOperator, UndefinedOptionFlag, MagickTrue },
544  { "Add", AddComplexOperator, UndefinedOptionFlag, MagickFalse },
545  { "Conjugate", ConjugateComplexOperator, UndefinedOptionFlag, MagickFalse },
546  { "Divide", DivideComplexOperator, UndefinedOptionFlag, MagickFalse },
547  { "MagnitudePhase", MagnitudePhaseComplexOperator, UndefinedOptionFlag, MagickFalse },
548  { "Multiply", MultiplyComplexOperator, UndefinedOptionFlag, MagickFalse },
549  { "RealImaginary", RealImaginaryComplexOperator, UndefinedOptionFlag, MagickFalse },
550  { "Subtract", SubtractComplexOperator, UndefinedOptionFlag, MagickFalse },
551  { (char *) NULL, UndefinedComplexOperator, UndefinedOptionFlag, MagickFalse }
552  },
553  CommandOptions[] =
554  {
555  /*
556  Must be ordered lexigraphically.
557  */
558  { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
559  { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
560  { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
561  { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
562  { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
563  { "-format", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
564  { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
565  { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
566  { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
567  { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
568  { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
569  { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
570  { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
571  { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
572  { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
573  { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
574  { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
575  { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
576  { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
577  { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
578  { "(", 0L, NoImageOperatorFlag, MagickTrue },
579  { ")", 0L, NoImageOperatorFlag, MagickTrue },
580  { "{", 0L, NoImageOperatorFlag, MagickTrue },
581  { "}", 0L, NoImageOperatorFlag, MagickTrue },
582  { "--", 1L, NoImageOperatorFlag, MagickTrue },
583  { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
584  { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
585  { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
586  { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
587  { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
588  { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
589  { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
590  { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
591  { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
592  { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
593  { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
594  { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
595  { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
596  { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
597  { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
598  { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
599  { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
600  { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
601  { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
602  { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
603  { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
604  { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
605  { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
606  { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
607  { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
608  { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
609  { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
610  { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
611  { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
612  { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
613  { "+auto-threshold", 1L, DeprecateOptionFlag, MagickTrue },
614  { "-auto-threshold", 1L, SimpleOperatorFlag, MagickFalse },
615  { "+average", 0L, DeprecateOptionFlag, MagickTrue },
616  { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
617  { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
618  { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
619  { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
620  { "-bench", 1L, GenesisOptionFlag, MagickFalse },
621  { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
622  { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
623  { "+bilateral-blur", 1L, DeprecateOptionFlag, MagickTrue },
624  { "-bilateral-blur", 1L, SimpleOperatorFlag, MagickFalse },
625  { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
626  { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
627  { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
628  { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
629  { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
630  { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
631  { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
632  { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
633  { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
634  { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
635  { "+border", 1L, DeprecateOptionFlag, MagickTrue },
636  { "-border", 1L, SimpleOperatorFlag, MagickFalse },
637  { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
638  { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
639  { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
640  { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
641  { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
642  { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
643  { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
644  { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
645  { "+cache", 0L, GlobalOptionFlag, MagickFalse },
646  { "-cache", 1L, GlobalOptionFlag, MagickFalse },
647  { "+canny", 1L, DeprecateOptionFlag, MagickTrue },
648  { "-canny", 1L, SimpleOperatorFlag, MagickTrue },
649  { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
650  { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
651  { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
652  { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
653  { "+channel", 0L, SimpleOperatorFlag, MagickFalse },
654  { "-channel", 1L, SimpleOperatorFlag, MagickFalse },
655  { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
656  { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
657  { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
658  { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
659  { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
660  { "+clahe", 1L, DeprecateOptionFlag, MagickTrue },
661  { "-clahe", 1L, SimpleOperatorFlag, MagickFalse },
662  { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
663  { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
664  { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
665  { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
666  { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
667  { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
668  { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
669  { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
670  { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
671  { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
672  { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
673  { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
674  { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
675  { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
676  { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
677  { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
678  { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
679  { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
680  { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
681  { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
682  { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
683  { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
684  { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
685  { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
686  { "+color-threshold", 0L, DeprecateOptionFlag, MagickTrue },
687  { "-color-threshold", 1L, SimpleOperatorFlag, MagickFalse },
688  { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
689  { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
690  { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
691  { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
692  { "+compare", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
693  { "-compare", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
694  { "+complex", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
695  { "-complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
696  { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
697  { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
698  { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
699  { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
700  { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
701  { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
702  { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
703  { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
704  { "+connected-components", 1L, DeprecateOptionFlag, MagickTrue },
705  { "-connected-components", 1L, SimpleOperatorFlag, MagickFalse },
706  { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
707  { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
708  { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
709  { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
710  { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
711  { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
712  { "+copy", 2L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
713  { "-copy", 2L, ListOperatorFlag | FireOptionFlag, MagickFalse },
714  { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
715  { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
716  { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
717  { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
718  { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
719  { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
720  { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
721  { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
722  { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
723  { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
724  { "-define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
725  { "+define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
726  { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
727  { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
728  { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
729  { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
730  { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
731  { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
732  { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
733  { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
734  { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
735  { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
736  { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
737  { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
738  { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
739  { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
740  { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
741  { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
742  { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
743  { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
744  { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
745  { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
746  { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
747  { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
748  { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
749  { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
750  { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
751  { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
752  { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
753  { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
754  { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
755  { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
756  { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
757  { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
758  { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
759  { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
760  { "-duration", 1L, GenesisOptionFlag, MagickFalse },
761  { "+duration", 1L, GenesisOptionFlag, MagickFalse },
762  { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
763  { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
764  { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
765  { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
766  { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
767  { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
768  { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
769  { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
770  { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
771  { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
772  { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
773  { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
774  { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
775  { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
776  { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
777  { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
778  { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
779  { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
780  { "-exit", 0L, SpecialOptionFlag, MagickFalse },
781  { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
782  { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
783  { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
784  { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
785  { "+family", 0L, DeprecateOptionFlag, MagickTrue },
786  { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
787  { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
788  { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
789  { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
790  { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
791  { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
792  { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
793  { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
794  { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
795  { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
796  { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
797  { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
798  { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
799  { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
800  { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
801  { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
802  { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
803  { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
804  { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
805  { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
806  { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
807  { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
808  { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
809  { "+function", 2L, DeprecateOptionFlag, MagickTrue },
810  { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
811  { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
812  { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
813  { "+fx", 1L, SimpleOperatorFlag | FireOptionFlag | NeverInterpretArgsFlag, MagickFalse },
814  { "-fx", 1L, ListOperatorFlag | FireOptionFlag | NeverInterpretArgsFlag, MagickFalse },
815  { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
816  { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
817  { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
818  { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
819  { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
820  { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
821  { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
822  { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
823  { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
824  { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
825  { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
826  { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
827  { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
828  { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
829  { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
830  { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
831  { "+highlight-color", 0L, ImageInfoOptionFlag, MagickFalse },
832  { "-highlight-color", 1L, ImageInfoOptionFlag, MagickFalse },
833  { "+hough-lines", 1L, DeprecateOptionFlag, MagickTrue },
834  { "-hough-lines", 1L, SimpleOperatorFlag, MagickTrue },
835  { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
836  { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
837  { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
838  { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
839  { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
840  { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
841  { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
842  { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
843  { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
844  { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
845  { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
846  { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
847  { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
848  { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
849  { "+illuminant", 1L, ImageInfoOptionFlag, MagickFalse },
850  { "-illuminant", 1L, ImageInfoOptionFlag, MagickFalse },
851  { "+integral", 0L, SimpleOperatorFlag, MagickFalse },
852  { "-integral", 0L, SimpleOperatorFlag, MagickFalse },
853  { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
854  { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
855  { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
856  { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
857  { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
858  { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
859  { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
860  { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
861  { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
862  { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
863  { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
864  { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
865  { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
866  { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
867  { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
868  { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
869  { "-kmeans", 1L, SimpleOperatorFlag, MagickFalse },
870  { "+kuwahara", 0L, DeprecateOptionFlag, MagickTrue },
871  { "-kuwahara", 1L, SimpleOperatorFlag, MagickFalse },
872  { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
873  { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
874  { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
875  { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
876  { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
877  { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
878  { "-level", 1L, SimpleOperatorFlag, MagickFalse },
879  { "+level", 1L, SimpleOperatorFlag, MagickFalse },
880  { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
881  { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
882  { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
883  { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
884  { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
885  { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
886  { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
887  { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
888  { "+list", 0L, DeprecateOptionFlag, MagickTrue },
889  { "-list", 1L, NoImageOperatorFlag, MagickFalse },
890  { "+local-contrast", 0L, DeprecateOptionFlag, MagickTrue },
891  { "-local-contrast", 1L, SimpleOperatorFlag, MagickFalse },
892  { "+log", 0L, DeprecateOptionFlag, MagickFalse },
893  { "-log", 1L, GlobalOptionFlag, MagickFalse },
894  { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
895  { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
896  { "+lowlight-color", 0L, ImageInfoOptionFlag, MagickFalse },
897  { "-lowlight-color", 1L, ImageInfoOptionFlag, MagickFalse },
898  { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
899  { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
900  { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
901  { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
902  { "+mask", 0L, DeprecateOptionFlag | NeverInterpretArgsFlag, MagickFalse },
903  { "-mask", 1L, DeprecateOptionFlag | NeverInterpretArgsFlag, MagickFalse },
904  { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
905  { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
906  { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
907  { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
908  { "+mean-shift", 1L, DeprecateOptionFlag, MagickTrue },
909  { "-mean-shift", 1L, SimpleOperatorFlag, MagickTrue },
910  { "+median", 1L, DeprecateOptionFlag, MagickTrue },
911  { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
912  { "+metric", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
913  { "-metric", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
914  { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
915  { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
916  { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
917  { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
918  { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
919  { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
920  { "-moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
921  { "+moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
922  { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
923  { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
924  { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
925  { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
926  { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
927  { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
928  { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
929  { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
930  { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
931  { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
932  { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
933  { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
934  { "+name", 0L, NonMagickOptionFlag, MagickFalse },
935  { "-name", 1L, NonMagickOptionFlag, MagickFalse },
936  { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
937  { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
938  { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
939  { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
940  { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
941  { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
942  { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
943  { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
944  { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
945  { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
946  { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
947  { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
948  { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
949  { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
950  { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
951  { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
952  { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
953  { "+path", 0L, NonMagickOptionFlag, MagickFalse },
954  { "-path", 1L, NonMagickOptionFlag, MagickFalse },
955  { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
956  { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
957  { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
958  { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
959  { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
960  { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
961  { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
962  { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
963  { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
964  { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
965  { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
966  { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
967  { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
968  { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
969  { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
970  { "-preview", 1L, SimpleOperatorFlag, MagickFalse },
971  { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
972  { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
973  { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
974  { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
975  { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
976  { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
977  { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
978  { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
979  { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
980  { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
981  { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
982  { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
983  { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
984  { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
985  { "+range-threshold", 1L, DeprecateOptionFlag, MagickTrue },
986  { "-range-threshold", 1L, SimpleOperatorFlag, MagickFalse },
987  { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
988  { "+read-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
989  { "-read-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
990  { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
991  { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
992  { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
993  { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
994  { "+region", 0L, SimpleOperatorFlag, MagickFalse },
995  { "-region", 1L, SimpleOperatorFlag, MagickFalse },
996  { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
997  { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
998  { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
999  { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
1000  { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
1001  { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
1002  { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
1003  { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
1004  { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
1005  { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
1006  { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
1007  { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1008  { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
1009  { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
1010  { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
1011  { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
1012  { "-rotational-blur", 1L, SimpleOperatorFlag, MagickFalse },
1013  { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
1014  { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
1015  { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
1016  { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
1017  { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
1018  { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
1019  { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
1020  { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
1021  { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
1022  { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
1023  { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
1024  { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
1025  { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
1026  { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
1027  { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
1028  { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
1029  { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
1030  { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
1031  { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
1032  { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
1033  { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1034  { "+seed", 0L, GlobalOptionFlag, MagickFalse },
1035  { "-seed", 1L, GlobalOptionFlag, MagickFalse },
1036  { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
1037  { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
1038  { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
1039  { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
1040  { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
1041  { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
1042  { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
1043  { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
1044  { "+set", 1L, NoImageOperatorFlag, MagickFalse },
1045  { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1046  { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
1047  { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
1048  { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
1049  { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
1050  { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
1051  { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
1052  { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
1053  { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
1054  { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
1055  { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
1056  { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
1057  { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
1058  { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
1059  { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
1060  { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
1061  { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
1062  { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1063  { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1064  { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
1065  { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
1066  { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1067  { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1068  { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
1069  { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
1070  { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
1071  { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
1072  { "+sort-pixels", 0L, DeprecateOptionFlag, MagickTrue },
1073  { "-sort-pixels", 0L, SimpleOperatorFlag, MagickFalse },
1074  { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
1075  { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
1076  { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
1077  { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
1078  { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
1079  { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
1080  { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
1081  { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
1082  { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
1083  { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
1084  { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
1085  { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
1086  { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
1087  { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
1088  { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
1089  { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
1090  { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1091  { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1092  { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1093  { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
1094  { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
1095  { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
1096  { "-subimage", 0L, ListOperatorFlag, MagickFalse },
1097  { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1098  { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1099  { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1100  { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1101  { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
1102  { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
1103  { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
1104  { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
1105  { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
1106  { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
1107  { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
1108  { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
1109  { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
1110  { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1111  { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
1112  { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
1113  { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
1114  { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
1115  { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1116  { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1117  { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
1118  { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
1119  { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
1120  { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
1121  { "+title", 0L, NonMagickOptionFlag, MagickFalse },
1122  { "-title", 1L, NonMagickOptionFlag, MagickFalse },
1123  { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
1124  { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
1125  { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
1126  { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
1127  { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
1128  { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
1129  { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
1130  { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
1131  { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
1132  { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
1133  { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
1134  { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
1135  { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
1136  { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
1137  { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
1138  { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
1139  { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1140  { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1141  { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
1142  { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
1143  { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
1144  { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
1145  { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
1146  { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
1147  { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
1148  { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
1149  { "+update", 0L, NonMagickOptionFlag, MagickFalse },
1150  { "-update", 1L, NonMagickOptionFlag, MagickFalse },
1151  { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
1152  { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
1153  { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
1154  { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
1155  { "+version", 0L, DeprecateOptionFlag, MagickTrue },
1156  { "-version", 0L, NoImageOperatorFlag, MagickFalse },
1157  { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
1158  { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
1159  { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
1160  { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
1161  { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
1162  { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
1163  { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
1164  { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
1165  { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
1166  { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
1167  { "+wavelet-denoise", 0L, DeprecateOptionFlag, MagickTrue },
1168  { "-wavelet-denoise", 1L, SimpleOperatorFlag, MagickFalse },
1169  { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
1170  { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
1171  { "+white-balance", 0L, DeprecateOptionFlag, MagickTrue },
1172  { "-white-balance", 0L, SimpleOperatorFlag, MagickFalse },
1173  { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
1174  { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
1175  { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
1176  { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
1177  { "+window", 0L, NonMagickOptionFlag, MagickFalse },
1178  { "-window", 1L, NonMagickOptionFlag, MagickFalse },
1179  { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
1180  { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
1181  { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
1182  { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
1183  { "+write-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1184  { "-write-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1185  { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
1186  },
1187  ComplianceOptions[] =
1188  {
1189  { "Undefined", UndefinedCompliance, UndefinedOptionFlag, MagickTrue },
1190  { "CSS", CSSCompliance, UndefinedOptionFlag, MagickFalse },
1191  { "MVG", MVGCompliance, UndefinedOptionFlag, MagickFalse },
1192  { "No", NoCompliance, UndefinedOptionFlag, MagickFalse },
1193  { "SVG", SVGCompliance, UndefinedOptionFlag, MagickFalse },
1194  { "X11", X11Compliance, UndefinedOptionFlag, MagickFalse },
1195  { "XPM", XPMCompliance, UndefinedOptionFlag, MagickFalse },
1196  { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
1197  },
1198  ComposeOptions[] =
1199  {
1200  { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
1201  { "Add", ModulusAddCompositeOp, DeprecateOptionFlag, MagickTrue },
1202  { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
1203  { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
1204  { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
1205  { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
1206  { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
1207  { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
1208  { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
1209  { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
1210  { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
1211  { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
1212  { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
1213  { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
1214  { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
1215  { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
1216  { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
1217  { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
1218  { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
1219  { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
1220  { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
1221  { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
1222  { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
1223  { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
1224  { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
1225  { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
1226  { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
1227  { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
1228  { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
1229  { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
1230  { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
1231  { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
1232  { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
1233  { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
1234  { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
1235  { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
1236  { "Freeze", FreezeCompositeOp, UndefinedOptionFlag, MagickFalse },
1237  { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1238  { "HardMix", HardMixCompositeOp, UndefinedOptionFlag, MagickFalse },
1239  { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
1240  { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
1241  { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
1242  { "Interpolate", InterpolateCompositeOp, UndefinedOptionFlag, MagickFalse },
1243  { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
1244  { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
1245  { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
1246  { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
1247  { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1248  { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
1249  { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
1250  { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
1251  { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
1252  { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
1253  { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
1254  { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
1255  { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
1256  { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
1257  { "Negate", NegateCompositeOp, UndefinedOptionFlag, MagickFalse },
1258  { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
1259  { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
1260  { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
1261  { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
1262  { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1263  { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1264  { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
1265  { "Reflect", ReflectCompositeOp, UndefinedOptionFlag, MagickFalse },
1266  { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
1267  { "RMSE", RMSECompositeOp, UndefinedOptionFlag, MagickFalse },
1268  { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
1269  { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
1270  { "SaliencyBlend", SaliencyBlendCompositeOp, UndefinedOptionFlag, MagickFalse },
1271  { "SeamlessBlend", SeamlessBlendCompositeOp, UndefinedOptionFlag, MagickFalse },
1272  { "SoftBurn", SoftBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
1273  { "SoftDodge", SoftDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
1274  { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1275  { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
1276  { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
1277  { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
1278  { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
1279  { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
1280  { "Stamp", StampCompositeOp, UndefinedOptionFlag, MagickFalse },
1281  { "Stereo", StereoCompositeOp, UndefinedOptionFlag, MagickFalse },
1282  { "Subtract", ModulusSubtractCompositeOp, DeprecateOptionFlag, MagickTrue },
1283  { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
1284  { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1285  { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
1286  { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
1287  },
1288  CompressOptions[] =
1289  {
1290  { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
1291  { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
1292  { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
1293  { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
1294  { "DWAA", DWAACompression, UndefinedOptionFlag, MagickFalse },
1295  { "DWAB", DWABCompression, UndefinedOptionFlag, MagickFalse },
1296  { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
1297  { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
1298  { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
1299  { "BC7", BC7Compression, UndefinedOptionFlag, MagickFalse },
1300  { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
1301  { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
1302  { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
1303  { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
1304  { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
1305  { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
1306  { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
1307  { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
1308  { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
1309  { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
1310  { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
1311  { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
1312  { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
1313  { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
1314  { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
1315  { "WebP", WebPCompression, UndefinedOptionFlag, MagickFalse },
1316  { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
1317  { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
1318  { "Zstd", ZstdCompression, UndefinedOptionFlag, MagickFalse },
1319  { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
1320  },
1321  DataTypeOptions[] =
1322  {
1323  { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
1324  { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
1325  { "Long", LongData, UndefinedOptionFlag, MagickFalse },
1326  { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
1327  { "String", StringData, UndefinedOptionFlag, MagickFalse },
1328  { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
1329  },
1330  DecorateOptions[] =
1331  {
1332  { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
1333  { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
1334  { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
1335  { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
1336  { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
1337  { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
1338  },
1339  DirectionOptions[] =
1340  {
1341  { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
1342  { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
1343  { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
1344  { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
1345  },
1346  DisposeOptions[] =
1347  {
1348  { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
1349  { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
1350  { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
1351  { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
1352  { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
1353  { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
1354  { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
1355  { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
1356  { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
1357  },
1358  DistortOptions[] =
1359  {
1360  { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
1361  { "RigidAffine", RigidAffineDistortion, UndefinedOptionFlag, MagickFalse },
1362  { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
1363  { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
1364  { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
1365  { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
1366  { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
1367  { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
1368  { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
1369  { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
1370  { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
1371  { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
1372  { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
1373  { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
1374  { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
1375  { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
1376  { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
1377  { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
1378  { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
1379  { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
1380  { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
1381  },
1382  DitherOptions[] =
1383  {
1384  { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
1385  { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
1386  { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
1387  { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
1388  { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
1389  },
1390  EndianOptions[] =
1391  {
1392  { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1393  { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
1394  { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
1395  { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
1396  },
1397  EvaluateOptions[] =
1398  {
1399  { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
1400  { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1401  { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1402  { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1403  { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1404  { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1405  { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1406  { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1407  { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1408  { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1409  { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1410  { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1411  { "InverseLog", InverseLogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1412  { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1413  { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1414  { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1415  { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1416  { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1417  { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1418  { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1419  { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1420  { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1421  { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1422  { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1423  { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1424  { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1425  { "RMS", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1426  { "RootMeanSquare", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1427  { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1428  { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1429  { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1430  { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1431  { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1432  { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1433  { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1434  { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1435  { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1436  { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1437  { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
1438  },
1439  FillRuleOptions[] =
1440  {
1441  { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1442  { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1443  { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1444  { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1445  },
1446  FilterOptions[] =
1447  {
1448  { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1449  { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1450  { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1451  { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1452  { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1453  { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
1454  { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
1455  { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1456  { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1457  { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
1458  { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1459  { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1460  { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1461  { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1462  { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1463  { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1464  { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
1465  { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1466  { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
1467  { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1468  { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
1469  { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1470  { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1471  { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1472  { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1473  { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
1474  { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
1475  { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1476  { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
1477  { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
1478  { "CubicSpline", CubicSplineFilter, UndefinedOptionFlag, MagickFalse },
1479  { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
1480  { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1481  { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1482  { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
1483  },
1484  FunctionOptions[] =
1485  {
1486  { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1487  { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1488  { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1489  { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1490  { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1491  { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
1492  },
1493  GradientOptions[] =
1494  {
1495  { "Undefined", UndefinedGradient, UndefinedOptionFlag, MagickTrue },
1496  { "Linear", LinearGradient, UndefinedOptionFlag, MagickFalse },
1497  { "Radial", RadialGradient, UndefinedOptionFlag, MagickFalse },
1498  { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1499  },
1500  GravityOptions[] =
1501  {
1502  { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1503  { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1504  { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1505  { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1506  { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1507  { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1508  { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1509  { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1510  { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1511  { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1512  { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1513  { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
1514  { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
1515  },
1516  IlluminantOptions[] =
1517  {
1518  { "Undefined", UndefinedIlluminant, UndefinedOptionFlag, MagickTrue },
1519  { "A", AIlluminant, UndefinedOptionFlag, MagickFalse },
1520  { "B", BIlluminant, UndefinedOptionFlag, MagickFalse },
1521  { "C", CIlluminant, UndefinedOptionFlag, MagickFalse },
1522  { "D50", D50Illuminant, UndefinedOptionFlag, MagickFalse },
1523  { "D55", D55Illuminant, UndefinedOptionFlag, MagickFalse },
1524  { "D65", D65Illuminant, UndefinedOptionFlag, MagickFalse },
1525  { "D75", D75Illuminant, UndefinedOptionFlag, MagickFalse },
1526  { "E", EIlluminant, UndefinedOptionFlag, MagickFalse },
1527  { "F2", F2Illuminant, UndefinedOptionFlag, MagickFalse },
1528  { "F7", F7Illuminant, UndefinedOptionFlag, MagickFalse },
1529  { "F11", F11Illuminant, UndefinedOptionFlag, MagickFalse },
1530  { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
1531  },
1532  IntentOptions[] =
1533  {
1534  { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1535  { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1536  { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1537  { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1538  { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1539  { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
1540  },
1541  InterlaceOptions[] =
1542  {
1543  { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1544  { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1545  { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1546  { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1547  { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1548  { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1549  { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1550  { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1551  { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
1552  },
1553  InterpolateOptions[] =
1554  {
1555  { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1556  { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1557  { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1558  { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1559  { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1560  { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1561  { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1562  { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1563  { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1564  { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1565  { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1566  { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1567  { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1568  { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1569  { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
1570  },
1571  KernelOptions[] =
1572  {
1573  { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1574  { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1575  { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1576  { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1577  { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1578  { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1579  { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
1580  { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
1581  { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1582  { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1583  { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1584  { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1585  { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1586  { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1587  { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1588  { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1589  { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1590  { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1591  { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1592  { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1593  { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1594  { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1595  { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1596  { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1597  { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1598  { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1599  { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
1600  { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1601  { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1602  { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1603  { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1604  { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1605  { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1606  { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1607  { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1608  { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1609  { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
1610  { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
1611  { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
1612  },
1613  LayerOptions[] =
1614  {
1615  { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1616  { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1617  { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1618  { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1619  { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1620  { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1621  { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1622  { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1623  { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1624  { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1625  { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1626  { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1627  { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1628  { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1629  { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1630  { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1631  { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1632  { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
1633  },
1634  LineCapOptions[] =
1635  {
1636  { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1637  { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1638  { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1639  { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1640  { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
1641  },
1642  LineJoinOptions[] =
1643  {
1644  { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1645  { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1646  { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1647  { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1648  { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
1649  },
1650  ListOptions[] =
1651  {
1652  { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
1653  { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
1654  { "AutoThreshold", MagickAutoThresholdOptions, UndefinedOptionFlag, MagickFalse },
1655  { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
1656  { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
1657  { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1658  { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1659  { "CLI", MagickCLIOptions, UndefinedOptionFlag, MagickFalse },
1660  { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1661  { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1662  { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1663  { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1664  { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1665  { "Compliance", MagickComplianceOptions, UndefinedOptionFlag, MagickFalse },
1666  { "Complex", MagickComplexOptions, UndefinedOptionFlag, MagickFalse },
1667  { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1668  { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1669  { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1670  { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1671  { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1672  { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1673  { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1674  { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1675  { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1676  { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1677  { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1678  { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1679  { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1680  { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1681  { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1682  { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1683  { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1684  { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1685  { "Gradient", MagickGradientOptions, UndefinedOptionFlag, MagickFalse },
1686  { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
1687  { "Illuminant", MagickIlluminantOptions, UndefinedOptionFlag, MagickFalse },
1688  { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
1689  { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1690  { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1691  { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1692  { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1693  { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1694  { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1695  { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1696  { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1697  { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1698  { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1699  { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1700  { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1701  { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1702  { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1703  { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1704  { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1705  { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1706  { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1707  { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1708  { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
1709  { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1710  { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
1711  { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
1712  { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
1713  { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1714  { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1715  { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1716  { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1717  { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1718  { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1719  { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1720  { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1721  { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1722  { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1723  { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1724  { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1725  { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1726  { "Tool", MagickToolOptions, UndefinedOptionFlag, MagickFalse },
1727  { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1728  { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1729  { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1730  { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1731  { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1732  { "Weight", MagickWeightOptions, UndefinedOptionFlag, MagickFalse },
1733  { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
1734  },
1735  LogEventOptions[] =
1736  {
1737  { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1738  { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
1739  { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
1740  { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1741  { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1742  { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1743  { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1744  { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
1745  { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1746  { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1747  { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1748  { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1749  { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1750  { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1751  { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
1752  { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
1753  { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1754  { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1755  { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1756  { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1757  { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1758  { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1759  { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1760  { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
1761  },
1762  MetricOptions[] =
1763  {
1764  { "Undefined", UndefinedErrorMetric, UndefinedOptionFlag, MagickTrue },
1765  { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1766  { "DSSIM", StructuralDissimilarityErrorMetric, UndefinedOptionFlag, MagickFalse },
1767  { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1768  { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1769  { "MEPP", MeanErrorPerPixelErrorMetric, UndefinedOptionFlag, MagickFalse },
1770  { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1771  { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1772  { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1773  { "PHASH", PerceptualHashErrorMetric, UndefinedOptionFlag, MagickFalse },
1774  { "PSNR", PeakSignalToNoiseRatioErrorMetric, UndefinedOptionFlag, MagickFalse },
1775  { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1776  { "SSIM", StructuralSimilarityErrorMetric, UndefinedOptionFlag, MagickFalse },
1777  { (char *) NULL, UndefinedErrorMetric, UndefinedOptionFlag, MagickFalse }
1778  },
1779  MethodOptions[] =
1780  {
1781  { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1782  { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1783  { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1784  { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1785  { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1786  { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1787  { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1788  },
1789  ModeOptions[] =
1790  {
1791  { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1792  { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1793  { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1794  { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1795  { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
1796  },
1797  MorphologyOptions[] =
1798  {
1799  { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1800  { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1801  { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1802  { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1803  { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1804  { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1805  { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1806  { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1807  { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1808  { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1809  { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1810  { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1811  { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1812  { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1813  { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1814  { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1815  { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1816  { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1817  { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1818  { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1819  { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
1820  { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1821  { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1822  { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1823  { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1824  { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
1825  { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1826  { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
1827  { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1828  { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
1829  },
1830  NoiseOptions[] =
1831  {
1832  { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1833  { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1834  { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1835  { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1836  { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1837  { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1838  { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1839  { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1840  { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
1841  },
1842  OrientationOptions[] =
1843  {
1844  { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1845  { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1846  { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1847  { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1848  { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1849  { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1850  { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1851  { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1852  { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1853  { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
1854  },
1855  PixelChannelOptions[] =
1856  {
1857  { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
1858  { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1859  { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1860  { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1861  { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1862  { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1863  { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1864  { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1865  { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
1866  { "CompositeMask", CompositeMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1867  { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1868  { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1869  { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1870  { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
1871  { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1872  { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1873  { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1874  { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
1875  { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1876  { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1877  { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1878  { "Meta", MetaPixelChannel, UndefinedOptionFlag, MagickFalse },
1879  { "O", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1880  { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1881  { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1882  { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1883  { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
1884  { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1885  { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1886  { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1887  { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1888  },
1889  PixelIntensityOptions[] =
1890  {
1891  { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1892  { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1893  { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1894  { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1895  { "Mean", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1896  { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1897  { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1898  { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1899  { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1900  { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1901  { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1902  { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1903  },
1904  PixelMaskOptions[] =
1905  {
1906  { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1907  { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1908  { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1909  { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1910  { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1911  { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1912  },
1913  PixelTraitOptions[] =
1914  {
1915  { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1916  { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1917  { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1918  { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1919  { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1920  },
1921  PolicyDomainOptions[] =
1922  {
1923  { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1924  { "Cache", CachePolicyDomain, UndefinedOptionFlag, MagickFalse },
1925  { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1926  { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1927  { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1928  { "Module", ModulePolicyDomain, UndefinedOptionFlag, MagickFalse },
1929  { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1930  { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1931  { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1932  { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
1933  },
1934  PolicyRightsOptions[] =
1935  {
1936  { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1937  { "All", AllPolicyRights, UndefinedOptionFlag, MagickFalse },
1938  { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1939  { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1940  { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1941  { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1942  { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
1943  },
1944  PreviewOptions[] =
1945  {
1946  { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1947  { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1948  { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1949  { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1950  { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1951  { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1952  { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1953  { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1954  { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1955  { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1956  { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1957  { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1958  { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1959  { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1960  { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1961  { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1962  { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1963  { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1964  { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1965  { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1966  { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1967  { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1968  { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1969  { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1970  { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1971  { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1972  { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1973  { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1974  { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1975  { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1976  { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
1977  },
1978  PrimitiveOptions[] =
1979  {
1980  { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1981  { "Alpha", AlphaPrimitive, UndefinedOptionFlag, MagickFalse },
1982  { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1983  { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1984  { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1985  { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1986  { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1987  { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1988  { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1989  { "Matte", AlphaPrimitive, UndefinedOptionFlag, MagickFalse },
1990  { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1991  { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1992  { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1993  { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1994  { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1995  { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1996  { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1997  { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
1998  },
1999  QuantumFormatOptions[] =
2000  {
2001  { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
2002  { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
2003  { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
2004  { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
2005  { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
2006  },
2007  ResolutionOptions[] =
2008  {
2009  { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
2010  { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
2011  { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
2012  { "1", UndefinedResolution, UndefinedOptionFlag, MagickFalse },
2013  { "2", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
2014  { "3", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
2015  { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
2016  },
2017  ResourceOptions[] =
2018  {
2019  { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
2020  { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
2021  { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
2022  { "File", FileResource, UndefinedOptionFlag, MagickFalse },
2023  { "Height", HeightResource, UndefinedOptionFlag, MagickFalse },
2024  { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
2025  { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
2026  { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
2027  { "Throttle", ThrottleResource, UndefinedOptionFlag, MagickFalse },
2028  { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
2029  { "Width", WidthResource, UndefinedOptionFlag, MagickFalse },
2030  { "ListLength", ListLengthResource, UndefinedOptionFlag, MagickFalse },
2031  { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
2032  },
2033  SparseColorOptions[] =
2034  {
2035  { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
2036  { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
2037  { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
2038  { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
2039  { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
2040  { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
2041  { "Manhattan", ManhattanColorInterpolate, UndefinedOptionFlag, MagickFalse },
2042  { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
2043  },
2044  StatisticOptions[] =
2045  {
2046  { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
2047  { "Contrast", ContrastStatistic, UndefinedOptionFlag, MagickFalse },
2048  { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
2049  { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
2050  { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
2051  { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
2052  { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
2053  { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
2054  { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
2055  { "RootMeanSquare", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
2056  { "RMS", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
2057  { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
2058  { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
2059  },
2060  StorageOptions[] =
2061  {
2062  { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
2063  { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
2064  { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
2065  { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
2066  { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
2067  { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
2068  { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
2069  { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
2070  { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
2071  },
2072  StretchOptions[] =
2073  {
2074  { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
2075  { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
2076  { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
2077  { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
2078  { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
2079  { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
2080  { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
2081  { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
2082  { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
2083  { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
2084  { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
2085  { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
2086  },
2087  StyleOptions[] =
2088  {
2089  { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
2090  { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
2091  { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
2092  { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
2093  { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
2094  { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
2095  },
2096  ToolOptions[] =
2097  {
2098  { "animate", 0, UndefinedOptionFlag, MagickFalse },
2099  { "compare", 0, UndefinedOptionFlag, MagickFalse },
2100  { "composite", 0, UndefinedOptionFlag, MagickFalse },
2101  { "conjure", 0, UndefinedOptionFlag, MagickFalse },
2102  { "convert", 0, UndefinedOptionFlag, MagickFalse },
2103  { "display", 0, UndefinedOptionFlag, MagickFalse },
2104  { "identify", 0, UndefinedOptionFlag, MagickFalse },
2105  { "import", 0, UndefinedOptionFlag, MagickFalse },
2106  { "mogrify", 0, UndefinedOptionFlag, MagickFalse },
2107  { "montage", 0, UndefinedOptionFlag, MagickFalse },
2108  { "stream", 0, UndefinedOptionFlag, MagickFalse },
2109  { (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
2110  },
2111  TypeOptions[] =
2112  {
2113  { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
2114  { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
2115  { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
2116  { "ColorSeparationAlpha", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
2117  { "ColorSeparationMatte", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
2118  { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
2119  { "GrayscaleAlpha", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
2120  { "GrayscaleMatte", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
2121  { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
2122  { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
2123  { "PaletteBilevelAlpha", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
2124  { "PaletteBilevelMatte", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
2125  { "PaletteAlpha", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
2126  { "PaletteMatte", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
2127  { "TrueColorAlpha", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
2128  { "TrueColorMatte", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
2129  { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
2130  { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
2131  },
2132  ValidateOptions[] =
2133  {
2134  { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
2135  { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
2136  { "Colorspace", ColorspaceValidate, UndefinedOptionFlag, MagickFalse },
2137  { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
2138  { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
2139  { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
2140  { "FormatsDisk", FormatsDiskValidate, UndefinedOptionFlag, MagickFalse },
2141  { "FormatsMap", FormatsMapValidate, UndefinedOptionFlag, MagickFalse },
2142  { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
2143  { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
2144  { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
2145  { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
2146  { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
2147  { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
2148  { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
2149  },
2150  VirtualPixelOptions[] =
2151  {
2152  { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
2153  { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2154  { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2155  { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
2156  { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2157  { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2158  { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2159  { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2160  { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2161  { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2162  { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2163  { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2164  { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2165  { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2166  { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2167  { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2168  { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2169  { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2170  { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
2171  },
2172  WeightOptions[] =
2173  {
2174  { "Undefined", 0L, UndefinedOptionFlag, MagickTrue },
2175  { "Thin", 100L, UndefinedOptionFlag, MagickFalse },
2176  { "ExtraLight", 200L, UndefinedOptionFlag, MagickFalse },
2177  { "UltraLight", 200L, UndefinedOptionFlag, MagickFalse },
2178  { "Light", 300L, DeprecateOptionFlag, MagickTrue },
2179  { "Normal", 400L, UndefinedOptionFlag, MagickFalse },
2180  { "Regular", 400L, UndefinedOptionFlag, MagickFalse },
2181  { "Medium", 500L, UndefinedOptionFlag, MagickFalse },
2182  { "DemiBold", 600L, UndefinedOptionFlag, MagickFalse },
2183  { "SemiBold", 600L, UndefinedOptionFlag, MagickFalse },
2184  { "Bold", 700L, UndefinedOptionFlag, MagickFalse },
2185  { "ExtraBold", 800L, UndefinedOptionFlag, MagickFalse },
2186  { "UltraBold", 800L, UndefinedOptionFlag, MagickFalse },
2187  { "Heavy", 900L, UndefinedOptionFlag, MagickFalse },
2188  { "Black", 900L, UndefinedOptionFlag, MagickFalse },
2189  { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
2190  };
2191 ␌
2192 /*
2193 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2194 % %
2195 % %
2196 % %
2197 % C l o n e I m a g e O p t i o n s %
2198 % %
2199 % %
2200 % %
2201 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2202 %
2203 % CloneImageOptions() clones all global image options, to another image_info
2204 %
2205 % The format of the CloneImageOptions method is:
2206 %
2207 % MagickBooleanType CloneImageOptions(ImageInfo *image_info,
2208 % const ImageInfo *clone_info)
2209 %
2210 % A description of each parameter follows:
2211 %
2212 % o image_info: the image info to recieve the cloned options.
2213 %
2214 % o clone_info: the source image info for options to clone.
2215 %
2216 */
2217 MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
2218  const ImageInfo *clone_info)
2219 {
2220  assert(image_info != (ImageInfo *) NULL);
2221  assert(image_info->signature == MagickCoreSignature);
2222  assert(clone_info != (const ImageInfo *) NULL);
2223  assert(clone_info->signature == MagickCoreSignature);
2224  if (IsEventLogging() != MagickFalse)
2225  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2226  image_info->filename);
2227  if (clone_info->options != (void *) NULL)
2228  {
2229  if (image_info->options != (void *) NULL)
2230  DestroyImageOptions(image_info);
2231  image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
2232  (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
2233  }
2234  return(MagickTrue);
2235 }
2236 ␌
2237 /*
2238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2239 % %
2240 % %
2241 % %
2242 % D e f i n e I m a g e O p t i o n %
2243 % %
2244 % %
2245 % %
2246 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2247 %
2248 % DefineImageOption() associates an assignment string of the form
2249 % "key=value" with a global image option. It is equivelent to
2250 % SetImageOption().
2251 %
2252 % The format of the DefineImageOption method is:
2253 %
2254 % MagickBooleanType DefineImageOption(ImageInfo *image_info,
2255 % const char *option)
2256 %
2257 % A description of each parameter follows:
2258 %
2259 % o image_info: the image info.
2260 %
2261 % o option: the image option assignment string.
2262 %
2263 */
2264 MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
2265  const char *option)
2266 {
2267  char
2268  key[MagickPathExtent],
2269  value[MagickPathExtent];
2270 
2271  char
2272  *p;
2273 
2274  assert(image_info != (ImageInfo *) NULL);
2275  assert(option != (const char *) NULL);
2276  (void) CopyMagickString(key,option,MagickPathExtent);
2277  for (p=key; *p != '\0'; p++)
2278  if (*p == '=')
2279  break;
2280  *value='\0';
2281  if (*p == '=')
2282  (void) CopyMagickString(value,p+1,MagickPathExtent);
2283  *p='\0';
2284  return(SetImageOption(image_info,key,value));
2285 }
2286 ␌
2287 /*
2288 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2289 % %
2290 % %
2291 % %
2292 % D e l e t e I m a g e O p t i o n %
2293 % %
2294 % %
2295 % %
2296 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2297 %
2298 % DeleteImageOption() deletes an key from the global image options.
2299 %
2300 % Returns MagickTrue is the option is found and deleted from the Options.
2301 %
2302 % The format of the DeleteImageOption method is:
2303 %
2304 % MagickBooleanType DeleteImageOption(ImageInfo *image_info,
2305 % const char *key)
2306 %
2307 % A description of each parameter follows:
2308 %
2309 % o image_info: the image info.
2310 %
2311 % o option: the image option.
2312 %
2313 */
2314 MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
2315  const char *option)
2316 {
2317  assert(image_info != (ImageInfo *) NULL);
2318  assert(image_info->signature == MagickCoreSignature);
2319  if (IsEventLogging() != MagickFalse)
2320  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2321  image_info->filename);
2322  if (image_info->options == (void *) NULL)
2323  return(MagickFalse);
2324  return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
2325 }
2326 ␌
2327 /*
2328 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2329 % %
2330 % %
2331 % %
2332 % D e s t r o y I m a g e O p t i o n s %
2333 % %
2334 % %
2335 % %
2336 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2337 %
2338 % DestroyImageOptions() destroys all global options and associated memory
2339 % attached to the given image_info image list.
2340 %
2341 % The format of the DestroyDefines method is:
2342 %
2343 % void DestroyImageOptions(ImageInfo *image_info)
2344 %
2345 % A description of each parameter follows:
2346 %
2347 % o image_info: the image info.
2348 %
2349 */
2350 MagickExport void DestroyImageOptions(ImageInfo *image_info)
2351 {
2352  assert(image_info != (ImageInfo *) NULL);
2353  assert(image_info->signature == MagickCoreSignature);
2354  if (IsEventLogging() != MagickFalse)
2355  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2356  image_info->filename);
2357  if (image_info->options != (void *) NULL)
2358  image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
2359 }
2360 ␌
2361 /*
2362 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2363 % %
2364 % %
2365 % %
2366 % G e t I m a g e O p t i o n %
2367 % %
2368 % %
2369 % %
2370 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2371 %
2372 % GetImageOption() gets a value associated with the global image options.
2373 %
2374 % The returned string is a constant string in the tree and should NOT be
2375 % freed by the caller.
2376 %
2377 % The format of the GetImageOption method is:
2378 %
2379 % const char *GetImageOption(const ImageInfo *image_info,
2380 % const char *option)
2381 %
2382 % A description of each parameter follows:
2383 %
2384 % o image_info: the image info.
2385 %
2386 % o option: the option.
2387 %
2388 */
2389 MagickExport const char *GetImageOption(const ImageInfo *image_info,
2390  const char *option)
2391 {
2392  assert(image_info != (ImageInfo *) NULL);
2393  assert(image_info->signature == MagickCoreSignature);
2394  if (IsEventLogging() != MagickFalse)
2395  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2396  image_info->filename);
2397  if (image_info->options == (void *) NULL)
2398  return((const char *) NULL);
2399  return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
2400  image_info->options,option));
2401 }
2402 ␌
2403 /*
2404 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2405 % %
2406 % %
2407 % %
2408 % G e t C o m m a n d O p t i o n F l a g s %
2409 % %
2410 % %
2411 % %
2412 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2413 %
2414 % GetCommandOptionFlags() parses a string and returns an enumerated option
2415 % flags(s). Return a value of -1 if no such option is found.
2416 %
2417 % The format of the GetCommandOptionFlags method is:
2418 %
2419 % ssize_t GetCommandOptionFlags(const CommandOption option,
2420 % const MagickBooleanType list,const char *options)
2421 %
2422 % A description of each parameter follows:
2423 %
2424 % o option: Index to the option table to lookup
2425 %
2426 % o list: A option other than zero permits more than one option separated by
2427 % a comma or pipe.
2428 %
2429 % o options: One or more options separated by commas.
2430 %
2431 */
2432 
2433 static const OptionInfo *GetOptionInfo(const CommandOption option)
2434 {
2435  switch (option)
2436  {
2437  case MagickAlignOptions: return(AlignOptions);
2438  case MagickAlphaChannelOptions: return(AlphaChannelOptions);
2439  case MagickAutoThresholdOptions: return(AutoThresholdOptions);
2440  case MagickBooleanOptions: return(BooleanOptions);
2441  case MagickCacheOptions: return(CacheOptions);
2442  case MagickChannelOptions: return(ChannelOptions);
2443  case MagickClassOptions: return(ClassOptions);
2444  case MagickCLIOptions: return(CLIOptions);
2445  case MagickClipPathOptions: return(ClipPathOptions);
2446  case MagickColorspaceOptions: return(ColorspaceOptions);
2447  case MagickCommandOptions: return(CommandOptions);
2448  case MagickComplianceOptions: return(ComplianceOptions);
2449  case MagickComplexOptions: return(ComplexOptions);
2450  case MagickComposeOptions: return(ComposeOptions);
2451  case MagickCompressOptions: return(CompressOptions);
2452  case MagickDataTypeOptions: return(DataTypeOptions);
2453  case MagickDebugOptions: return(LogEventOptions);
2454  case MagickDecorateOptions: return(DecorateOptions);
2455  case MagickDirectionOptions: return(DirectionOptions);
2456  case MagickDisposeOptions: return(DisposeOptions);
2457  case MagickDistortOptions: return(DistortOptions);
2458  case MagickDitherOptions: return(DitherOptions);
2459  case MagickEndianOptions: return(EndianOptions);
2460  case MagickEvaluateOptions: return(EvaluateOptions);
2461  case MagickFillRuleOptions: return(FillRuleOptions);
2462  case MagickFilterOptions: return(FilterOptions);
2463  case MagickFunctionOptions: return(FunctionOptions);
2464  case MagickGradientOptions: return(GradientOptions);
2465  case MagickGravityOptions: return(GravityOptions);
2466  case MagickIlluminantOptions: return(IlluminantOptions);
2467  case MagickIntentOptions: return(IntentOptions);
2468  case MagickInterlaceOptions: return(InterlaceOptions);
2469  case MagickInterpolateOptions: return(InterpolateOptions);
2470  case MagickKernelOptions: return(KernelOptions);
2471  case MagickLayerOptions: return(LayerOptions);
2472  case MagickLineCapOptions: return(LineCapOptions);
2473  case MagickLineJoinOptions: return(LineJoinOptions);
2474  case MagickListOptions: return(ListOptions);
2475  case MagickLogEventOptions: return(LogEventOptions);
2476  case MagickMetricOptions: return(MetricOptions);
2477  case MagickMethodOptions: return(MethodOptions);
2478  case MagickModeOptions: return(ModeOptions);
2479  case MagickMorphologyOptions: return(MorphologyOptions);
2480  case MagickNoiseOptions: return(NoiseOptions);
2481  case MagickOrientationOptions: return(OrientationOptions);
2482  case MagickPixelChannelOptions: return(PixelChannelOptions);
2483  case MagickPixelIntensityOptions: return(PixelIntensityOptions);
2484  case MagickPixelMaskOptions: return(PixelMaskOptions);
2485  case MagickPixelTraitOptions: return(PixelTraitOptions);
2486  case MagickPolicyDomainOptions: return(PolicyDomainOptions);
2487  case MagickPolicyRightsOptions: return(PolicyRightsOptions);
2488  case MagickPreviewOptions: return(PreviewOptions);
2489  case MagickPrimitiveOptions: return(PrimitiveOptions);
2490  case MagickQuantumFormatOptions: return(QuantumFormatOptions);
2491  case MagickResolutionOptions: return(ResolutionOptions);
2492  case MagickResourceOptions: return(ResourceOptions);
2493  case MagickSparseColorOptions: return(SparseColorOptions);
2494  case MagickStatisticOptions: return(StatisticOptions);
2495  case MagickStorageOptions: return(StorageOptions);
2496  case MagickStretchOptions: return(StretchOptions);
2497  case MagickToolOptions: return(ToolOptions);
2498  case MagickStyleOptions: return(StyleOptions);
2499  case MagickTypeOptions: return(TypeOptions);
2500  case MagickValidateOptions: return(ValidateOptions);
2501  case MagickVirtualPixelOptions: return(VirtualPixelOptions);
2502  case MagickWeightOptions: return(WeightOptions);
2503  default: break;
2504  }
2505  return((const OptionInfo *) NULL);
2506 }
2507 
2508 MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
2509  const MagickBooleanType list,const char *options)
2510 {
2511  char
2512  token[MagickPathExtent];
2513 
2514  const OptionInfo
2515  *command_info,
2516  *option_info;
2517 
2518  int
2519  sentinel;
2520 
2521  MagickBooleanType
2522  negate;
2523 
2524  char
2525  *q;
2526 
2527  const char
2528  *p;
2529 
2530  ssize_t
2531  i;
2532 
2533  ssize_t
2534  option_types;
2535 
2536  if ((options == (const char *) NULL) || (*options == '\0'))
2537  return(-1);
2538  option_info=GetOptionInfo(option);
2539  if (option_info == (const OptionInfo *) NULL)
2540  return(UndefinedOptionFlag);
2541  option_types=0;
2542  sentinel=',';
2543  if (strchr(options,'|') != (char *) NULL)
2544  sentinel='|';
2545  for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2546  {
2547  while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2548  (*p != '\0'))
2549  p++;
2550  negate=(*p == '!') ? MagickTrue : MagickFalse;
2551  if (negate != MagickFalse)
2552  p++;
2553  q=token;
2554  while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2555  (*p != '\0'))
2556  {
2557  if ((q-token) >= (MagickPathExtent-1))
2558  break;
2559  *q++=(*p++);
2560  }
2561  *q='\0';
2562  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2563  if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2564  break;
2565  command_info=option_info+i;
2566  if ((command_info->mnemonic == (const char *) NULL) && (*token != '\0') &&
2567  ((strchr(token+1,'-') != (char *) NULL) ||
2568  (strchr(token+1,'_') != (char *) NULL)))
2569  {
2570  while ((q=strchr(token+1,'-')) != (char *) NULL)
2571  (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
2572  while ((q=strchr(token+1,'_')) != (char *) NULL)
2573  (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
2574  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2575  if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2576  break;
2577  command_info=option_info+i;
2578  }
2579  if (command_info->mnemonic == (const char *) NULL)
2580  return(-1);
2581  if (negate != MagickFalse)
2582  option_types=option_types &~ command_info->flags;
2583  else
2584  option_types=option_types | command_info->flags;
2585  if (list == MagickFalse)
2586  break;
2587  }
2588  return(option_types);
2589 }
2590 ␌
2591 /*
2592 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2593 % %
2594 % %
2595 % %
2596 % G e t C o m m a n d O p t i o n I n f o %
2597 % %
2598 % %
2599 % %
2600 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2601 %
2602 % GetCommandOptionInfo() returns a pointer to the matching OptionInfo entry
2603 % for the "CommandOptions" table. It returns both the type (argument count)
2604 % and flags (argument type).
2605 %
2606 % The format of the GetCommandOptionInfo method is:
2607 %
2608 % const char **GetCommandOptionInfo(const char *option)
2609 %
2610 % A description of each parameter follows:
2611 %
2612 % o option: the option.
2613 %
2614 */
2615 MagickExport const OptionInfo *GetCommandOptionInfo(const char *option)
2616 {
2617  ssize_t
2618  i;
2619 
2620  for (i=0; CommandOptions[i].mnemonic != (char *) NULL; i++)
2621  if (LocaleCompare(option,CommandOptions[i].mnemonic) == 0)
2622  break;
2623  return(CommandOptions+i);
2624 }
2625 ␌
2626 /*
2627 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2628 % %
2629 % %
2630 % %
2631 % G e t C o m m a n d O p t i o n s %
2632 % %
2633 % %
2634 % %
2635 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2636 %
2637 % GetCommandOptions() returns a list of command options.
2638 %
2639 % The format of the GetCommandOptions method is:
2640 %
2641 % const char **GetCommandOptions(const CommandOption option)
2642 %
2643 % A description of each parameter follows:
2644 %
2645 % o option: the option.
2646 %
2647 */
2648 MagickExport char **GetCommandOptions(const CommandOption option)
2649 {
2650  char
2651  **options;
2652 
2653  const OptionInfo
2654  *option_info;
2655 
2656  ssize_t
2657  i;
2658 
2659  option_info=GetOptionInfo(option);
2660  if (option_info == (const OptionInfo *) NULL)
2661  return((char **) NULL);
2662  for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2663  options=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*options));
2664  if (options == (char **) NULL)
2665  ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2666  for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2667  options[i]=AcquireString(option_info[i].mnemonic);
2668  options[i]=(char *) NULL;
2669  return(options);
2670 }
2671 ␌
2672 /*
2673 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2674 % %
2675 % %
2676 % %
2677 % G e t N e x t I m a g e O p t i o n %
2678 % %
2679 % %
2680 % %
2681 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2682 %
2683 % GetNextImageOption() gets the next global option value.
2684 %
2685 % The format of the GetNextImageOption method is:
2686 %
2687 % char *GetNextImageOption(const ImageInfo *image_info)
2688 %
2689 % A description of each parameter follows:
2690 %
2691 % o image_info: the image info.
2692 %
2693 */
2694 MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2695 {
2696  assert(image_info != (ImageInfo *) NULL);
2697  assert(image_info->signature == MagickCoreSignature);
2698  if (IsEventLogging() != MagickFalse)
2699  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2700  image_info->filename);
2701  if (image_info->options == (void *) NULL)
2702  return((char *) NULL);
2703  return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2704 }
2705 ␌
2706 /*
2707 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2708 % %
2709 % %
2710 % %
2711 % I s C o m m a n d O p t i o n %
2712 % %
2713 % %
2714 % %
2715 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2716 %
2717 % IsCommandOption() returns MagickTrue if the option begins with a - or + and
2718 % the first character that follows is alphanumeric.
2719 %
2720 % The format of the IsCommandOption method is:
2721 %
2722 % MagickBooleanType IsCommandOption(const char *option)
2723 %
2724 % A description of each parameter follows:
2725 %
2726 % o option: the option.
2727 %
2728 */
2729 MagickExport MagickBooleanType IsCommandOption(const char *option)
2730 {
2731  char
2732  *value;
2733 
2735  *exception;
2736 
2737  MagickBooleanType
2738  pedantic;
2739 
2740  assert(option != (const char *) NULL);
2741  if ((*option != '-') && (*option != '+'))
2742  return(MagickFalse);
2743  exception=AcquireExceptionInfo();
2744  value=(char *) GetImageRegistry(StringRegistryType,"option:pedantic",
2745  exception);
2746  exception=DestroyExceptionInfo(exception);
2747  pedantic=IsStringTrue(value);
2748  if (value != (char *) NULL)
2749  value=DestroyString(value);
2750  if ((pedantic == MagickFalse) && (IsPathAccessible(option) != MagickFalse))
2751  return(MagickFalse);
2752  if (strlen(option) == 1)
2753  return(((*option == '{') || (*option == '}') || (*option == '[') ||
2754  (*option == ']')) ? MagickTrue : MagickFalse);
2755  option++;
2756  if (isalpha((int) ((unsigned char) *option)) == 0)
2757  return(MagickFalse);
2758  return(MagickTrue);
2759 }
2760 ␌
2761 /*
2762 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2763 % %
2764 % %
2765 % %
2766 % C o m m a n d O p t i o n T o M n e m o n i c %
2767 % %
2768 % %
2769 % %
2770 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2771 %
2772 % CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
2773 %
2774 % The format of the CommandOptionToMnemonic method is:
2775 %
2776 % const char *CommandOptionToMnemonic(const CommandOption option,
2777 % const ssize_t type)
2778 %
2779 % A description of each parameter follows:
2780 %
2781 % o option: the option.
2782 %
2783 % o type: one or more values separated by commas.
2784 %
2785 */
2786 MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
2787  const ssize_t type)
2788 {
2789  const OptionInfo
2790  *option_info;
2791 
2792  ssize_t
2793  i;
2794 
2795  option_info=GetOptionInfo(option);
2796  if (option_info == (const OptionInfo *) NULL)
2797  return((const char *) NULL);
2798  for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2799  if (type == option_info[i].type)
2800  break;
2801  if (option_info[i].mnemonic == (const char *) NULL)
2802  return("Unrecognized");
2803  return(option_info[i].mnemonic);
2804 }
2805 ␌
2806 /*
2807 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2808 % %
2809 % %
2810 % %
2811 % I s O p t i o n M e m b e r %
2812 % %
2813 % %
2814 % %
2815 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2816 %
2817 % IsOptionMember() returns MagickTrue if the option is a member of the options
2818 % list (e.g. ICC is a member of xmp,icc,iptc).
2819 %
2820 % The format of the IsOptionMember function is:
2821 %
2822 % MagickBooleanType IsOptionMember(const char *option,
2823 % const char *options)
2824 %
2825 % A description of each parameter follows:
2826 %
2827 % o option: an option or option expression (e.g. ICC or *).
2828 %
2829 % o options: one or more options separated by commas.
2830 %
2831 */
2832 MagickExport MagickBooleanType IsOptionMember(const char *option,
2833  const char *options)
2834 {
2835  char
2836  **option_list,
2837  *string;
2838 
2839  int
2840  number_options;
2841 
2842  MagickBooleanType
2843  member;
2844 
2845  ssize_t
2846  i;
2847 
2848  /*
2849  Is option a member of the options list?
2850  */
2851  if (options == (const char *) NULL)
2852  return(MagickFalse);
2853  string=ConstantString(options);
2854  (void) SubstituteString(&string,","," ");
2855  option_list=StringToArgv(string,&number_options);
2856  string=DestroyString(string);
2857  if (option_list == (char **) NULL)
2858  return(MagickFalse);
2859  member=MagickFalse;
2860  option_list[0]=DestroyString(option_list[0]);
2861  for (i=1; i < (ssize_t) number_options; i++)
2862  {
2863  if ((*option_list[i] == '!') &&
2864  (LocaleCompare(option,option_list[i]+1) == 0))
2865  break;
2866  if (GlobExpression(option,option_list[i],MagickTrue) != MagickFalse)
2867  {
2868  member=MagickTrue;
2869  break;
2870  }
2871  option_list[i]=DestroyString(option_list[i]);
2872  }
2873  for ( ; i < (ssize_t) number_options; i++)
2874  option_list[i]=DestroyString(option_list[i]);
2875  option_list=(char **) RelinquishMagickMemory(option_list);
2876  return(member);
2877 }
2878 ␌
2879 /*
2880 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2881 % %
2882 % %
2883 % %
2884 % L i s t C o m m a n d O p t i o n s %
2885 % %
2886 % %
2887 % %
2888 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2889 %
2890 % ListCommandOptions() lists the contents of enumerated option type(s).
2891 %
2892 % The format of the ListCommandOptions method is:
2893 %
2894 % MagickBooleanType ListCommandOptions(FILE *file,
2895 % const CommandOption option,ExceptionInfo *exception)
2896 %
2897 % A description of each parameter follows:
2898 %
2899 % o file: list options to this file handle.
2900 %
2901 % o option: list these options.
2902 %
2903 % o exception: return any errors or warnings in this structure.
2904 %
2905 */
2906 MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2907  const CommandOption option,ExceptionInfo *magick_unused(exception))
2908 {
2909  const OptionInfo
2910  *option_info;
2911 
2912  ssize_t
2913  i;
2914 
2915  magick_unreferenced(exception);
2916  if (file == (FILE *) NULL)
2917  file=stdout;
2918  option_info=GetOptionInfo(option);
2919  if (option_info == (const OptionInfo *) NULL)
2920  return(MagickFalse);
2921  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2922  {
2923  if (option_info[i].stealth != MagickFalse)
2924  continue;
2925  (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
2926  }
2927  return(MagickTrue);
2928 }
2929 ␌
2930 /*
2931 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2932 % %
2933 % %
2934 % %
2935 % P a r s e C h a n n e l O p t i o n %
2936 % %
2937 % %
2938 % %
2939 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2940 %
2941 % ParseChannelOption() parses a string and returns an enumerated channel
2942 % type(s).
2943 %
2944 % The format of the ParseChannelOption method is:
2945 %
2946 % ssize_t ParseChannelOption(const char *channels)
2947 %
2948 % A description of each parameter follows:
2949 %
2950 % o options: One or more values separated by commas.
2951 %
2952 */
2953 MagickExport ssize_t ParseChannelOption(const char *channels)
2954 {
2955  ssize_t
2956  i;
2957 
2958  size_t
2959  length;
2960 
2961  ssize_t
2962  channel;
2963 
2964  channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
2965  if (channel >= 0)
2966  return(channel);
2967  channel=0;
2968  length=strlen(channels);
2969  for (i=0; i < (ssize_t) length; i++)
2970  {
2971  switch (channels[i])
2972  {
2973  case 'A':
2974  case 'a':
2975  {
2976  channel|=AlphaChannel;
2977  break;
2978  }
2979  case 'B':
2980  case 'b':
2981  {
2982  channel|=BlueChannel;
2983  break;
2984  }
2985  case 'C':
2986  case 'c':
2987  {
2988  channel|=CyanChannel;
2989  break;
2990  }
2991  case 'g':
2992  case 'G':
2993  {
2994  channel|=GreenChannel;
2995  break;
2996  }
2997  case 'K':
2998  case 'k':
2999  {
3000  channel|=BlackChannel;
3001  break;
3002  }
3003  case 'M':
3004  case 'm':
3005  {
3006  channel|=MagentaChannel;
3007  break;
3008  }
3009  case 'o':
3010  case 'O':
3011  {
3012  channel|=AlphaChannel; /* depreciate */
3013  break;
3014  }
3015  case 'R':
3016  case 'r':
3017  {
3018  channel|=RedChannel;
3019  break;
3020  }
3021  case 'Y':
3022  case 'y':
3023  {
3024  channel|=YellowChannel;
3025  break;
3026  }
3027  case ',':
3028  {
3029  ssize_t
3030  type;
3031 
3032  /*
3033  Gather the additional channel flags and merge with shorthand.
3034  */
3035  type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
3036  if (type < 0)
3037  return(type);
3038  channel|=type;
3039  return(channel);
3040  }
3041  default:
3042  return(-1);
3043  }
3044  }
3045  return(channel);
3046 }
3047 ␌
3048 /*
3049 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3050 % %
3051 % %
3052 % %
3053 % P a r s e C o m m a n d O p t i o n %
3054 % %
3055 % %
3056 % %
3057 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3058 %
3059 % ParseCommandOption() parses a string and returns an enumerated option
3060 % type(s). Return a value of -1 if no such option is found.
3061 %
3062 % The format of the ParseCommandOption method is:
3063 %
3064 % ssize_t ParseCommandOption(const CommandOption option,
3065 % const MagickBooleanType list,const char *options)
3066 %
3067 % A description of each parameter follows:
3068 %
3069 % o option: Index to the option table to lookup
3070 %
3071 % o list: A option other than zero permits more than one option separated by
3072 % a comma or pipe.
3073 %
3074 % o options: One or more options separated by commas.
3075 %
3076 */
3077 MagickExport ssize_t ParseCommandOption(const CommandOption option,
3078  const MagickBooleanType list,const char *options)
3079 {
3080  char
3081  token[MagickPathExtent];
3082 
3083  const OptionInfo
3084  *command_info,
3085  *option_info;
3086 
3087  int
3088  sentinel;
3089 
3090  MagickBooleanType
3091  negate;
3092 
3093  char
3094  *q;
3095 
3096  const char
3097  *p;
3098 
3099  ssize_t
3100  i;
3101 
3102  ssize_t
3103  option_types;
3104 
3105  if ((options == (const char *) NULL) || (*options == '\0'))
3106  return(-1);
3107  option_info=GetOptionInfo(option);
3108  if (option_info == (const OptionInfo *) NULL)
3109  return(-1);
3110  option_types=0;
3111  sentinel=',';
3112  if (strchr(options,'|') != (char *) NULL)
3113  sentinel='|';
3114  for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
3115  {
3116  while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
3117  (*p != '\0'))
3118  p++;
3119  negate=(*p == '!') ? MagickTrue : MagickFalse;
3120  if (negate != MagickFalse)
3121  p++;
3122  q=token;
3123  while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
3124  (*p != '\0'))
3125  {
3126  if ((q-token) >= (MagickPathExtent-1))
3127  break;
3128  *q++=(*p++);
3129  }
3130  *q='\0';
3131  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
3132  if (LocaleCompare(token,option_info[i].mnemonic) == 0)
3133  break;
3134  command_info=option_info+i;
3135  if ((command_info->mnemonic == (const char *) NULL) && (*token != '\0') &&
3136  ((strchr(token+1,'-') != (char *) NULL) ||
3137  (strchr(token+1,'_') != (char *) NULL)))
3138  {
3139  while ((q=strchr(token+1,'-')) != (char *) NULL)
3140  (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
3141  while ((q=strchr(token+1,'_')) != (char *) NULL)
3142  (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
3143  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
3144  if (LocaleCompare(token,option_info[i].mnemonic) == 0)
3145  break;
3146  command_info=option_info+i;
3147  }
3148  if (command_info->mnemonic == (const char *) NULL)
3149  return(-1);
3150  if (negate != MagickFalse)
3151  option_types=option_types &~ command_info->type;
3152  else
3153  option_types=option_types | command_info->type;
3154  if (list == MagickFalse)
3155  break;
3156  }
3157  return(option_types);
3158 }
3159 ␌
3160 /*
3161 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3162 % %
3163 % %
3164 % %
3165 % P a r s e P i x e l C h a n n e l O p t i o n %
3166 % %
3167 % %
3168 % %
3169 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3170 %
3171 % ParsePixelChannelOption() parses a string and returns an enumerated pixel
3172 % channel type(s).
3173 %
3174 % The format of the ParsePixelChannelOption method is:
3175 %
3176 % ssize_t ParsePixelChannelOption(const char *channels)
3177 %
3178 % A description of each parameter follows:
3179 %
3180 % o channels: One or more channels separated by commas.
3181 %
3182 */
3183 MagickExport ssize_t ParsePixelChannelOption(const char *channels)
3184 {
3185  char
3186  *q,
3187  token[MagickPathExtent];
3188 
3189  ssize_t
3190  channel;
3191 
3192  (void) GetNextToken(channels,(const char **) NULL,MagickPathExtent,token);
3193  if ((*token == ';') || (*token == '|'))
3194  return(RedPixelChannel);
3195  channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
3196  if (channel >= 0)
3197  return(channel);
3198  q=(char *) token;
3199  channel=(ssize_t) InterpretLocaleValue(token,&q);
3200  if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
3201  return(-1);
3202  return(channel);
3203 }
3204 ␌
3205 /*
3206 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3207 % %
3208 % %
3209 % %
3210 % R e m o v e I m a g e O p t i o n %
3211 % %
3212 % %
3213 % %
3214 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3215 %
3216 % RemoveImageOption() removes an option from the image and returns its value.
3217 %
3218 % In this case the ConstantString() value returned should be freed by the
3219 % caller when finished.
3220 %
3221 % The format of the RemoveImageOption method is:
3222 %
3223 % char *RemoveImageOption(ImageInfo *image_info,const char *option)
3224 %
3225 % A description of each parameter follows:
3226 %
3227 % o image_info: the image info.
3228 %
3229 % o option: the image option.
3230 %
3231 */
3232 MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
3233 {
3234  char
3235  *value;
3236 
3237  assert(image_info != (ImageInfo *) NULL);
3238  assert(image_info->signature == MagickCoreSignature);
3239  if (IsEventLogging() != MagickFalse)
3240  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3241  image_info->filename);
3242  if (image_info->options == (void *) NULL)
3243  return((char *) NULL);
3244  value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
3245  image_info->options,option);
3246  return(value);
3247 }
3248 ␌
3249 /*
3250 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3251 % %
3252 % %
3253 % %
3254 % R e s e t I m a g e O p t i o n %
3255 % %
3256 % %
3257 % %
3258 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3259 %
3260 % ResetImageOptions() resets the image_info option. That is, it deletes
3261 % all global options associated with the image_info structure.
3262 %
3263 % The format of the ResetImageOptions method is:
3264 %
3265 % ResetImageOptions(ImageInfo *image_info)
3266 %
3267 % A description of each parameter follows:
3268 %
3269 % o image_info: the image info.
3270 %
3271 */
3272 MagickExport void ResetImageOptions(const ImageInfo *image_info)
3273 {
3274  assert(image_info != (ImageInfo *) NULL);
3275  assert(image_info->signature == MagickCoreSignature);
3276  if (IsEventLogging() != MagickFalse)
3277  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3278  image_info->filename);
3279  if (image_info->options == (void *) NULL)
3280  return;
3281  ResetSplayTree((SplayTreeInfo *) image_info->options);
3282 }
3283 ␌
3284 /*
3285 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3286 % %
3287 % %
3288 % %
3289 % R e s e t I m a g e O p t i o n I t e r a t o r %
3290 % %
3291 % %
3292 % %
3293 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3294 %
3295 % ResetImageOptionIterator() resets the image_info values iterator. Use it
3296 % in conjunction with GetNextImageOption() to iterate over all the values
3297 % associated with an image option.
3298 %
3299 % The format of the ResetImageOptionIterator method is:
3300 %
3301 % ResetImageOptionIterator(ImageInfo *image_info)
3302 %
3303 % A description of each parameter follows:
3304 %
3305 % o image_info: the image info.
3306 %
3307 */
3308 MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
3309 {
3310  assert(image_info != (ImageInfo *) NULL);
3311  assert(image_info->signature == MagickCoreSignature);
3312  if (IsEventLogging() != MagickFalse)
3313  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3314  image_info->filename);
3315  if (image_info->options == (void *) NULL)
3316  return;
3317  ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
3318 }
3319 ␌
3320 /*
3321 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3322 % %
3323 % %
3324 % %
3325 % S e t I m a g e O p t i o n %
3326 % %
3327 % %
3328 % %
3329 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3330 %
3331 % SetImageOption() associates an value with an image option.
3332 %
3333 % The format of the SetImageOption method is:
3334 %
3335 % MagickBooleanType SetImageOption(ImageInfo *image_info,
3336 % const char *option,const char *value)
3337 %
3338 % A description of each parameter follows:
3339 %
3340 % o image_info: the image info.
3341 %
3342 % o option: the image option.
3343 %
3344 % o values: the image option values.
3345 %
3346 */
3347 MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
3348  const char *option,const char *value)
3349 {
3350  assert(image_info != (ImageInfo *) NULL);
3351  assert(image_info->signature == MagickCoreSignature);
3352  if (IsEventLogging() != MagickFalse)
3353  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3354  image_info->filename);
3355  /*
3356  Specific global option settings.
3357  */
3358  if (LocaleCompare(option,"size") == 0) {
3359  (void) CloneString(&image_info->size,value);
3360  return(MagickTrue);
3361  }
3362  /*
3363  Create tree if needed - specify how key,values are to be freed.
3364  */
3365  if (image_info->options == (void *) NULL)
3366  image_info->options=NewSplayTree(CompareSplayTreeString,
3367  RelinquishMagickMemory,RelinquishMagickMemory);
3368  /*
3369  Delete Option if NULL -- empty string values are valid!
3370  */
3371  if (value == (const char *) NULL)
3372  return(DeleteImageOption(image_info,option));
3373  /*
3374  Add option to splay-tree.
3375  */
3376  return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
3377  ConstantString(option),ConstantString(value)));
3378 }