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