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