MagickCore  7.0.8
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://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  {
96  },
98  {
117  },
119  {
125  },
127  {
132  { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
133  },
135  {
137  { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
141  { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
142  },
144  {
146  /* special */
150  /* individual channel */
166  { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
167  { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
168  { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
171  { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
173  { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
177  { "Saturation", GreenChannel, 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 },
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  { " range-threshold", 0, UndefinedOptionFlag, MagickFalse },
352  { " resample", 0, UndefinedOptionFlag, MagickFalse },
353  { " resize", 0, UndefinedOptionFlag, MagickFalse },
354  { " roll", 0, UndefinedOptionFlag, MagickFalse },
355  { " rotate", 0, UndefinedOptionFlag, MagickFalse },
356  { " sample", 0, UndefinedOptionFlag, MagickFalse },
357  { " scale", 0, UndefinedOptionFlag, MagickFalse },
358  { " sepia-tone", 0, UndefinedOptionFlag, MagickFalse },
359  { " segment", 0, UndefinedOptionFlag, MagickFalse },
360  { " shade", 0, UndefinedOptionFlag, MagickFalse },
361  { " shadow", 0, UndefinedOptionFlag, MagickFalse },
362  { " sharpen", 0, UndefinedOptionFlag, MagickFalse },
363  { " shave", 0, UndefinedOptionFlag, MagickFalse },
364  { " shear", 0, UndefinedOptionFlag, MagickFalse },
365  { " sigmoidal-contrast", 0, UndefinedOptionFlag, MagickFalse },
366  { " solarize", 0, UndefinedOptionFlag, MagickFalse },
367  { " splice", 0, UndefinedOptionFlag, MagickFalse },
368  { " spread", 0, UndefinedOptionFlag, MagickFalse },
369  { " strip", 0, UndefinedOptionFlag, MagickFalse },
370  { " swirl", 0, UndefinedOptionFlag, MagickFalse },
371  { " threshold", 0, UndefinedOptionFlag, MagickFalse },
372  { " transparent", 0, UndefinedOptionFlag, MagickFalse },
373  { " thumbnail", 0, UndefinedOptionFlag, MagickFalse },
374  { " tint", 0, UndefinedOptionFlag, MagickFalse },
375  { " transform", 0, UndefinedOptionFlag, MagickFalse },
376  { " trim", 0, UndefinedOptionFlag, MagickFalse },
377  { " unsharp", 0, UndefinedOptionFlag, MagickFalse },
378  { " version", 0, UndefinedOptionFlag, MagickFalse },
379  { " wave", 0, UndefinedOptionFlag, MagickFalse },
380  { " white-point", 0, UndefinedOptionFlag, MagickFalse },
381  { " white-threshold", 0, UndefinedOptionFlag, MagickFalse },
382  { "Channel Operator", 0, UndefinedOptionFlag, MagickFalse },
383  { " channel-fx", 0, UndefinedOptionFlag, MagickFalse },
384  { " separate", 0, UndefinedOptionFlag, MagickFalse },
385  { "Sequence Operator", 0, UndefinedOptionFlag, MagickFalse },
386  { " append", 0, UndefinedOptionFlag, MagickFalse },
387  { " affinity", 0, UndefinedOptionFlag, MagickFalse },
388  { " average", 0, UndefinedOptionFlag, MagickFalse },
389  { " clut", 0, UndefinedOptionFlag, MagickFalse },
390  { " coalesce", 0, UndefinedOptionFlag, MagickFalse },
391  { " combine", 0, UndefinedOptionFlag, MagickFalse },
392  { " compare", 0, UndefinedOptionFlag, MagickFalse },
393  { " complex", 0, UndefinedOptionFlag, MagickFalse },
394  { " composite", 0, UndefinedOptionFlag, MagickFalse },
395  { " copy", 0, UndefinedOptionFlag, MagickFalse },
396  { " crop", 0, UndefinedOptionFlag, MagickFalse },
397  { " debug", 0, UndefinedOptionFlag, MagickFalse },
398  { " deconstruct", 0, UndefinedOptionFlag, MagickFalse },
399  { " delete", 0, UndefinedOptionFlag, MagickFalse },
400  { " evaluate-sequence", 0, UndefinedOptionFlag, MagickFalse },
401  { " fft", 0, UndefinedOptionFlag, MagickFalse },
402  { " flatten", 0, UndefinedOptionFlag, MagickFalse },
403  { " fx", 0, UndefinedOptionFlag, MagickFalse },
404  { " hald-clut", 0, UndefinedOptionFlag, MagickFalse },
405  { " ift", 0, UndefinedOptionFlag, MagickFalse },
406  { " identify", 0, UndefinedOptionFlag, MagickFalse },
407  { " insert", 0, UndefinedOptionFlag, MagickFalse },
408  { " layers", 0, UndefinedOptionFlag, MagickFalse },
409  { " limit", 0, UndefinedOptionFlag, MagickFalse },
410  { " map", 0, UndefinedOptionFlag, MagickFalse },
411  { " maximum", 0, UndefinedOptionFlag, MagickFalse },
412  { " minimum", 0, UndefinedOptionFlag, MagickFalse },
413  { " morph", 0, UndefinedOptionFlag, MagickFalse },
414  { " mosaic", 0, UndefinedOptionFlag, MagickFalse },
415  { " optimize", 0, UndefinedOptionFlag, MagickFalse },
416  { " print", 0, UndefinedOptionFlag, MagickFalse },
417  { " process", 0, UndefinedOptionFlag, MagickFalse },
418  { " quiet", 0, UndefinedOptionFlag, MagickFalse },
419  { " swap", 0, UndefinedOptionFlag, MagickFalse },
420  { " write", 0, UndefinedOptionFlag, MagickFalse },
421  { "Geometry", 0, UndefinedOptionFlag, MagickFalse },
422  { " adaptive-resize", 0, UndefinedOptionFlag, MagickFalse },
423  { " border", 0, UndefinedOptionFlag, MagickFalse },
424  { " borderwidth", 0, UndefinedOptionFlag, MagickFalse },
425  { " chop", 0, UndefinedOptionFlag, MagickFalse },
426  { " crop", 0, UndefinedOptionFlag, MagickFalse },
427  { " density", 0, UndefinedOptionFlag, MagickFalse },
428  { " extent", 0, UndefinedOptionFlag, MagickFalse },
429  { " extract", 0, UndefinedOptionFlag, MagickFalse },
430  { " frame", 0, UndefinedOptionFlag, MagickFalse },
431  { " geometry", 0, UndefinedOptionFlag, MagickFalse },
432  { " iconGeometry", 0, UndefinedOptionFlag, MagickFalse },
433  { " liquid-rescale", 0, UndefinedOptionFlag, MagickFalse },
434  { " page", 0, UndefinedOptionFlag, MagickFalse },
435  { " region", 0, UndefinedOptionFlag, MagickFalse },
436  { " repage", 0, UndefinedOptionFlag, MagickFalse },
437  { " resize", 0, UndefinedOptionFlag, MagickFalse },
438  { " sample", 0, UndefinedOptionFlag, MagickFalse },
439  { " scale", 0, UndefinedOptionFlag, MagickFalse },
440  { " shave", 0, UndefinedOptionFlag, MagickFalse },
441  { " splice", 0, UndefinedOptionFlag, MagickFalse },
442  { " thumbnail", 0, UndefinedOptionFlag, MagickFalse },
443  { " window", 0, UndefinedOptionFlag, MagickFalse },
444  { "Stack", 0, UndefinedOptionFlag, MagickFalse },
445  { " clone", 0, UndefinedOptionFlag, MagickFalse },
446  { " delete", 0, UndefinedOptionFlag, MagickFalse },
447  { " insert", 0, UndefinedOptionFlag, MagickFalse },
448  { " swap", 0, UndefinedOptionFlag, MagickFalse },
449  { (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
450  },
452  {
454  { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
455  { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
456  { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
458  },
460  {
497  },
499  {
509  },
511  {
512  /*
513  Must be ordered lexigraphically.
514  */
515  { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
516  { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
517  { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
518  { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
519  { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
521  { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
522  { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
523  { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
524  { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
525  { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
526  { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
527  { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
528  { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
529  { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
530  { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
531  { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
532  { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
533  { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
534  { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
535  { "(", 0L, NoImageOperatorFlag, MagickTrue },
536  { ")", 0L, NoImageOperatorFlag, MagickTrue },
537  { "{", 0L, NoImageOperatorFlag, MagickTrue },
538  { "}", 0L, NoImageOperatorFlag, MagickTrue },
539  { "--", 1L, NoImageOperatorFlag, MagickTrue },
540  { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
541  { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
542  { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
543  { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
544  { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
545  { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
546  { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
547  { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
548  { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
549  { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
550  { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
551  { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
552  { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
553  { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
554  { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
556  { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
557  { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
558  { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
559  { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
560  { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
561  { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
562  { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
563  { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
564  { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
565  { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
566  { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
567  { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
568  { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
569  { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
570  { "+auto-threshold", 1L, DeprecateOptionFlag, MagickTrue },
571  { "-auto-threshold", 1L, SimpleOperatorFlag, MagickFalse },
572  { "+average", 0L, DeprecateOptionFlag, MagickTrue },
576  { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
577  { "-bench", 1L, GenesisOptionFlag, MagickFalse },
578  { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
579  { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
580  { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
581  { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
582  { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
583  { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
584  { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
585  { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
586  { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
587  { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
588  { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
589  { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
590  { "+border", 1L, DeprecateOptionFlag, MagickTrue },
591  { "-border", 1L, SimpleOperatorFlag, MagickFalse },
592  { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
593  { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
594  { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
595  { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
598  { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
599  { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
600  { "+cache", 0L, GlobalOptionFlag, MagickFalse },
601  { "-cache", 1L, GlobalOptionFlag, MagickFalse },
602  { "+canny", 1L, DeprecateOptionFlag, MagickTrue },
603  { "-canny", 1L, SimpleOperatorFlag, MagickTrue },
606  { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
608  { "+channel", 0L, SimpleOperatorFlag, MagickFalse },
609  { "-channel", 1L, SimpleOperatorFlag, MagickFalse },
610  { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
611  { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
612  { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
613  { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
614  { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
615  { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
616  { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
617  { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
618  { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
619  { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
620  { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
621  { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
622  { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
623  { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
624  { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
625  { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
626  { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
627  { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
628  { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
629  { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
630  { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
631  { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
632  { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
633  { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
634  { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
635  { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
636  { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
637  { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
638  { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
639  { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
640  { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
643  { "+compare", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
644  { "-compare", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
645  { "+complex", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
646  { "-complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
647  { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
648  { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
649  { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
650  { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
651  { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
652  { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
653  { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
654  { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
655  { "+connected-components", 1L, DeprecateOptionFlag, MagickTrue },
656  { "-connected-components", 1L, SimpleOperatorFlag, MagickFalse },
657  { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
658  { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
659  { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
660  { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
661  { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
662  { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
663  { "+copy", 2L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
664  { "-copy", 2L, ListOperatorFlag | FireOptionFlag, MagickFalse },
665  { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
666  { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
667  { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
668  { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
669  { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
670  { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
671  { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
672  { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
673  { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
674  { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
677  { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
678  { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
679  { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
680  { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
681  { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
682  { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
685  { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
686  { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
687  { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
688  { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
689  { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
690  { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
691  { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
692  { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
693  { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
694  { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
695  { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
696  { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
697  { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
698  { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
699  { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
700  { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
701  { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
702  { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
707  { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
708  { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
709  { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
710  { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
711  { "-duration", 1L, GenesisOptionFlag, MagickFalse },
712  { "+duration", 1L, GenesisOptionFlag, MagickFalse },
713  { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
714  { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
715  { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
716  { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
717  { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
718  { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
719  { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
720  { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
721  { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
722  { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
723  { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
724  { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
725  { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
726  { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
727  { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
728  { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
729  { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
730  { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
731  { "-exit", 0L, SpecialOptionFlag, MagickFalse },
732  { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
733  { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
734  { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
735  { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
736  { "+family", 0L, DeprecateOptionFlag, MagickTrue },
737  { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
738  { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
739  { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
740  { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
741  { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
744  { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
745  { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
746  { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
747  { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
748  { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
749  { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
750  { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
751  { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
752  { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
753  { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
756  { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
757  { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
758  { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
759  { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
760  { "+function", 2L, DeprecateOptionFlag, MagickTrue },
762  { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
763  { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
766  { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
767  { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
768  { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
769  { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
770  { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
771  { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
772  { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
773  { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
774  { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
775  { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
776  { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
777  { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
778  { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
779  { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
780  { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
781  { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
782  { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
783  { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
784  { "+hough-lines", 1L, DeprecateOptionFlag, MagickTrue },
785  { "-hough-lines", 1L, SimpleOperatorFlag, MagickTrue },
786  { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
787  { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
788  { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
789  { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
790  { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
791  { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
792  { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
793  { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
794  { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
795  { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
796  { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
797  { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
798  { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
799  { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
800  { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
801  { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
802  { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
803  { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
804  { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
805  { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
806  { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
807  { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
808  { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
809  { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
810  { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
811  { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
812  { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
813  { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
814  { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
815  { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
816  { "+kuwahara", 0L, DeprecateOptionFlag, MagickTrue },
817  { "-kuwahara", 1L, SimpleOperatorFlag, MagickFalse },
820  { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
821  { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
822  { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
823  { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
824  { "-level", 1L, SimpleOperatorFlag, MagickFalse },
825  { "+level", 1L, SimpleOperatorFlag, MagickFalse },
826  { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
827  { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
828  { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
829  { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
830  { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
831  { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
832  { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
833  { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
834  { "+list", 0L, DeprecateOptionFlag, MagickTrue },
835  { "-list", 1L, NoImageOperatorFlag, MagickFalse },
836  { "+local-contrast", 0L, DeprecateOptionFlag, MagickTrue },
837  { "-local-contrast", 1L, SimpleOperatorFlag, MagickFalse },
838  { "+log", 0L, DeprecateOptionFlag, MagickFalse },
839  { "-log", 1L, GlobalOptionFlag, MagickFalse },
840  { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
841  { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
842  { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
843  { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
844  { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
845  { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
850  { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
851  { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
852  { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
853  { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
854  { "+mean-shift", 1L, DeprecateOptionFlag, MagickTrue },
855  { "-mean-shift", 1L, SimpleOperatorFlag, MagickTrue },
856  { "+median", 1L, DeprecateOptionFlag, MagickTrue },
858  { "+metric", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
859  { "-metric", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
860  { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
861  { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
862  { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
864  { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
865  { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
866  { "-moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
867  { "+moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
868  { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
869  { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
870  { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
871  { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
872  { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
873  { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
874  { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
875  { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
876  { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
877  { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
878  { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
879  { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
880  { "+name", 0L, NonMagickOptionFlag, MagickFalse },
881  { "-name", 1L, NonMagickOptionFlag, MagickFalse },
882  { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
883  { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
885  { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
886  { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
887  { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
888  { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
889  { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
890  { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
891  { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
892  { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
893  { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
894  { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
895  { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
896  { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
897  { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
898  { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
899  { "+path", 0L, NonMagickOptionFlag, MagickFalse },
900  { "-path", 1L, NonMagickOptionFlag, MagickFalse },
901  { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
902  { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
903  { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
904  { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
905  { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
906  { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
907  { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
908  { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
909  { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
910  { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
911  { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
912  { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
913  { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
914  { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
915  { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
916  { "-preview", 1L, SimpleOperatorFlag, MagickFalse },
917  { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
919  { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
920  { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
921  { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
923  { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
924  { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
925  { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
926  { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
927  { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
928  { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
929  { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
930  { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
931  { "+range-threshold", 1L, DeprecateOptionFlag, MagickTrue },
932  { "-range-threshold", 1L, SimpleOperatorFlag, MagickFalse },
934  { "+read-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
935  { "-read-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
936  { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
937  { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
938  { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
939  { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
940  { "+region", 0L, SimpleOperatorFlag, MagickFalse },
941  { "-region", 1L, SimpleOperatorFlag, MagickFalse },
944  { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
945  { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
946  { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
947  { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
948  { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
949  { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
950  { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
951  { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
952  { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
953  { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
954  { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
955  { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
956  { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
957  { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
958  { "-rotational-blur", 1L, SimpleOperatorFlag, MagickFalse },
959  { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
960  { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
961  { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
962  { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
964  { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
966  { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
971  { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
972  { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
973  { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
974  { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
975  { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
976  { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
977  { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
978  { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
980  { "+seed", 0L, GlobalOptionFlag, MagickFalse },
981  { "-seed", 1L, GlobalOptionFlag, MagickFalse },
982  { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
983  { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
984  { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
985  { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
986  { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
987  { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
988  { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
989  { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
990  { "+set", 1L, NoImageOperatorFlag, MagickFalse },
992  { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
993  { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
994  { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
995  { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
996  { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
997  { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
998  { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
999  { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
1000  { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
1001  { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
1002  { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
1003  { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
1004  { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
1005  { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
1006  { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
1007  { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
1008  { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1009  { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1010  { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
1011  { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
1012  { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1013  { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1014  { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
1015  { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
1016  { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
1017  { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
1018  { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
1019  { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
1020  { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
1021  { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
1022  { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
1023  { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
1024  { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
1025  { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
1026  { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
1027  { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
1028  { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
1029  { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
1030  { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
1031  { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
1032  { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
1033  { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
1034  { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1035  { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1036  { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1037  { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
1038  { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
1039  { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
1040  { "-subimage", 0L, ListOperatorFlag, MagickFalse },
1041  { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1042  { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1043  { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1044  { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1045  { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
1046  { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
1047  { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
1048  { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
1049  { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
1050  { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
1051  { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
1052  { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
1053  { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
1055  { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
1056  { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
1057  { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
1058  { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
1061  { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
1062  { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
1063  { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
1064  { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
1065  { "+title", 0L, NonMagickOptionFlag, MagickFalse },
1066  { "-title", 1L, NonMagickOptionFlag, MagickFalse },
1067  { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
1068  { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
1069  { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
1070  { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
1071  { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
1072  { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
1073  { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
1074  { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
1075  { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
1076  { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
1077  { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
1078  { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
1079  { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
1080  { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
1083  { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1084  { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1085  { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
1086  { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
1087  { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
1088  { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
1089  { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
1090  { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
1091  { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
1092  { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
1093  { "+update", 0L, NonMagickOptionFlag, MagickFalse },
1094  { "-update", 1L, NonMagickOptionFlag, MagickFalse },
1095  { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
1096  { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
1097  { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
1098  { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
1099  { "+version", 0L, DeprecateOptionFlag, MagickTrue },
1100  { "-version", 0L, NoImageOperatorFlag, MagickFalse },
1101  { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
1102  { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
1103  { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
1104  { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
1105  { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
1106  { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
1107  { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
1108  { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
1109  { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
1110  { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
1111  { "+wavelet-denoise", 0L, DeprecateOptionFlag, MagickTrue },
1112  { "-wavelet-denoise", 1L, SimpleOperatorFlag, MagickFalse },
1113  { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
1114  { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
1115  { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
1116  { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
1117  { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
1118  { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
1119  { "+window", 0L, NonMagickOptionFlag, MagickFalse },
1120  { "-window", 1L, NonMagickOptionFlag, MagickFalse },
1121  { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
1122  { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
1125  { "+write-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1126  { "-write-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1127  { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
1128  },
1130  {
1138  { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
1139  },
1141  {
1219  },
1221  {
1243  { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
1249  },
1251  {
1252  { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
1255  { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
1256  { "String", StringData, UndefinedOptionFlag, MagickFalse },
1257  { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
1258  },
1260  {
1267  },
1269  {
1271  { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
1272  { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
1274  },
1276  {
1285  { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
1286  },
1288  {
1291  { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
1294  { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
1309  },
1311  {
1316  { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
1317  },
1319  {
1320  { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1323  { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
1324  },
1326  {
1365  },
1367  {
1368  { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1369  { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1370  { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1371  { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1372  },
1374  {
1375  { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1386  { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1393  { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
1394  { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1395  { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
1399  { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1401  { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
1405  { "CubicSpline", CubicSplineFilter, UndefinedOptionFlag, MagickFalse },
1408  { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1409  { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
1410  },
1412  {
1419  },
1421  {
1425  { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1426  },
1428  {
1429  { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1441  { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
1442  },
1444  {
1445  { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1447  { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1449  { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1450  { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
1451  },
1453  {
1463  },
1465  {
1478  { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1480 /* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
1482  },
1484  {
1485  { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1493  { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1502  { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1511  { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
1513  { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1515  { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1518  { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1519  { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1520  { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1521  { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
1522  { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
1523  { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
1524  },
1526  {
1527  { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1528  { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1529  { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1530  { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1531  { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1532  { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1533  { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1534  { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1535  { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1536  { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1537  { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1538  { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1539  { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1541  { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1543  { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1544  { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
1545  },
1547  {
1548  { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1549  { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1550  { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1551  { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1552  { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
1553  },
1555  {
1556  { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1557  { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1558  { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1559  { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1560  { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
1561  },
1563  {
1645  },
1647  {
1648  { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1650  { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
1651  { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1655  { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
1656  { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1657  { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1659  { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1665  { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1667  { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1671  { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
1672  },
1674  {
1689  },
1691  {
1692  { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1693  { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1694  { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1698  { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1699  },
1701  {
1702  { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1703  { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1704  { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1705  { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1706  { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
1707  },
1709  {
1737  { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
1740  },
1742  {
1743  { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1744  { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1745  { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1746  { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1748  { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1750  { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1751  { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
1752  },
1754  {
1765  },
1767  {
1799  },
1801  {
1814  },
1816  {
1823  },
1825  {
1831  },
1833  {
1844  },
1846  {
1854  },
1856  {
1857  { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1873  { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1887  { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
1888  },
1890  {
1909  },
1911  {
1917  },
1919  {
1922  { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1927  },
1929  {
1943  },
1945  {
1954  },
1956  {
1967  { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1968  { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1969  },
1971  {
1972  { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1977  { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
1978  { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1981  },
1983  {
1984  { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1988  { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1989  { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1991  { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1992  { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1993  { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1994  { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1995  { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
1996  },
1998  {
1999  { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
2004  { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
2005  { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
2006  },
2008  {
2009  { "animate", 0, UndefinedOptionFlag, MagickFalse },
2010  { "compare", 0, UndefinedOptionFlag, MagickFalse },
2011  { "composite", 0, UndefinedOptionFlag, MagickFalse },
2012  { "conjure", 0, UndefinedOptionFlag, MagickFalse },
2013  { "convert", 0, UndefinedOptionFlag, MagickFalse },
2014  { "display", 0, UndefinedOptionFlag, MagickFalse },
2015  { "identify", 0, UndefinedOptionFlag, MagickFalse },
2016  { "import", 0, UndefinedOptionFlag, MagickFalse },
2017  { "mogrify", 0, UndefinedOptionFlag, MagickFalse },
2018  { "montage", 0, UndefinedOptionFlag, MagickFalse },
2019  { "stream", 0, UndefinedOptionFlag, MagickFalse },
2020  { (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
2021  },
2023  {
2024  { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
2025  { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
2026  { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
2027  { "ColorSeparationAlpha", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
2028  { "ColorSeparationMatte", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
2029  { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
2030  { "GrayscaleAlpha", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
2031  { "GrayscaleMatte", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
2032  { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
2033  { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
2034  { "PaletteBilevelAlpha", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
2035  { "PaletteBilevelMatte", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
2036  { "PaletteAlpha", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
2037  { "PaletteMatte", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
2038  { "TrueColorAlpha", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
2039  { "TrueColorMatte", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
2040  { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
2041  { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
2042  },
2044  {
2053  { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
2060  },
2062  {
2082  },
2084  {
2085  { "Undefined", 0L, UndefinedOptionFlag, MagickTrue },
2086  { "Thin", 100L, UndefinedOptionFlag, MagickFalse },
2087  { "ExtraLight", 200L, UndefinedOptionFlag, MagickFalse },
2088  { "UltraLight", 200L, UndefinedOptionFlag, MagickFalse },
2089  { "Light", 300L, DeprecateOptionFlag, MagickTrue },
2090  { "Normal", 400L, UndefinedOptionFlag, MagickFalse },
2091  { "Regular", 400L, UndefinedOptionFlag, MagickFalse },
2092  { "Medium", 500L, UndefinedOptionFlag, MagickFalse },
2093  { "DemiBold", 600L, UndefinedOptionFlag, MagickFalse },
2094  { "SemiBold", 600L, UndefinedOptionFlag, MagickFalse },
2095  { "Bold", 700L, UndefinedOptionFlag, MagickFalse },
2096  { "ExtraBold", 800L, UndefinedOptionFlag, MagickFalse },
2097  { "UltraBold", 800L, UndefinedOptionFlag, MagickFalse },
2098  { "Heavy", 900L, UndefinedOptionFlag, MagickFalse },
2099  { "Black", 900L, UndefinedOptionFlag, MagickFalse },
2100  { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
2101  };
2102 
2103 /*
2104 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2105 % %
2106 % %
2107 % %
2108 % C l o n e I m a g e O p t i o n s %
2109 % %
2110 % %
2111 % %
2112 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2113 %
2114 % CloneImageOptions() clones all global image options, to another image_info
2115 %
2116 % The format of the CloneImageOptions method is:
2117 %
2118 % MagickBooleanType CloneImageOptions(ImageInfo *image_info,
2119 % const ImageInfo *clone_info)
2120 %
2121 % A description of each parameter follows:
2122 %
2123 % o image_info: the image info to recieve the cloned options.
2124 %
2125 % o clone_info: the source image info for options to clone.
2126 %
2127 */
2129  const ImageInfo *clone_info)
2130 {
2131  assert(image_info != (ImageInfo *) NULL);
2132  assert(image_info->signature == MagickCoreSignature);
2133  if (image_info->debug != MagickFalse)
2135  image_info->filename);
2136  assert(clone_info != (const ImageInfo *) NULL);
2137  assert(clone_info->signature == MagickCoreSignature);
2138  if (clone_info->options != (void *) NULL)
2139  {
2140  if (image_info->options != (void *) NULL)
2141  DestroyImageOptions(image_info);
2142  image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
2143  (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
2144  }
2145  return(MagickTrue);
2146 }
2147 
2148 /*
2149 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2150 % %
2151 % %
2152 % %
2153 % D e f i n e I m a g e O p t i o n %
2154 % %
2155 % %
2156 % %
2157 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2158 %
2159 % DefineImageOption() associates an assignment string of the form
2160 % "key=value" with a global image option. It is equivelent to
2161 % SetImageOption().
2162 %
2163 % The format of the DefineImageOption method is:
2164 %
2165 % MagickBooleanType DefineImageOption(ImageInfo *image_info,
2166 % const char *option)
2167 %
2168 % A description of each parameter follows:
2169 %
2170 % o image_info: the image info.
2171 %
2172 % o option: the image option assignment string.
2173 %
2174 */
2176  const char *option)
2177 {
2178  char
2179  key[MagickPathExtent],
2180  value[MagickPathExtent];
2181 
2182  register char
2183  *p;
2184 
2185  assert(image_info != (ImageInfo *) NULL);
2186  assert(option != (const char *) NULL);
2187  (void) CopyMagickString(key,option,MagickPathExtent);
2188  for (p=key; *p != '\0'; p++)
2189  if (*p == '=')
2190  break;
2191  *value='\0';
2192  if (*p == '=')
2193  (void) CopyMagickString(value,p+1,MagickPathExtent);
2194  *p='\0';
2195  return(SetImageOption(image_info,key,value));
2196 }
2197 
2198 /*
2199 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2200 % %
2201 % %
2202 % %
2203 % D e l e t e I m a g e O p t i o n %
2204 % %
2205 % %
2206 % %
2207 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2208 %
2209 % DeleteImageOption() deletes an key from the global image options.
2210 %
2211 % Returns MagickTrue is the option is found and deleted from the Options.
2212 %
2213 % The format of the DeleteImageOption method is:
2214 %
2215 % MagickBooleanType DeleteImageOption(ImageInfo *image_info,
2216 % const char *key)
2217 %
2218 % A description of each parameter follows:
2219 %
2220 % o image_info: the image info.
2221 %
2222 % o option: the image option.
2223 %
2224 */
2226  const char *option)
2227 {
2228  assert(image_info != (ImageInfo *) NULL);
2229  assert(image_info->signature == MagickCoreSignature);
2230  if (image_info->debug != MagickFalse)
2232  image_info->filename);
2233  if (image_info->options == (void *) NULL)
2234  return(MagickFalse);
2235  return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
2236 }
2237 
2238 /*
2239 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2240 % %
2241 % %
2242 % %
2243 % D e s t r o y I m a g e O p t i o n s %
2244 % %
2245 % %
2246 % %
2247 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2248 %
2249 % DestroyImageOptions() destroys all global options and associated memory
2250 % attached to the given image_info image list.
2251 %
2252 % The format of the DestroyDefines method is:
2253 %
2254 % void DestroyImageOptions(ImageInfo *image_info)
2255 %
2256 % A description of each parameter follows:
2257 %
2258 % o image_info: the image info.
2259 %
2260 */
2262 {
2263  assert(image_info != (ImageInfo *) NULL);
2264  assert(image_info->signature == MagickCoreSignature);
2265  if (image_info->debug != MagickFalse)
2267  image_info->filename);
2268  if (image_info->options != (void *) NULL)
2269  image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
2270 }
2271 
2272 /*
2273 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2274 % %
2275 % %
2276 % %
2277 % G e t I m a g e O p t i o n %
2278 % %
2279 % %
2280 % %
2281 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2282 %
2283 % GetImageOption() gets a value associated with the global image options.
2284 %
2285 % The returned string is a constant string in the tree and should NOT be
2286 % freed by the caller.
2287 %
2288 % The format of the GetImageOption method is:
2289 %
2290 % const char *GetImageOption(const ImageInfo *image_info,
2291 % const char *option)
2292 %
2293 % A description of each parameter follows:
2294 %
2295 % o image_info: the image info.
2296 %
2297 % o option: the option.
2298 %
2299 */
2300 MagickExport const char *GetImageOption(const ImageInfo *image_info,
2301  const char *option)
2302 {
2303  assert(image_info != (ImageInfo *) NULL);
2304  assert(image_info->signature == MagickCoreSignature);
2305  if (image_info->debug != MagickFalse)
2307  image_info->filename);
2308  if (image_info->options == (void *) NULL)
2309  return((const char *) NULL);
2310  return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
2311  image_info->options,option));
2312 }
2313 
2314 /*
2315 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2316 % %
2317 % %
2318 % %
2319 % G e t C o m m a n d O p t i o n F l a g s %
2320 % %
2321 % %
2322 % %
2323 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2324 %
2325 % GetCommandOptionFlags() parses a string and returns an enumerated option
2326 % flags(s). Return a value of -1 if no such option is found.
2327 %
2328 % The format of the GetCommandOptionFlags method is:
2329 %
2330 % ssize_t GetCommandOptionFlags(const CommandOption option,
2331 % const MagickBooleanType list,const char *options)
2332 %
2333 % A description of each parameter follows:
2334 %
2335 % o option: Index to the option table to lookup
2336 %
2337 % o list: A option other than zero permits more than one option separated by
2338 % a comma or pipe.
2339 %
2340 % o options: One or more options separated by commas.
2341 %
2342 */
2343 
2344 static const OptionInfo *GetOptionInfo(const CommandOption option)
2345 {
2346  switch (option)
2347  {
2348  case MagickAlignOptions: return(AlignOptions);
2351  case MagickBooleanOptions: return(BooleanOptions);
2352  case MagickCacheOptions: return(CacheOptions);
2353  case MagickChannelOptions: return(ChannelOptions);
2354  case MagickClassOptions: return(ClassOptions);
2355  case MagickCLIOptions: return(CLIOptions);
2356  case MagickClipPathOptions: return(ClipPathOptions);
2358  case MagickCommandOptions: return(CommandOptions);
2360  case MagickComplexOptions: return(ComplexOptions);
2361  case MagickComposeOptions: return(ComposeOptions);
2362  case MagickCompressOptions: return(CompressOptions);
2363  case MagickDataTypeOptions: return(DataTypeOptions);
2364  case MagickDebugOptions: return(LogEventOptions);
2365  case MagickDecorateOptions: return(DecorateOptions);
2367  case MagickDisposeOptions: return(DisposeOptions);
2368  case MagickDistortOptions: return(DistortOptions);
2369  case MagickDitherOptions: return(DitherOptions);
2370  case MagickEndianOptions: return(EndianOptions);
2371  case MagickEvaluateOptions: return(EvaluateOptions);
2372  case MagickFillRuleOptions: return(FillRuleOptions);
2373  case MagickFilterOptions: return(FilterOptions);
2374  case MagickFunctionOptions: return(FunctionOptions);
2375  case MagickGradientOptions: return(GradientOptions);
2376  case MagickGravityOptions: return(GravityOptions);
2377  case MagickIntentOptions: return(IntentOptions);
2380  case MagickKernelOptions: return(KernelOptions);
2381  case MagickLayerOptions: return(LayerOptions);
2382  case MagickLineCapOptions: return(LineCapOptions);
2383  case MagickLineJoinOptions: return(LineJoinOptions);
2384  case MagickListOptions: return(ListOptions);
2385  case MagickLogEventOptions: return(LogEventOptions);
2386  case MagickMetricOptions: return(MetricOptions);
2387  case MagickMethodOptions: return(MethodOptions);
2388  case MagickModeOptions: return(ModeOptions);
2390  case MagickNoiseOptions: return(NoiseOptions);
2398  case MagickPreviewOptions: return(PreviewOptions);
2402  case MagickResourceOptions: return(ResourceOptions);
2405  case MagickStorageOptions: return(StorageOptions);
2406  case MagickStretchOptions: return(StretchOptions);
2407  case MagickToolOptions: return(ToolOptions);
2408  case MagickStyleOptions: return(StyleOptions);
2409  case MagickTypeOptions: return(TypeOptions);
2410  case MagickValidateOptions: return(ValidateOptions);
2412  case MagickWeightOptions: return(WeightOptions);
2413  default: break;
2414  }
2415  return((const OptionInfo *) NULL);
2416 }
2417 
2419  const MagickBooleanType list,const char *options)
2420 {
2421  char
2422  token[MagickPathExtent];
2423 
2424  const OptionInfo
2425  *command_info,
2426  *option_info;
2427 
2428  int
2429  sentinel;
2430 
2432  negate;
2433 
2434  register char
2435  *q;
2436 
2437  register const char
2438  *p;
2439 
2440  register ssize_t
2441  i;
2442 
2443  ssize_t
2444  option_types;
2445 
2446  if ((options == (const char *) NULL) || (*options == '\0'))
2447  return(-1);
2448  option_info=GetOptionInfo(option);
2449  if (option_info == (const OptionInfo *) NULL)
2450  return(UndefinedOptionFlag);
2451  option_types=0;
2452  sentinel=',';
2453  if (strchr(options,'|') != (char *) NULL)
2454  sentinel='|';
2455  for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2456  {
2457  while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2458  (*p != '\0'))
2459  p++;
2460  negate=(*p == '!') ? MagickTrue : MagickFalse;
2461  if (negate != MagickFalse)
2462  p++;
2463  q=token;
2464  while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2465  (*p != '\0'))
2466  {
2467  if ((q-token) >= (MagickPathExtent-1))
2468  break;
2469  *q++=(*p++);
2470  }
2471  *q='\0';
2472  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2473  if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2474  break;
2475  command_info=option_info+i;
2476  if ((command_info->mnemonic == (const char *) NULL) && (*token != '\0') &&
2477  ((strchr(token+1,'-') != (char *) NULL) ||
2478  (strchr(token+1,'_') != (char *) NULL)))
2479  {
2480  while ((q=strchr(token+1,'-')) != (char *) NULL)
2481  (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
2482  while ((q=strchr(token+1,'_')) != (char *) NULL)
2483  (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
2484  for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2485  if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2486  break;
2487  command_info=option_info+i;
2488  }
2489  if (command_info->mnemonic == (const char *) NULL)
2490  return(-1);
2491  if (negate != MagickFalse)
2492  option_types=option_types &~ command_info->flags;
2493  else
2494  option_types=option_types | command_info->flags;
2495  if (list == MagickFalse)
2496  break;
2497  }
2498  return(option_types);
2499 }
2500 
2501 /*
2502 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2503 % %
2504 % %
2505 % %
2506 % G e t C o m m a n d O p t i o n I n f o %
2507 % %
2508 % %
2509 % %
2510 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2511 %
2512 % GetCommandOptionInfo() returns a pointer to the matching OptionInfo entry
2513 % for the "CommandOptions" table. It returns both the type (argument count)
2514 % and flags (argument type).
2515 %
2516 % The format of the GetCommandOptionInfo method is:
2517 %
2518 % const char **GetCommandOptionInfo(const char *option)
2519 %
2520 % A description of each parameter follows:
2521 %
2522 % o option: the option.
2523 %
2524 */
2526 {
2527  register ssize_t
2528  i;
2529 
2530  for (i=0; CommandOptions[i].mnemonic != (char *) NULL; i++)
2531  if (LocaleCompare(option,CommandOptions[i].mnemonic) == 0)
2532  break;
2533  return(CommandOptions+i);
2534 }
2535 
2536 /*
2537 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2538 % %
2539 % %
2540 % %
2541 % G e t C o m m a n d O p t i o n s %
2542 % %
2543 % %
2544 % %
2545 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2546 %
2547 % GetCommandOptions() returns a list of command options.
2548 %
2549 % The format of the GetCommandOptions method is:
2550 %
2551 % const char **GetCommandOptions(const CommandOption option)
2552 %
2553 % A description of each parameter follows:
2554 %
2555 % o option: the option.
2556 %
2557 */
2559 {
2560  char
2561  **options;
2562 
2563  const OptionInfo
2564  *option_info;
2565 
2566  register ssize_t
2567  i;
2568 
2569  option_info=GetOptionInfo(option);
2570  if (option_info == (const OptionInfo *) NULL)
2571  return((char **) NULL);
2572  for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2573  options=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*options));
2574  if (options == (char **) NULL)
2575  ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2576  for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2577  options[i]=AcquireString(option_info[i].mnemonic);
2578  options[i]=(char *) NULL;
2579  return(options);
2580 }
2581 
2582 /*
2583 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2584 % %
2585 % %
2586 % %
2587 % G e t N e x t I m a g e O p t i o n %
2588 % %
2589 % %
2590 % %
2591 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2592 %
2593 % GetNextImageOption() gets the next global option value.
2594 %
2595 % The format of the GetNextImageOption method is:
2596 %
2597 % char *GetNextImageOption(const ImageInfo *image_info)
2598 %
2599 % A description of each parameter follows:
2600 %
2601 % o image_info: the image info.
2602 %
2603 */
2605 {
2606  assert(image_info != (ImageInfo *) NULL);
2607  assert(image_info->signature == MagickCoreSignature);
2608  if (image_info->debug != MagickFalse)
2610  image_info->filename);
2611  if (image_info->options == (void *) NULL)
2612  return((char *) NULL);
2613  return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2614 }
2615 
2616 /*
2617 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2618 % %
2619 % %
2620 % %
2621 % I s C o m m a n d O p t i o n %
2622 % %
2623 % %
2624 % %
2625 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2626 %
2627 % IsCommandOption() returns MagickTrue if the option begins with a - or + and
2628 % the first character that follows is alphanumeric.
2629 %
2630 % The format of the IsCommandOption method is:
2631 %
2632 % MagickBooleanType IsCommandOption(const char *option)
2633 %
2634 % A description of each parameter follows:
2635 %
2636 % o option: the option.
2637 %
2638 */
2640 {
2641  assert(option != (const char *) NULL);
2642  if ((*option != '-') && (*option != '+'))
2643  return(MagickFalse);
2644  if (strlen(option) == 1)
2645  return(((*option == '{') || (*option == '}') || (*option == '[') ||
2646  (*option == ']')) ? MagickTrue : MagickFalse);
2647  option++;
2648  if (isalpha((int) ((unsigned char) *option)) == 0)
2649  return(MagickFalse);
2650  return(MagickTrue);
2651 }
2652 
2653 /*
2654 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2655 % %
2656 % %
2657 % %
2658 % C o m m a n d O p t i o n T o M n e m o n i c %
2659 % %
2660 % %
2661 % %
2662 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2663 %
2664 % CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
2665 %
2666 % The format of the CommandOptionToMnemonic method is:
2667 %
2668 % const char *CommandOptionToMnemonic(const CommandOption option,
2669 % const ssize_t type)
2670 %
2671 % A description of each parameter follows:
2672 %
2673 % o option: the option.
2674 %
2675 % o type: one or more values separated by commas.
2676 %
2677 */
2679  const ssize_t type)
2680 {
2681  const