2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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 %
10 % OOO P T IIIII OOO N N %
13 % MagickCore Option Methods %
20 % Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
21 % dedicated to making software imaging solutions freely available. %
23 % You may not use this file except in compliance with the License. You may %
24 % obtain a copy of the License at %
26 % http://www.imagemagick.org/script/license.php %
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. %
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 #include "MagickCore/studio.h"
44 #include "MagickCore/artifact.h"
45 #include "MagickCore/cache.h"
46 #include "MagickCore/color.h"
47 #include "MagickCore/compare.h"
48 #include "MagickCore/constitute.h"
49 #include "MagickCore/distort.h"
50 #include "MagickCore/draw.h"
51 #include "MagickCore/effect.h"
52 #include "MagickCore/exception.h"
53 #include "MagickCore/exception-private.h"
54 #include "MagickCore/fx.h"
55 #include "MagickCore/gem.h"
56 #include "MagickCore/geometry.h"
57 #include "MagickCore/image.h"
58 #include "MagickCore/image-private.h"
59 #include "MagickCore/layer.h"
60 #include "MagickCore/mime-private.h"
61 #include "MagickCore/memory_.h"
62 #include "MagickCore/monitor.h"
63 #include "MagickCore/montage.h"
64 #include "MagickCore/morphology.h"
65 #include "MagickCore/option.h"
66 #include "MagickCore/pixel.h"
67 #include "MagickCore/policy.h"
68 #include "MagickCore/property.h"
69 #include "MagickCore/quantize.h"
70 #include "MagickCore/quantum.h"
71 #include "MagickCore/resample.h"
72 #include "MagickCore/resource_.h"
73 #include "MagickCore/splay-tree.h"
74 #include "MagickCore/statistic.h"
75 #include "MagickCore/string_.h"
76 #include "MagickCore/token.h"
77 #include "MagickCore/utility.h"
82 static const OptionInfo
85 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
86 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
87 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
88 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
89 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
90 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
91 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
92 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
94 AlphaChannelOptions[] =
96 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
97 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
98 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
99 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
100 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
104 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
105 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
106 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
107 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
108 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
109 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
110 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
114 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
115 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
116 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
117 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
118 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
122 { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
123 { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
124 { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
125 { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
126 { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
127 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
131 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
133 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
134 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
135 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
136 /* individual channel */
137 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
138 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
139 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
140 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
141 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
142 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
143 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
144 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
145 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
146 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
147 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
148 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
149 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
150 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
151 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
152 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
153 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
154 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
155 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
156 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
157 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
158 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
159 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
160 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
161 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
162 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
163 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
164 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
168 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
169 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
170 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
171 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
175 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
176 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
177 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
178 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
179 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
183 /* WARNING: this must be sorted by name, then by switch character
184 So that it can be referenced using a binary search for speed.
185 See GetCommandOptionInfo() below for details.
188 magick -list command > t1
189 sort -k 1.2 t1 | diff t1 -
190 Should not show any differences...
192 { "(", 0L, NoImageOperatorFlag, MagickTrue },
193 { ")", 0L, NoImageOperatorFlag, MagickTrue },
194 { "{", 0L, NoImageOperatorFlag, MagickTrue },
195 { "}", 0L, NoImageOperatorFlag, MagickTrue },
196 { "--", 1L, NoImageOperatorFlag, MagickTrue },
197 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
198 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
199 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
200 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
201 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
202 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
203 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
204 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
205 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
206 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
207 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
208 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
209 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
210 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
211 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
212 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
213 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
214 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
215 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
216 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
217 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
218 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
219 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
220 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
221 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
222 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
223 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
224 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
225 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
226 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
227 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
228 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
229 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
230 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
231 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
232 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
233 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
234 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
235 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
236 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
237 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
238 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
239 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
240 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
241 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
242 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
243 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
244 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
245 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
246 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
247 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
248 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
249 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
250 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
251 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
252 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
253 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
254 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
255 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
256 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
257 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
258 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
259 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
260 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
261 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
262 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
263 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
264 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
265 { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
266 { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
267 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
268 { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
269 { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
270 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
271 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
272 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
273 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
274 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
275 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
276 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
277 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
278 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
279 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
280 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
281 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
282 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
283 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
284 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
285 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
286 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
287 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
288 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
289 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
290 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
291 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
292 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
293 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
294 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
295 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
296 { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
297 { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
298 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
299 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
300 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
301 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
302 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
303 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
304 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
305 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
306 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
307 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
308 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
309 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
310 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
311 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
312 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
313 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
314 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
315 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
316 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
317 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
318 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
319 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
320 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
321 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
322 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
323 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
324 { "+define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
325 { "-define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
326 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
327 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
328 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
329 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
330 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
331 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
332 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
333 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
334 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
335 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
336 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
337 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
338 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
339 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
340 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
341 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
342 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
343 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
344 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
345 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
346 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
347 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
348 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
349 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
350 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
351 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
352 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
353 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
354 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
355 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
356 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
357 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
358 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
359 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
360 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
361 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
362 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
363 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
364 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
365 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
366 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
367 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
368 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
369 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
370 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
371 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
372 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
373 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
374 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
375 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
376 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
377 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
378 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
379 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
380 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
381 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
382 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
383 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
384 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
385 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
386 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
387 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
388 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
389 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
390 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
391 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
392 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
393 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
394 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
395 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
396 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
397 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
398 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
399 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
400 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
401 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
402 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
403 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
404 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
405 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
406 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
407 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
408 { "-format", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
409 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
410 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
411 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
412 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
413 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
414 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
415 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
416 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
417 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
418 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
419 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
420 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
421 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
422 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
423 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
424 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
425 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
426 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
427 { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
428 { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
429 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
430 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
431 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
432 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
433 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
434 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
435 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
436 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
437 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
438 { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
439 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
440 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
441 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
442 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
443 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
444 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
445 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
446 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
447 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
448 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
449 { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
450 { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
451 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
452 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
453 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
454 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
455 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
456 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
457 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
458 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
459 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
460 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
461 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
462 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
463 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
464 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
465 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
466 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
467 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
468 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
469 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
470 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
471 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
472 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
473 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
474 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
475 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
476 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
477 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
478 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
479 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
480 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
481 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
482 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
483 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
484 { "-log", 1L, GlobalOptionFlag, MagickFalse },
485 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
486 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
487 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
488 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
489 { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
490 { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
491 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
492 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
493 { "+mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
494 { "-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
495 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
496 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
497 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
498 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
499 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
500 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
501 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
502 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
503 { "+metric", 0L, ImageInfoOptionFlag, MagickFalse },
504 { "-metric", 1L, ImageInfoOptionFlag, MagickFalse },
505 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
506 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
507 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
508 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
509 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
510 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
511 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
512 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
513 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
514 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
515 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
516 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
517 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
518 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
519 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
520 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
521 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
522 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
523 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
524 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
525 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
526 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
527 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
528 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
529 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
530 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
531 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
532 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
533 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
534 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
535 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
536 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
537 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
538 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
539 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
540 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
541 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
542 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
543 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
544 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
545 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
546 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
547 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
548 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
549 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
550 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
551 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
552 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
553 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
554 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
555 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
556 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
557 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
558 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
559 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
560 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
561 { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
562 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
563 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
564 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
565 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
566 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
567 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
568 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
569 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
570 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
571 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
572 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue },
573 { "-radial-blur", 1L, SimpleOperatorFlag, MagickFalse },
574 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
575 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
576 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
577 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
578 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
579 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
580 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
581 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
582 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
583 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
584 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
585 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
586 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
587 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
588 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
589 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
590 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
591 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
592 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
593 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
594 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
595 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
596 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
597 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
598 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
599 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
600 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
601 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
602 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
603 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
604 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
605 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
606 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
607 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
608 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
609 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
610 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
611 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
612 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
613 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
614 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
615 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
616 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
617 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
618 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
619 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
620 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
621 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
622 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
623 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
624 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
625 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
626 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
627 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
628 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
629 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
630 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
631 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
632 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
633 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
634 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
635 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
636 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
637 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
638 { "+set", 1L, NoImageOperatorFlag, MagickFalse },
639 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
640 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
641 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
642 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
643 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
644 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
645 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
646 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
647 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
648 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
649 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
650 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
651 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
652 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
653 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
654 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
655 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
656 { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
657 { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
658 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
659 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
660 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
661 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
662 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
663 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
664 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
665 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
666 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
667 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
668 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
669 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
670 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
671 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
672 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
673 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
674 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
675 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
676 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
677 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
678 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
679 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
680 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
681 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
682 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
683 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
684 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
685 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
686 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
687 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
688 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
689 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
690 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
691 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
692 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
693 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
694 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
695 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
696 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
697 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
698 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
699 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
700 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
701 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
702 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
703 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
704 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
705 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
706 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
707 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
708 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
709 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
710 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
711 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
712 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
713 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
714 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
715 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
716 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
717 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
718 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
719 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
720 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
721 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
722 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
723 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
724 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
725 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
726 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
727 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
728 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
729 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
730 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
731 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
732 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
733 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
734 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
735 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
736 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
737 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
738 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
739 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
740 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
741 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
742 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
743 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
744 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
745 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
746 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
747 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
748 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
749 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
750 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
751 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
752 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
753 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
754 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
755 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
756 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
757 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
758 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
759 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
760 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
761 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
762 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
763 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
764 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
765 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
766 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
767 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
768 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
769 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
770 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
771 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
772 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
773 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
774 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
775 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
779 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
780 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
781 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
782 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
783 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
784 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
785 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
786 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
787 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
789 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
791 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
795 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
796 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
798 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
799 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
809 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
816 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
820 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
822 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
823 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
825 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
827 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
828 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
829 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
830 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
831 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
832 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
833 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
834 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
835 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
836 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
837 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
838 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
839 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
840 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
841 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
842 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
843 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
844 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
845 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
846 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
847 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
848 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
849 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
850 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
851 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
855 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
856 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
857 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
858 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
859 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
860 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
861 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
862 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
863 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
864 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
865 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
866 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
867 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
868 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
869 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
870 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
871 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
872 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
873 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
874 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
875 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
876 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
877 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
878 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
879 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
881 ColorspaceOptions[] =
883 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
884 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
885 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
886 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
887 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
888 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
889 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
890 { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
891 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
892 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
893 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
894 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
895 { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
896 { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
897 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
898 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
899 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
900 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
901 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
902 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
903 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
904 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
905 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
906 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
907 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
908 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
909 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
910 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
911 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
912 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
916 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
917 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
918 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
919 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
920 { "String", StringData, UndefinedOptionFlag, MagickFalse },
921 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
925 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
926 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
927 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
928 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
929 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
930 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
934 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
935 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
936 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
937 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
941 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
942 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
943 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
944 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
945 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
946 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
947 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
948 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
949 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
950 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
954 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
955 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
956 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
957 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
958 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
959 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
960 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
961 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
962 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
963 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
964 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
965 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
966 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
967 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
968 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
969 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
970 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
971 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
972 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
973 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
977 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
978 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
979 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
980 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
981 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
985 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
986 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
987 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
988 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
992 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
993 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
994 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
995 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
996 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
997 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
998 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
999 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1000 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1001 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1002 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1003 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1004 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1005 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1006 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1007 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1008 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1009 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1010 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1011 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1012 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1013 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1014 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1015 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1016 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1017 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1018 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1019 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1020 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1021 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1022 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1023 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1024 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1025 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1026 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1027 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
1031 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1032 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1033 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1034 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1038 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1039 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1040 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1041 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1042 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1043 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
1044 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
1045 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1046 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1047 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
1048 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1049 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1050 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1051 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1052 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1053 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1054 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
1055 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1056 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
1057 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1058 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
1059 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1060 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1061 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1062 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1063 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
1064 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
1065 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1066 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
1067 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
1068 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
1069 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1070 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1071 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
1075 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1076 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1077 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1078 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1079 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1080 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
1084 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1085 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1086 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1087 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1088 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1089 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1090 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1091 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1092 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1093 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1094 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1095 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
1096 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
1100 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1101 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1102 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1103 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1104 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1105 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
1107 InterlaceOptions[] =
1109 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1110 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1111 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1112 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1113 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1114 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1115 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1116 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1117 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
1119 InterpolateOptions[] =
1121 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1122 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1123 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1124 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1125 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1126 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1127 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1128 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1129 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1130 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1131 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1132 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1133 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1134 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1135 /* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
1136 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
1140 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1141 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1142 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1143 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1144 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1145 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1146 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
1147 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
1148 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1149 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1150 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1151 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1152 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1153 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1154 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1155 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1156 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1157 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1158 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1159 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1160 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1161 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1162 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1163 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1164 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1165 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1166 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
1167 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1168 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1169 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1170 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1171 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1172 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1173 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1174 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1175 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1176 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
1177 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
1178 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
1182 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1183 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1184 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1185 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1186 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1187 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1188 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1189 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1190 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1191 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1192 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1193 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1194 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1195 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1196 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1197 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1198 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1199 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
1203 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1204 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1205 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1206 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1207 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
1211 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1212 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1213 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1214 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1215 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
1219 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
1220 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
1221 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
1222 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
1223 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1224 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1225 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1226 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1227 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1228 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1229 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1230 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1231 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1232 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1233 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1234 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1235 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1236 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1237 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1238 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1239 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1240 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1241 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1242 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1243 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1244 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1245 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1246 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1247 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1248 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
1249 { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
1250 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1251 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1253 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1254 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1255 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1256 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1257 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1258 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1259 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1260 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1261 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1262 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1263 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1264 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1265 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1266 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1267 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1268 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1269 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
1270 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1271 { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
1272 { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
1273 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
1274 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1275 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1276 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1277 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1278 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1279 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1280 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1281 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1282 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1283 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1284 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1285 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1286 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1287 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1288 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1289 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1290 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1291 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1292 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
1296 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1297 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
1298 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
1299 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1300 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1301 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1302 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1303 { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
1304 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1305 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1306 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1307 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1308 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1309 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1310 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
1311 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
1312 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1313 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1314 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1315 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1316 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1317 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1318 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1319 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
1323 { "Undefined", UndefinedMetric, UndefinedOptionFlag, MagickTrue },
1324 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1325 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1326 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1327 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1328 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1329 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1330 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1331 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1332 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1333 { (char *) NULL, UndefinedMetric, UndefinedOptionFlag, MagickFalse }
1337 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1338 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1339 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1340 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1341 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1342 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1343 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1347 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1348 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1349 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1350 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1351 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
1353 MorphologyOptions[] =
1355 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1356 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1357 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1358 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1359 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1360 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1361 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1362 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1363 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1364 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1365 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1366 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1367 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1368 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1369 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1370 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1371 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1372 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1373 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1374 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1375 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
1376 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1377 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1378 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1379 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1380 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
1381 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1382 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
1383 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1384 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
1388 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1389 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1390 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1391 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1392 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1393 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1394 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1395 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1396 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
1398 OrientationOptions[] =
1400 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1401 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1402 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1403 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1404 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1405 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1406 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1407 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1408 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1409 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
1411 PixelChannelOptions[] =
1413 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
1414 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1415 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1416 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1417 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1418 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1419 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1420 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1421 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
1422 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1423 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1424 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1425 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
1426 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1427 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1428 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1429 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
1430 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1431 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1432 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1433 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1434 { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1435 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1436 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
1437 { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1438 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1439 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1440 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1442 PixelIntensityOptions[] =
1444 { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1445 { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1446 { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1447 { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1448 { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1449 { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1450 { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1451 { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1452 { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1453 { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1454 { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1456 PixelMaskOptions[] =
1458 { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1459 { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1460 { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1461 { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1462 { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1463 { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1465 PixelTraitOptions[] =
1467 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1468 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1469 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1470 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1471 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1473 PolicyDomainOptions[] =
1475 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1476 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1477 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1478 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1479 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1480 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1481 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1482 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
1484 PolicyRightsOptions[] =
1486 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1487 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1488 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1489 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1490 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1491 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
1495 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1496 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1497 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1498 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1499 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1500 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1501 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1502 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1503 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1504 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1505 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1506 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1507 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1508 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1509 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1510 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1511 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1512 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1513 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1514 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1515 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1516 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1517 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1518 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1519 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1520 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1521 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1522 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1523 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1524 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1525 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
1527 PrimitiveOptions[] =
1529 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1530 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1531 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1532 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1533 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1534 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1535 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1536 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1537 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1538 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1539 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1540 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1541 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1542 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1543 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1544 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1545 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
1547 QuantumFormatOptions[] =
1549 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1550 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1551 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1552 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1553 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
1555 ResolutionOptions[] =
1557 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1558 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1559 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1560 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
1564 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1565 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1566 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1567 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1568 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1569 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1570 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1571 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1572 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1574 SparseColorOptions[] =
1576 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1577 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1578 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
1579 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
1580 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1581 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1582 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1584 StatisticOptions[] =
1586 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1587 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1588 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1589 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1590 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1591 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1592 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
1593 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
1594 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1595 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1599 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1600 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1601 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1602 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
1603 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
1604 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
1605 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1606 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1607 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1611 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1612 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1613 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1614 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1615 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1616 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1617 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1618 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1619 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1620 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1621 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1622 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
1626 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1627 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1628 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1629 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1630 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1631 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
1635 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1636 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1637 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
1638 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1639 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1640 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
1641 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1642 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1643 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1644 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
1645 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
1646 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
1647 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
1648 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
1649 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1650 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1651 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1652 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
1656 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1657 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
1658 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1659 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1660 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
1661 { "FormatsInMemory", FormatsInMemoryValidate, UndefinedOptionFlag, MagickFalse },
1662 { "FormatsOnDisk", FormatsOnDiskValidate, UndefinedOptionFlag, MagickFalse },
1663 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1664 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1665 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1666 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1667 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1668 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
1670 VirtualPixelOptions[] =
1672 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1673 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1674 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1675 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
1676 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1677 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1678 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1679 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1680 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1681 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1682 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1683 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1684 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1685 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1686 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1687 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1688 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1689 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1690 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
1693 static const OptionInfo *GetOptionInfo(const CommandOption option)
1697 case MagickAlignOptions: return(AlignOptions);
1698 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
1699 case MagickBooleanOptions: return(BooleanOptions);
1700 case MagickCacheOptions: return(CacheOptions);
1701 case MagickChannelOptions: return(ChannelOptions);
1702 case MagickClassOptions: return(ClassOptions);
1703 case MagickClipPathOptions: return(ClipPathOptions);
1704 case MagickColorspaceOptions: return(ColorspaceOptions);
1705 case MagickCommandOptions: return(CommandOptions);
1706 case MagickComposeOptions: return(ComposeOptions);
1707 case MagickCompressOptions: return(CompressOptions);
1708 case MagickDataTypeOptions: return(DataTypeOptions);
1709 case MagickDebugOptions: return(LogEventOptions);
1710 case MagickDecorateOptions: return(DecorateOptions);
1711 case MagickDirectionOptions: return(DirectionOptions);
1712 case MagickDisposeOptions: return(DisposeOptions);
1713 case MagickDistortOptions: return(DistortOptions);
1714 case MagickDitherOptions: return(DitherOptions);
1715 case MagickEndianOptions: return(EndianOptions);
1716 case MagickEvaluateOptions: return(EvaluateOptions);
1717 case MagickFillRuleOptions: return(FillRuleOptions);
1718 case MagickFilterOptions: return(FilterOptions);
1719 case MagickFunctionOptions: return(FunctionOptions);
1720 case MagickGravityOptions: return(GravityOptions);
1721 /* case MagickImageListOptions: return(ImageListOptions); */
1722 case MagickIntentOptions: return(IntentOptions);
1723 case MagickInterlaceOptions: return(InterlaceOptions);
1724 case MagickInterpolateOptions: return(InterpolateOptions);
1725 case MagickKernelOptions: return(KernelOptions);
1726 case MagickLayerOptions: return(LayerOptions);
1727 case MagickLineCapOptions: return(LineCapOptions);
1728 case MagickLineJoinOptions: return(LineJoinOptions);
1729 case MagickListOptions: return(ListOptions);
1730 case MagickLogEventOptions: return(LogEventOptions);
1731 case MagickMetricOptions: return(MetricOptions);
1732 case MagickMethodOptions: return(MethodOptions);
1733 case MagickModeOptions: return(ModeOptions);
1734 case MagickMorphologyOptions: return(MorphologyOptions);
1735 case MagickNoiseOptions: return(NoiseOptions);
1736 case MagickOrientationOptions: return(OrientationOptions);
1737 case MagickPixelChannelOptions: return(PixelChannelOptions);
1738 case MagickPixelIntensityOptions: return(PixelIntensityOptions);
1739 case MagickPixelMaskOptions: return(PixelMaskOptions);
1740 case MagickPixelTraitOptions: return(PixelTraitOptions);
1741 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1742 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1743 case MagickPreviewOptions: return(PreviewOptions);
1744 case MagickPrimitiveOptions: return(PrimitiveOptions);
1745 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1746 case MagickResolutionOptions: return(ResolutionOptions);
1747 case MagickResourceOptions: return(ResourceOptions);
1748 case MagickSparseColorOptions: return(SparseColorOptions);
1749 case MagickStatisticOptions: return(StatisticOptions);
1750 case MagickStorageOptions: return(StorageOptions);
1751 case MagickStretchOptions: return(StretchOptions);
1752 case MagickStyleOptions: return(StyleOptions);
1753 case MagickTypeOptions: return(TypeOptions);
1754 case MagickValidateOptions: return(ValidateOptions);
1755 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1758 return((const OptionInfo *) NULL);
1762 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1766 % C l o n e I m a g e O p t i o n s %
1770 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1772 % CloneImageOptions() clones all global image options, to another image_info
1774 % The format of the CloneImageOptions method is:
1776 % MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1777 % const ImageInfo *clone_info)
1779 % A description of each parameter follows:
1781 % o image_info: the image info to recieve the cloned options.
1783 % o clone_info: the source image info for options to clone.
1786 MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1787 const ImageInfo *clone_info)
1789 assert(image_info != (ImageInfo *) NULL);
1790 assert(image_info->signature == MagickSignature);
1791 if (image_info->debug != MagickFalse)
1792 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1793 image_info->filename);
1794 assert(clone_info != (const ImageInfo *) NULL);
1795 assert(clone_info->signature == MagickSignature);
1796 if (clone_info->options != (void *) NULL)
1797 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1798 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1803 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1807 % D e f i n e I m a g e O p t i o n %
1811 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1813 % DefineImageOption() associates an assignment string of the form
1814 % "key=value" with a global image option. It is equivelent to
1817 % The format of the DefineImageOption method is:
1819 % MagickBooleanType DefineImageOption(ImageInfo *image_info,
1820 % const char *option)
1822 % A description of each parameter follows:
1824 % o image_info: the image info.
1826 % o option: the image option assignment string.
1829 MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1834 value[MaxTextExtent];
1839 assert(image_info != (ImageInfo *) NULL);
1840 assert(option != (const char *) NULL);
1841 (void) CopyMagickString(key,option,MaxTextExtent);
1842 for (p=key; *p != '\0'; p++)
1847 (void) CopyMagickString(value,p+1,MaxTextExtent);
1849 return(SetImageOption(image_info,key,value));
1853 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1857 % D e l e t e I m a g e O p t i o n %
1861 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1863 % DeleteImageOption() deletes an key from the global image options.
1865 % Returns MagickTrue is the option is found and deleted from the Options.
1867 % The format of the DeleteImageOption method is:
1869 % MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1872 % A description of each parameter follows:
1874 % o image_info: the image info.
1876 % o option: the image option.
1879 MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1882 assert(image_info != (ImageInfo *) NULL);
1883 assert(image_info->signature == MagickSignature);
1884 if (image_info->debug != MagickFalse)
1885 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1886 image_info->filename);
1887 if (image_info->options == (void *) NULL)
1888 return(MagickFalse);
1889 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1893 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1897 % D e s t r o y I m a g e O p t i o n s %
1901 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1903 % DestroyImageOptions() destroys all global options and associated memory
1904 % attached to the given image_info image list.
1906 % The format of the DestroyDefines method is:
1908 % void DestroyImageOptions(ImageInfo *image_info)
1910 % A description of each parameter follows:
1912 % o image_info: the image info.
1915 MagickExport void DestroyImageOptions(ImageInfo *image_info)
1917 assert(image_info != (ImageInfo *) NULL);
1918 assert(image_info->signature == MagickSignature);
1919 if (image_info->debug != MagickFalse)
1920 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1921 image_info->filename);
1922 if (image_info->options != (void *) NULL)
1923 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1927 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1931 % G e t I m a g e O p t i o n %
1935 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1937 % GetImageOption() gets a value associated with the global image options.
1939 % The returned string is a constant string in the tree and should NOT be
1940 % freed by the caller.
1942 % The format of the GetImageOption method is:
1944 % const char *GetImageOption(const ImageInfo *image_info,
1945 % const char *option)
1947 % A description of each parameter follows:
1949 % o image_info: the image info.
1951 % o option: the option.
1954 MagickExport const char *GetImageOption(const ImageInfo *image_info,
1957 assert(image_info != (ImageInfo *) NULL);
1958 assert(image_info->signature == MagickSignature);
1959 if (image_info->debug != MagickFalse)
1960 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1961 image_info->filename);
1962 if (image_info->options == (void *) NULL)
1963 return((const char *) NULL);
1964 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1965 image_info->options,option));
1969 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1973 % G e t C o m m a n d O p t i o n F l a g s %
1977 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1979 % GetCommandOptionFlags() parses a string and returns an enumerated option
1980 % flags(s). Return a value of -1 if no such option is found.
1982 % The format of the GetCommandOptionFlags method is:
1984 % ssize_t GetCommandOptionFlags(const CommandOption option,
1985 % const MagickBooleanType list,const char *options)
1987 % A description of each parameter follows:
1989 % o option: Index to the option table to lookup
1991 % o list: A option other than zero permits more than one option separated by
1994 % o options: One or more options separated by commas.
1998 MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
1999 const MagickBooleanType list,const char *options)
2002 token[MaxTextExtent];
2025 option_info=GetOptionInfo(option);
2026 if (option_info == (const OptionInfo *) NULL)
2027 return(UndefinedOptionFlag);
2030 if (strchr(options,'|') != (char *) NULL)
2032 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2034 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2037 negate=(*p == '!') ? MagickTrue : MagickFalse;
2038 if (negate != MagickFalse)
2041 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2044 if ((q-token) >= (MaxTextExtent-1))
2049 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2050 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2053 option_types=option_types &~ option_info[i].flags;
2055 option_types=option_types | option_info[i].flags;
2058 if ((option_info[i].mnemonic == (char *) NULL) &&
2059 ((strchr(token+1,'-') != (char *) NULL) ||
2060 (strchr(token+1,'_') != (char *) NULL)))
2062 while ((q=strchr(token+1,'-')) != (char *) NULL)
2063 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2064 while ((q=strchr(token+1,'_')) != (char *) NULL)
2065 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2066 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2067 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2070 option_types=option_types &~ option_info[i].flags;
2072 option_types=option_types | option_info[i].flags;
2076 if (option_info[i].mnemonic == (char *) NULL)
2078 if (list == MagickFalse)
2081 return(option_types);
2085 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2089 % G e t C o m m a n d O p t i o n I n f o %
2093 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2095 % GetCommandOptionInfo() returns pointer to the matching OptionInfo entry
2096 % for the "CommandOptions" table only. A specialised binary search is used,
2097 % to speed up the lookup for that very large table, and returns both the
2098 % type (arg count) and flags (arg type).
2100 % This search reduces linear search of over 500 options (250 tests on
2101 % average) to about 10 lookups!
2103 % The format of the GetCommandOptionInfo method is:
2105 % const char **GetCommandOptions(const CommandOption value)
2107 % A description of each parameter follows:
2109 % o value: the value.
2112 MagickExport const OptionInfo *GetCommandOptionInfo(const char *value)
2115 *option_info=CommandOptions;
2123 assert(value != (char *) NULL);
2124 assert(*value != '\0');
2126 /* count up table items - first time only */
2127 if ( table_size == 0 )
2130 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2131 if ( LocaleCompare(value,option_info[i].mnemonic) == 0 )
2134 return( &option_info[(l>=0)?l:i] );
2137 /* faster binary search of command table, now that its length is known */
2143 i = (l+h)/2; /* half the bounds */
2144 /* compare string part, then switch character! */
2145 cmp=LocaleCompare(value+1,option_info[i].mnemonic+1);
2147 cmp = *value - *(option_info[i].mnemonic);
2149 (void) FormatLocaleFile(stderr,
2150 "%d --- %u < %u < %u --- \"%s\" < \"%s\" < \"%s\"\n",
2151 cmp,l,i,h,option_info[l].mnemonic,option_info[i].mnemonic,
2152 option_info[h].mnemonic);
2155 return(&option_info[i]);
2156 if (cmp > 0) l=i+1; else h=i; /* reassign search bounds */
2158 /* option was not found in table - return last 'null' entry. */
2159 return(&option_info[table_size]);
2163 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2167 % G e t C o m m a n d O p t i o n s %
2171 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2173 % GetCommandOptions() returns a list of values.
2175 % The format of the GetCommandOptions method is:
2177 % const char **GetCommandOptions(const CommandOption value)
2179 % A description of each parameter follows:
2181 % o value: the value.
2184 MagickExport char **GetCommandOptions(const CommandOption value)
2195 option_info=GetOptionInfo(value);
2196 if (option_info == (const OptionInfo *) NULL)
2197 return((char **) NULL);
2198 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2199 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2200 if (values == (char **) NULL)
2201 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2202 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2203 values[i]=AcquireString(option_info[i].mnemonic);
2204 values[i]=(char *) NULL;
2209 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2213 % G e t N e x t I m a g e O p t i o n %
2217 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2219 % GetNextImageOption() gets the next global option value.
2221 % The format of the GetNextImageOption method is:
2223 % char *GetNextImageOption(const ImageInfo *image_info)
2225 % A description of each parameter follows:
2227 % o image_info: the image info.
2230 MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2232 assert(image_info != (ImageInfo *) NULL);
2233 assert(image_info->signature == MagickSignature);
2234 if (image_info->debug != MagickFalse)
2235 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2236 image_info->filename);
2237 if (image_info->options == (void *) NULL)
2238 return((char *) NULL);
2239 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2243 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2247 % I s C o m m a n d O p t i o n %
2251 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2253 % IsCommandOption() returns MagickTrue if the option begins with a - or + and
2254 % the first character that follows is alphanumeric.
2256 % The format of the IsCommandOption method is:
2258 % MagickBooleanType IsCommandOption(const char *option)
2260 % A description of each parameter follows:
2262 % o option: the option.
2265 MagickExport MagickBooleanType IsCommandOption(const char *option)
2267 assert(option != (const char *) NULL);
2268 if ((*option != '-') && (*option != '+'))
2269 return(MagickFalse);
2270 if (strlen(option) == 1)
2271 return(IsMagickTrue( (*option == '{') || (*option == '}')
2272 || (*option == '[') || (*option == ']') ));
2276 if (isalpha((int) ((unsigned char) *option)) == 0)
2277 return(MagickFalse);
2282 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2286 % C o m m a n d O p t i o n T o M n e m o n i c %
2290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2292 % CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
2294 % The format of the CommandOptionToMnemonic method is:
2296 % const char *CommandOptionToMnemonic(const CommandOption option,
2297 % const ssize_t type)
2299 % A description of each parameter follows:
2301 % o option: the option.
2303 % o type: one or more values separated by commas.
2306 MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
2315 option_info=GetOptionInfo(option);
2316 if (option_info == (const OptionInfo *) NULL)
2317 return((const char *) NULL);
2318 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2319 if (type == option_info[i].type)
2321 if (option_info[i].mnemonic == (const char *) NULL)
2322 return("undefined");
2323 return(option_info[i].mnemonic);
2327 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2331 % L i s t C o m m a n d O p t i o n s %
2335 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2337 % ListCommandOptions() lists the contents of enumerated option type(s).
2339 % The format of the ListCommandOptions method is:
2341 % MagickBooleanType ListCommandOptions(FILE *file,
2342 % const CommandOption option,ExceptionInfo *exception)
2344 % A description of each parameter follows:
2346 % o file: list options to this file handle.
2348 % o option: list these options.
2350 % o exception: return any errors or warnings in this structure.
2353 MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2354 const CommandOption option,ExceptionInfo *magick_unused(exception))
2362 if (file == (FILE *) NULL)
2364 option_info=GetOptionInfo(option);
2365 if (option_info == (const OptionInfo *) NULL)
2366 return(MagickFalse);
2367 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2369 if (option_info[i].stealth != MagickFalse)
2371 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
2377 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2381 % P a r s e C h a n n e l O p t i o n %
2385 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2387 % ParseChannelOption() parses a string and returns an enumerated channel
2390 % The format of the ParseChannelOption method is:
2392 % ssize_t ParseChannelOption(const char *channels)
2394 % A description of each parameter follows:
2396 % o options: One or more values separated by commas.
2399 MagickExport ssize_t ParseChannelOption(const char *channels)
2407 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
2411 for (i=0; i < (ssize_t) strlen(channels); i++)
2413 switch (channels[i])
2418 channel|=AlphaChannel;
2424 channel|=BlueChannel;
2430 channel|=CyanChannel;
2436 channel|=GreenChannel;
2442 channel|=BlackChannel;
2448 channel|=MagentaChannel;
2454 channel|=AlphaChannel; /* depreciate */
2460 channel|=RedChannel;
2466 channel|=YellowChannel;
2475 Gather the additional channel flags and merge with shorthand.
2477 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
2491 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2495 % P a r s e C o m m a n d O p t i o n %
2499 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2501 % ParseCommandOption() parses a string and returns an enumerated option
2502 % type(s). Return a value of -1 if no such option is found.
2504 % The format of the ParseCommandOption method is:
2506 % ssize_t ParseCommandOption(const CommandOption option_table,
2507 % const MagickBooleanType list,const char *options)
2509 % A description of each parameter follows:
2511 % o option_table: Index to the option table to lookup
2513 % o list: A option other than zero permits more than one option separated by
2516 % o options: One or more options separated by commas.
2519 MagickExport ssize_t ParseCommandOption(const CommandOption option_table,
2520 const MagickBooleanType list,const char *options)
2523 token[MaxTextExtent];
2546 option_info=GetOptionInfo(option_table);
2547 if (option_info == (const OptionInfo *) NULL)
2551 if (strchr(options,'|') != (char *) NULL)
2553 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2555 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2558 negate=(*p == '!') ? MagickTrue : MagickFalse;
2559 if (negate != MagickFalse)
2562 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2565 if ((q-token) >= (MaxTextExtent-1))
2570 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2571 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2574 option_types=option_types &~ option_info[i].type;
2576 option_types=option_types | option_info[i].type;
2579 if ((option_info[i].mnemonic == (char *) NULL) &&
2580 ((strchr(token+1,'-') != (char *) NULL) ||
2581 (strchr(token+1,'_') != (char *) NULL)))
2583 while ((q=strchr(token+1,'-')) != (char *) NULL)
2584 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2585 while ((q=strchr(token+1,'_')) != (char *) NULL)
2586 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2587 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2588 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2591 option_types=option_types &~ option_info[i].type;
2593 option_types=option_types | option_info[i].type;
2597 if (option_info[i].mnemonic == (char *) NULL)
2599 if (list == MagickFalse)
2602 return(option_types);
2606 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2610 % P a r s e P i x e l C h a n n e l O p t i o n %
2614 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2616 % ParsePixelChannelOption() parses a string and returns an enumerated pixel
2619 % The format of the ParsePixelChannelOption method is:
2621 % ssize_t ParsePixelChannelOption(const char *channels)
2623 % A description of each parameter follows:
2625 % o channels: One or more channels separated by commas.
2628 MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2632 token[MaxTextExtent];
2637 GetMagickToken(channels,NULL,token);
2638 if ((*token == ';') || (*token == '|'))
2639 return(RedPixelChannel);
2640 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
2644 channel=InterpretLocaleValue(token,&q);
2645 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
2651 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2655 % R e m o v e I m a g e O p t i o n %
2659 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2661 % RemoveImageOption() removes an option from the image and returns its value.
2663 % In this case the ConstantString() value returned should be freed by the
2664 % caller when finished.
2666 % The format of the RemoveImageOption method is:
2668 % char *RemoveImageOption(ImageInfo *image_info,const char *option)
2670 % A description of each parameter follows:
2672 % o image_info: the image info.
2674 % o option: the image option.
2677 MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2682 assert(image_info != (ImageInfo *) NULL);
2683 assert(image_info->signature == MagickSignature);
2684 if (image_info->debug != MagickFalse)
2685 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2686 image_info->filename);
2687 if (image_info->options == (void *) NULL)
2688 return((char *) NULL);
2689 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2690 image_info->options,option);
2695 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2699 % R e s e t I m a g e O p t i o n %
2703 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2705 % ResetImageOptions() resets the image_info option. That is, it deletes
2706 % all global options associated with the image_info structure.
2708 % The format of the ResetImageOptions method is:
2710 % ResetImageOptions(ImageInfo *image_info)
2712 % A description of each parameter follows:
2714 % o image_info: the image info.
2717 MagickExport void ResetImageOptions(const ImageInfo *image_info)
2719 assert(image_info != (ImageInfo *) NULL);
2720 assert(image_info->signature == MagickSignature);
2721 if (image_info->debug != MagickFalse)
2722 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2723 image_info->filename);
2724 if (image_info->options == (void *) NULL)
2726 ResetSplayTree((SplayTreeInfo *) image_info->options);
2730 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2734 % R e s e t I m a g e O p t i o n I t e r a t o r %
2738 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2740 % ResetImageOptionIterator() resets the image_info values iterator. Use it
2741 % in conjunction with GetNextImageOption() to iterate over all the values
2742 % associated with an image option.
2744 % The format of the ResetImageOptionIterator method is:
2746 % ResetImageOptionIterator(ImageInfo *image_info)
2748 % A description of each parameter follows:
2750 % o image_info: the image info.
2753 MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2755 assert(image_info != (ImageInfo *) NULL);
2756 assert(image_info->signature == MagickSignature);
2757 if (image_info->debug != MagickFalse)
2758 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2759 image_info->filename);
2760 if (image_info->options == (void *) NULL)
2762 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2766 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2770 % S e t I m a g e O p t i o n %
2774 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2776 % SetImageOption() associates an value with an image option.
2778 % The format of the SetImageOption method is:
2780 % MagickBooleanType SetImageOption(ImageInfo *image_info,
2781 % const char *option,const char *value)
2783 % A description of each parameter follows:
2785 % o image_info: the image info.
2787 % o option: the image option.
2789 % o values: the image option values.
2792 MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2793 const char *option,const char *value)
2795 assert(image_info != (ImageInfo *) NULL);
2796 assert(image_info->signature == MagickSignature);
2797 if (image_info->debug != MagickFalse)
2798 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2799 image_info->filename);
2801 Specific global option settings.
2803 if (LocaleCompare(option,"size") == 0) {
2804 (void) CloneString(&image_info->size,value);
2808 Create tree if needed - specify how key,values are to be freed.
2810 if (image_info->options == (void *) NULL)
2811 image_info->options=NewSplayTree(CompareSplayTreeString,
2812 RelinquishMagickMemory,RelinquishMagickMemory);
2814 Delete Option if NULL -- empty string values are valid!
2816 if (value == (const char *) NULL)
2817 return(DeleteImageOption(image_info,option));
2819 Add option to splay-tree.
2821 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2822 ConstantString(option),ConstantString(value)));