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