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-2012 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/policy.h"
67 #include "MagickCore/property.h"
68 #include "MagickCore/quantize.h"
69 #include "MagickCore/quantum.h"
70 #include "MagickCore/resample.h"
71 #include "MagickCore/resource_.h"
72 #include "MagickCore/splay-tree.h"
73 #include "MagickCore/statistic.h"
74 #include "MagickCore/string_.h"
75 #include "MagickCore/token.h"
76 #include "MagickCore/utility.h"
81 static const OptionInfo
84 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
85 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
86 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
87 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
88 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
89 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
90 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
91 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
95 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
96 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
97 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
98 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
99 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
100 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
104 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
105 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
106 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
107 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
108 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
112 { "False", 0L, UndefinedOptionFlag, MagickFalse },
113 { "True", 1L, UndefinedOptionFlag, MagickFalse },
114 { "0", 0L, UndefinedOptionFlag, MagickFalse },
115 { "1", 1L, UndefinedOptionFlag, MagickFalse },
116 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
120 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
121 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
122 { "Alpha", OpacityChannel, UndefinedOptionFlag, MagickFalse },
123 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
124 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
125 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
126 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
127 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
128 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
129 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
130 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
131 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
132 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
133 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
134 { "Matte", OpacityChannel, UndefinedOptionFlag, MagickFalse },
135 { "Opacity", OpacityChannel, UndefinedOptionFlag, MagickFalse },
136 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
137 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
138 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
139 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
140 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
144 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
145 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
146 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
147 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
151 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
152 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
153 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
154 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
155 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
159 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
160 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
161 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickFalse },
162 { "-adaptive-blur", 1L, SimpleOperatorOptionFlag, MagickFalse },
163 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickFalse },
164 { "-adaptive-resize", 1L, SimpleOperatorOptionFlag, MagickFalse },
165 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickFalse },
166 { "-adaptive-sharpen", 1L, SimpleOperatorOptionFlag, MagickFalse },
167 { "+affine", 0L, DrawInfoOptionFlag, MagickFalse },
168 { "-affine", 1L, DrawInfoOptionFlag, MagickFalse },
169 { "+affinity", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
170 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
171 { "+alpha", 1L, DeprecateOptionFlag, MagickFalse },
172 { "-alpha", 1L, SimpleOperatorOptionFlag, MagickFalse },
173 { "+annotate", 0L, DeprecateOptionFlag, MagickFalse },
174 { "-annotate", 2L, SimpleOperatorOptionFlag, MagickFalse },
175 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
176 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
177 { "+append", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
178 { "-append", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
179 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
180 { "-attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
181 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
182 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
183 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickFalse },
184 { "-auto-gamma", 0L, SimpleOperatorOptionFlag, MagickFalse },
185 { "+auto-level", 0L, DeprecateOptionFlag, MagickFalse },
186 { "-auto-level", 0L, SimpleOperatorOptionFlag, MagickFalse },
187 { "+auto-orient", 0L, DeprecateOptionFlag, MagickFalse },
188 { "-auto-orient", 0L, SimpleOperatorOptionFlag, MagickFalse },
189 { "+average", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
190 { "-average", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
191 { "+backdrop", 0L, NonConvertOptionFlag, MagickFalse },
192 { "-backdrop", 1L, NonConvertOptionFlag, MagickFalse },
193 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
194 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
195 { "+bench", 0L, GenesisOptionFlag, MagickFalse },
196 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
197 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
198 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
199 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
200 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
201 { "+black-threshold", 0L, DeprecateOptionFlag, MagickFalse },
202 { "-black-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse },
203 { "+blend", 0L, NonConvertOptionFlag, MagickFalse },
204 { "-blend", 1L, NonConvertOptionFlag, MagickFalse },
205 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
206 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
207 { "+blue-shift", 1L, DeprecateOptionFlag, MagickFalse },
208 { "-blue-shift", 1L, SimpleOperatorOptionFlag, MagickFalse },
209 { "+blur", 1L, DeprecateOptionFlag, MagickFalse },
210 { "-blur", 1L, SimpleOperatorOptionFlag, MagickFalse },
211 { "+border", 1L, DeprecateOptionFlag, MagickFalse },
212 { "-border", 1L, SimpleOperatorOptionFlag, MagickFalse },
213 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
214 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
215 { "+borderwidth", 0L, NonConvertOptionFlag, MagickFalse },
216 { "-borderwidth", 1L, NonConvertOptionFlag, MagickFalse },
217 { "+box", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag | DeprecateOptionFlag, MagickFalse },
218 { "-box", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag | DeprecateOptionFlag, MagickFalse },
219 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickFalse },
220 { "-brightness-contrast", 1L, SimpleOperatorOptionFlag, MagickFalse },
221 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
222 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
223 { "+cdl", 1L, DeprecateOptionFlag, MagickFalse },
224 { "-cdl", 1L, SimpleOperatorOptionFlag, MagickFalse },
225 { "+channel", 0L, ImageInfoOptionFlag | ListOperatorOptionFlag, MagickFalse },
226 { "-channel", 1L, ImageInfoOptionFlag | ListOperatorOptionFlag, MagickFalse },
227 { "+charcoal", 0L, DeprecateOptionFlag, MagickFalse },
228 { "-charcoal", 0L, SimpleOperatorOptionFlag, MagickFalse },
229 { "+chop", 1L, DeprecateOptionFlag, MagickFalse },
230 { "-chop", 1L, SimpleOperatorOptionFlag, MagickFalse },
231 { "+clamp", 0L, DeprecateOptionFlag, MagickFalse },
232 { "-clamp", 0L, SimpleOperatorOptionFlag, MagickFalse },
233 { "+clip", 0L, SimpleOperatorOptionFlag, MagickFalse },
234 { "-clip", 0L, SimpleOperatorOptionFlag, MagickFalse },
235 { "+clip-mask", 0L, SimpleOperatorOptionFlag, MagickFalse },
236 { "-clip-mask", 1L, SimpleOperatorOptionFlag, MagickFalse },
237 { "+clip-path", 0L, SimpleOperatorOptionFlag, MagickFalse },
238 { "-clip-path", 1L, SimpleOperatorOptionFlag, MagickFalse },
239 { "+clone", 0L, SpecialOperatorOptionFlag, MagickFalse },
240 { "-clone", 1L, SpecialOperatorOptionFlag, MagickFalse },
241 { "+clut", 0L, FireOptionFlag | DeprecateOptionFlag, MagickFalse },
242 { "-clut", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
243 { "+coalesce", 0L, FireOptionFlag | DeprecateOptionFlag, MagickFalse },
244 { "-coalesce", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
245 { "+colorize", 1L, DeprecateOptionFlag, MagickFalse },
246 { "-colorize", 1L, SimpleOperatorOptionFlag, MagickFalse },
247 { "+colormap", 0L, NonConvertOptionFlag, MagickFalse },
248 { "-colormap", 1L, NonConvertOptionFlag, MagickFalse },
249 { "+color-matrix", 1L, DeprecateOptionFlag, MagickFalse },
250 { "-color-matrix", 1L, SimpleOperatorOptionFlag, MagickFalse },
251 { "+colors", 1L, DeprecateOptionFlag, MagickFalse },
252 { "-colors", 1L, ImageInfoOptionFlag, MagickFalse },
253 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
254 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
255 { "+combine", 0L, FireOptionFlag | DeprecateOptionFlag, MagickFalse },
256 { "-combine", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
257 { "+comment", 0L, ImageInfoOptionFlag, MagickFalse },
258 { "-comment", 1L, ImageInfoOptionFlag, MagickFalse },
259 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
260 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
261 { "+composite", 0L, FireOptionFlag | DeprecateOptionFlag, MagickFalse },
262 { "-composite", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
263 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
264 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
265 { "+concurrent", 0L, GenesisOptionFlag, MagickTrue },
266 { "-concurrent", 0L, GenesisOptionFlag, MagickTrue },
267 { "+contrast", 0L, SimpleOperatorOptionFlag, MagickFalse },
268 { "-contrast", 0L, SimpleOperatorOptionFlag, MagickFalse },
269 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickFalse },
270 { "-contrast-stretch", 1L, SimpleOperatorOptionFlag, MagickFalse },
271 { "+convolve", 1L, DeprecateOptionFlag, MagickFalse },
272 { "-convolve", 1L, SimpleOperatorOptionFlag, MagickFalse },
273 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
274 { "-crop", 1L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse },
275 { "+cycle", 1L, DeprecateOptionFlag, MagickFalse },
276 { "-cycle", 1L, SimpleOperatorOptionFlag, MagickFalse },
277 { "+debug", 0L, GlobalOptionFlag|GenesisOptionFlag | FireOptionFlag, MagickFalse },
278 { "-debug", 1L, GlobalOptionFlag|GenesisOptionFlag | FireOptionFlag, MagickFalse },
279 { "+decipher", 1L, DeprecateOptionFlag, MagickFalse },
280 { "-decipher", 1L, SimpleOperatorOptionFlag, MagickFalse },
281 { "+deconstruct", 0L, FireOptionFlag | DeprecateOptionFlag, MagickFalse },
282 { "-deconstruct", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
283 { "+define", 1L, ImageInfoOptionFlag, MagickFalse },
284 { "-define", 1L, ImageInfoOptionFlag, MagickFalse },
285 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
286 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
287 { "+delete", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
288 { "-delete", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
289 { "+density", 0L, ImageInfoOptionFlag, MagickFalse },
290 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
291 { "+depth", 0L, SimpleOperatorOptionFlag, MagickFalse },
292 { "-depth", 1L, SimpleOperatorOptionFlag, MagickFalse },
293 { "+descend", 0L, NonConvertOptionFlag, MagickFalse },
294 { "-descend", 1L, NonConvertOptionFlag, MagickFalse },
295 { "+deskew", 0L, SimpleOperatorOptionFlag, MagickFalse },
296 { "-deskew", 1L, SimpleOperatorOptionFlag, MagickFalse },
297 { "+despeckle", 0L, DeprecateOptionFlag, MagickFalse },
298 { "-despeckle", 0L, SimpleOperatorOptionFlag, MagickFalse },
299 { "+direction", 0L, ImageInfoOptionFlag, MagickFalse },
300 { "-direction", 1L, ImageInfoOptionFlag, MagickFalse },
301 { "+displace", 0L, NonConvertOptionFlag, MagickFalse },
302 { "-displace", 1L, NonConvertOptionFlag, MagickFalse },
303 { "+display", 1L, ImageInfoOptionFlag, MagickFalse },
304 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
305 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
306 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
307 { "+dissolve", 0L, NonConvertOptionFlag, MagickFalse },
308 { "-dissolve", 1L, NonConvertOptionFlag, MagickFalse },
309 { "+distort", 2L, SimpleOperatorOptionFlag, MagickFalse },
310 { "-distort", 2L, SimpleOperatorOptionFlag, MagickFalse },
311 { "+dither", 0L, ListOperatorOptionFlag | ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
312 { "-dither", 1L, ListOperatorOptionFlag | ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
313 { "+draw", 0L, SimpleOperatorOptionFlag, MagickFalse },
314 { "-draw", 1L, SimpleOperatorOptionFlag, MagickFalse },
315 { "+duplicate", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
316 { "-duplicate", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
317 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
318 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
319 { "+edge", 1L, DeprecateOptionFlag, MagickFalse },
320 { "-edge", 1L, SimpleOperatorOptionFlag, MagickFalse },
321 { "+emboss", 1L, DeprecateOptionFlag, MagickFalse },
322 { "-emboss", 1L, SimpleOperatorOptionFlag, MagickFalse },
323 { "+encipher", 1L, DeprecateOptionFlag, MagickFalse },
324 { "-encipher", 1L, SimpleOperatorOptionFlag, MagickFalse },
325 { "+encoding", 0L, ImageInfoOptionFlag, MagickFalse },
326 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
327 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
328 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
329 { "+enhance", 0L, DeprecateOptionFlag, MagickFalse },
330 { "-enhance", 0L, SimpleOperatorOptionFlag, MagickFalse },
331 { "+equalize", 0L, DeprecateOptionFlag, MagickFalse },
332 { "-equalize", 0L, SimpleOperatorOptionFlag, MagickFalse },
333 { "+evaluate", 2L, DeprecateOptionFlag, MagickFalse },
334 { "-evaluate", 2L, SimpleOperatorOptionFlag, MagickFalse },
335 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
336 { "-evaluate-sequence", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
337 { "+extent", 1L, DeprecateOptionFlag, MagickFalse },
338 { "-extent", 1L, SimpleOperatorOptionFlag, MagickFalse },
339 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
340 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
341 { "+family", 0L, DeprecateOptionFlag, MagickFalse },
342 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
343 { "+features", 0L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse },
344 { "-features", 1L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse },
345 { "+fft", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
346 { "-fft", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
347 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
348 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
349 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
350 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
351 { "+flatten", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
352 { "-flatten", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
353 { "+flip", 0L, DeprecateOptionFlag, MagickFalse },
354 { "-flip", 0L, SimpleOperatorOptionFlag, MagickFalse },
355 { "+flop", 0L, DeprecateOptionFlag, MagickFalse },
356 { "-flop", 0L, SimpleOperatorOptionFlag, MagickFalse },
357 { "+floodfill", 2L, SimpleOperatorOptionFlag, MagickFalse },
358 { "-floodfill", 2L, SimpleOperatorOptionFlag, MagickFalse },
359 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
360 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
361 { "+foreground", 0L, NonConvertOptionFlag, MagickFalse },
362 { "-foreground", 1L, NonConvertOptionFlag, MagickFalse },
363 { "+format", 0L, DeprecateOptionFlag, MagickFalse },
364 { "-format", 1L, ImageInfoOptionFlag, MagickFalse },
365 { "+frame", 1L, DeprecateOptionFlag, MagickFalse },
366 { "-frame", 1L, SimpleOperatorOptionFlag, MagickFalse },
367 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
368 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
369 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
370 { "-fx", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
371 { "+gamma", 0L, SimpleOperatorOptionFlag, MagickFalse },
372 { "-gamma", 1L, SimpleOperatorOptionFlag, MagickFalse },
373 { "+gaussian", 1L, DeprecateOptionFlag, MagickFalse },
374 { "-gaussian", 1L, SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickFalse },
375 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickFalse },
376 { "-gaussian-blur", 1L, SimpleOperatorOptionFlag, MagickFalse },
377 { "+geometry", 0L, SimpleOperatorOptionFlag, MagickFalse },
378 { "-geometry", 1L, SimpleOperatorOptionFlag, MagickFalse },
379 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
380 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
381 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
382 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
383 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
384 { "-hald-clut", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
385 { "+help", 0L, SpecialOperatorOptionFlag, MagickFalse },
386 { "-help", 0L, SpecialOperatorOptionFlag, MagickFalse },
387 { "+highlight-color", 1L, SimpleOperatorOptionFlag, MagickFalse },
388 { "-highlight-color", 1L, SimpleOperatorOptionFlag, MagickFalse },
389 { "+iconGeometry", 0L, NonConvertOptionFlag, MagickFalse },
390 { "-iconGeometry", 1L, NonConvertOptionFlag, MagickFalse },
391 { "+iconic", 0L, NonConvertOptionFlag, MagickFalse },
392 { "-iconic", 1L, NonConvertOptionFlag, MagickFalse },
393 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
394 { "-identify", 0L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse },
395 { "+ift", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
396 { "-ift", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
397 { "+immutable", 0L, NonConvertOptionFlag, MagickFalse },
398 { "-immutable", 0L, NonConvertOptionFlag, MagickFalse },
399 { "+implode", 0L, DeprecateOptionFlag, MagickFalse },
400 { "-implode", 1L, SimpleOperatorOptionFlag, MagickFalse },
401 { "+insert", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
402 { "-insert", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
403 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
404 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
405 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
406 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
407 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
408 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
409 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
410 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
411 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
412 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
413 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
414 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
415 { "+label", 0L, ImageInfoOptionFlag, MagickFalse },
416 { "-label", 1L, ImageInfoOptionFlag, MagickFalse },
417 { "+lat", 1L, DeprecateOptionFlag, MagickFalse },
418 { "-lat", 1L, SimpleOperatorOptionFlag, MagickFalse },
419 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
420 { "-layers", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
421 { "+level", 1L, SimpleOperatorOptionFlag, MagickFalse },
422 { "-level", 1L, SimpleOperatorOptionFlag, MagickFalse },
423 { "+level-colors", 1L, SimpleOperatorOptionFlag, MagickFalse },
424 { "-level-colors", 1L, SimpleOperatorOptionFlag, MagickFalse },
425 { "+limit", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
426 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
427 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickFalse },
428 { "-linear-stretch", 1L, SimpleOperatorOptionFlag, MagickFalse },
429 { "+linewidth", 0L, DrawInfoOptionFlag | DeprecateOptionFlag, MagickFalse },
430 { "-linewidth", 1L, DrawInfoOptionFlag | DeprecateOptionFlag, MagickFalse },
431 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickFalse },
432 { "-liquid-rescale", 1L, SimpleOperatorOptionFlag, MagickFalse },
433 { "+list", 0L, GlobalOptionFlag, MagickFalse },
434 { "-list", 1L, GlobalOptionFlag, MagickFalse },
435 { "+log", 0L, GlobalOptionFlag, MagickFalse },
436 { "-log", 1L, GlobalOptionFlag, MagickFalse },
437 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
438 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
439 { "+lowlight-color", 1L, DeprecateOptionFlag, MagickFalse },
440 { "-lowlight-color", 1L, SimpleOperatorOptionFlag, MagickFalse },
441 { "+magnify", 0L, NonConvertOptionFlag, MagickFalse },
442 { "-magnify", 1L, NonConvertOptionFlag, MagickFalse },
443 { "+map", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
444 { "-map", 1L, SimpleOperatorOptionFlag, MagickFalse },
445 { "+mask", 0L, SimpleOperatorOptionFlag, MagickFalse },
446 { "-mask", 1L, SimpleOperatorOptionFlag, MagickFalse },
447 { "+matte", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickFalse },
448 { "-matte", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickFalse },
449 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
450 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
451 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
452 { "-maximum", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
453 { "+median", 1L, DeprecateOptionFlag, MagickFalse },
454 { "-median", 1L, SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickFalse },
455 { "+metric", 0L, NonConvertOptionFlag, MagickFalse },
456 { "-metric", 1L, NonConvertOptionFlag, MagickFalse },
457 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
458 { "-minimum", 0L, ImageInfoOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
459 { "+mode", 1L, NonConvertOptionFlag, MagickFalse },
460 { "-mode", 1L, SimpleOperatorOptionFlag, MagickFalse },
461 { "+modulate", 1L, DeprecateOptionFlag, MagickFalse },
462 { "-modulate", 1L, SimpleOperatorOptionFlag, MagickFalse },
463 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
464 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
465 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
466 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
467 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
468 { "-morph", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
469 { "+morphology", 2L, DeprecateOptionFlag, MagickFalse },
470 { "-morphology", 2L, SimpleOperatorOptionFlag, MagickFalse },
471 { "+mosaic", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
472 { "-mosaic", 0L, ListOperatorOptionFlag | FireOptionFlag | DeprecateOptionFlag, MagickFalse },
473 { "+motion-blur", 1L, DeprecateOptionFlag, MagickFalse },
474 { "-motion-blur", 1L, SimpleOperatorOptionFlag, MagickFalse },
475 { "+name", 0L, NonConvertOptionFlag, MagickFalse },
476 { "-name", 1L, NonConvertOptionFlag, MagickFalse },
477 { "+negate", 0L, SimpleOperatorOptionFlag, MagickFalse },
478 { "-negate", 0L, SimpleOperatorOptionFlag, MagickFalse },
479 { "+noise", 1L, SimpleOperatorOptionFlag, MagickFalse },
480 { "-noise", 1L, SimpleOperatorOptionFlag, MagickFalse },
481 { "+noop", 0L, SpecialOperatorOptionFlag, MagickFalse },
482 { "-noop", 0L, SpecialOperatorOptionFlag, MagickFalse },
483 { "+normalize", 0L, DeprecateOptionFlag, MagickFalse },
484 { "-normalize", 0L, SimpleOperatorOptionFlag, MagickFalse },
485 { "+opaque", 1L, SimpleOperatorOptionFlag, MagickFalse },
486 { "-opaque", 1L, SimpleOperatorOptionFlag, MagickFalse },
487 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickFalse },
488 { "-ordered-dither", 1L, SimpleOperatorOptionFlag, MagickFalse },
489 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
490 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
491 { "+origin", 0L, DeprecateOptionFlag, MagickFalse },
492 { "-origin", 1L, DeprecateOptionFlag, MagickFalse },
493 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
494 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
495 { "+paint", 0L, DeprecateOptionFlag, MagickFalse },
496 { "-paint", 1L, SimpleOperatorOptionFlag, MagickFalse },
497 { "+path", 0L, SpecialOperatorOptionFlag, MagickFalse },
498 { "-path", 1L, SpecialOperatorOptionFlag, MagickFalse },
499 { "+pause", 0L, NonConvertOptionFlag, MagickFalse },
500 { "-pause", 1L, NonConvertOptionFlag, MagickFalse },
501 { "+passphrase", 0L, DeprecateOptionFlag, MagickFalse },
502 { "-passphrase", 1L, DeprecateOptionFlag, MagickFalse },
503 { "+pen", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag | DeprecateOptionFlag, MagickFalse },
504 { "-pen", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag | DeprecateOptionFlag, MagickFalse },
505 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
506 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
507 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
508 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
509 { "+polaroid", 0L, SimpleOperatorOptionFlag, MagickFalse },
510 { "-polaroid", 1L, SimpleOperatorOptionFlag, MagickFalse },
511 { "+posterize", 1L, DeprecateOptionFlag, MagickFalse },
512 { "-posterize", 1L, SimpleOperatorOptionFlag, MagickFalse },
513 { "+preview", 0L, ImageInfoOptionFlag, MagickFalse },
514 { "-preview", 1L, ImageInfoOptionFlag, MagickFalse },
515 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
516 { "-print", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
517 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
518 { "-process", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
519 { "+profile", 1L, SimpleOperatorOptionFlag, MagickFalse },
520 { "-profile", 1L, SimpleOperatorOptionFlag, MagickFalse },
521 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
522 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
523 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
524 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
525 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
526 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
527 { "+radial-blur", 1L, DeprecateOptionFlag, MagickFalse },
528 { "-radial-blur", 1L, SimpleOperatorOptionFlag, MagickFalse },
529 { "+raise", 1L, SimpleOperatorOptionFlag, MagickFalse },
530 { "-raise", 1L, SimpleOperatorOptionFlag, MagickFalse },
531 { "+random-threshold", 1L, DeprecateOptionFlag, MagickFalse },
532 { "-random-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse },
533 { "+recolor", 1L, DeprecateOptionFlag, MagickFalse },
534 { "-recolor", 1L, SimpleOperatorOptionFlag | DeprecateOptionFlag, MagickFalse },
535 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
536 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
537 { "+regard-warnings", 0L, GenesisOptionFlag, MagickFalse },
538 { "-regard-warnings", 0L, GenesisOptionFlag, MagickFalse },
539 { "+region", 0L, SpecialOperatorOptionFlag, MagickFalse },
540 { "-region", 1L, SpecialOperatorOptionFlag, MagickFalse },
541 { "+remote", 0L, NonConvertOptionFlag, MagickFalse },
542 { "-remote", 1L, NonConvertOptionFlag, MagickFalse },
543 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
544 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
545 { "+remap", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
546 { "-remap", 1L, SimpleOperatorOptionFlag, MagickFalse },
547 { "+repage", 0L, SimpleOperatorOptionFlag, MagickFalse },
548 { "-repage", 1L, SimpleOperatorOptionFlag, MagickFalse },
549 { "+resample", 1L, DeprecateOptionFlag, MagickFalse },
550 { "-resample", 1L, SimpleOperatorOptionFlag, MagickFalse },
551 { "+resize", 1L, DeprecateOptionFlag, MagickFalse },
552 { "-resize", 1L, SimpleOperatorOptionFlag, MagickFalse },
553 { "+respect-parenthesis", 0L, SpecialOperatorOptionFlag, MagickFalse },
554 { "-respect-parenthesis", 0L, SpecialOperatorOptionFlag, MagickFalse },
555 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
556 { "-reverse", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
557 { "+roll", 1L, DeprecateOptionFlag, MagickFalse },
558 { "-roll", 1L, SimpleOperatorOptionFlag, MagickFalse },
559 { "+rotate", 1L, DeprecateOptionFlag, MagickFalse },
560 { "-rotate", 1L, SimpleOperatorOptionFlag, MagickFalse },
561 { "+sample", 1L, DeprecateOptionFlag, MagickFalse },
562 { "-sample", 1L, SimpleOperatorOptionFlag, MagickFalse },
563 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
564 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
565 { "+sans", 1L, NonConvertOptionFlag, MagickTrue },
566 { "-sans", 1L, NonConvertOptionFlag, MagickTrue },
567 { "+sans0", 0L, NonConvertOptionFlag, MagickTrue },
568 { "-sans0", 0L, NonConvertOptionFlag, MagickTrue },
569 { "+sans2", 2L, NonConvertOptionFlag, MagickTrue },
570 { "-sans2", 2L, NonConvertOptionFlag, MagickTrue },
571 { "+scale", 1L, DeprecateOptionFlag, MagickFalse },
572 { "-scale", 1L, SimpleOperatorOptionFlag, MagickFalse },
573 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
574 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
575 { "+scenes", 0L, NonConvertOptionFlag, MagickFalse },
576 { "-scenes", 1L, NonConvertOptionFlag, MagickFalse },
577 { "+screen", 0L, NonConvertOptionFlag, MagickFalse },
578 { "-screen", 1L, NonConvertOptionFlag, MagickFalse },
579 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
580 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
581 { "+segment", 1L, DeprecateOptionFlag, MagickFalse },
582 { "-segment", 1L, SimpleOperatorOptionFlag, MagickFalse },
583 { "+selective-blur", 1L, DeprecateOptionFlag, MagickFalse },
584 { "-selective-blur", 1L, SimpleOperatorOptionFlag, MagickFalse },
585 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
586 { "-separate", 0L, SimpleOperatorOptionFlag | FireOptionFlag, MagickFalse },
587 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickFalse },
588 { "-sepia-tone", 1L, SimpleOperatorOptionFlag, MagickFalse },
589 { "+set", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
590 { "-set", 2L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
591 { "+shade", 0L, DeprecateOptionFlag, MagickFalse },
592 { "-shade", 1L, SimpleOperatorOptionFlag, MagickFalse },
593 { "+shadow", 1L, DeprecateOptionFlag, MagickFalse },
594 { "-shadow", 1L, SimpleOperatorOptionFlag, MagickFalse },
595 { "+shared-memory", 0L, NonConvertOptionFlag, MagickFalse },
596 { "-shared-memory", 1L, NonConvertOptionFlag, MagickFalse },
597 { "+sharpen", 1L, DeprecateOptionFlag, MagickFalse },
598 { "-sharpen", 1L, SimpleOperatorOptionFlag, MagickFalse },
599 { "+shave", 1L, DeprecateOptionFlag, MagickFalse },
600 { "-shave", 1L, SimpleOperatorOptionFlag, MagickFalse },
601 { "+shear", 1L, DeprecateOptionFlag, MagickFalse },
602 { "-shear", 1L, SimpleOperatorOptionFlag, MagickFalse },
603 { "+sigmoidal-contrast", 1L, SimpleOperatorOptionFlag, MagickFalse },
604 { "-sigmoidal-contrast", 1L, SimpleOperatorOptionFlag, MagickFalse },
605 { "+silent", 0L, NonConvertOptionFlag, MagickFalse },
606 { "-silent", 1L, NonConvertOptionFlag, MagickFalse },
607 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
608 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
609 { "+sketch", 1L, DeprecateOptionFlag, MagickFalse },
610 { "-sketch", 1L, SimpleOperatorOptionFlag, MagickFalse },
611 { "+smush", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
612 { "-smush", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
613 { "+snaps", 0L, NonConvertOptionFlag, MagickFalse },
614 { "-snaps", 1L, NonConvertOptionFlag, MagickFalse },
615 { "+solarize", 1L, DeprecateOptionFlag, MagickFalse },
616 { "-solarize", 1L, SimpleOperatorOptionFlag, MagickFalse },
617 { "+sparse-color", 2L, DeprecateOptionFlag, MagickFalse },
618 { "-sparse-color", 2L, SimpleOperatorOptionFlag, MagickFalse },
619 { "+splice", 1L, DeprecateOptionFlag, MagickFalse },
620 { "-splice", 1L, SimpleOperatorOptionFlag, MagickFalse },
621 { "+spread", 1L, DeprecateOptionFlag, MagickFalse },
622 { "-spread", 1L, SimpleOperatorOptionFlag, MagickFalse },
623 { "+statistic", 2L, DeprecateOptionFlag, MagickFalse },
624 { "-statistic", 2L, SimpleOperatorOptionFlag, MagickFalse },
625 { "+stegano", 0L, NonConvertOptionFlag, MagickFalse },
626 { "-stegano", 1L, NonConvertOptionFlag, MagickFalse },
627 { "+stereo", 0L, DeprecateOptionFlag, MagickFalse },
628 { "-stereo", 1L, NonConvertOptionFlag, MagickFalse },
629 { "+stretch", 1L, DeprecateOptionFlag, MagickFalse },
630 { "-stretch", 1L, SimpleOperatorOptionFlag, MagickFalse },
631 { "+strip", 0L, DeprecateOptionFlag, MagickFalse },
632 { "-strip", 0L, SimpleOperatorOptionFlag, MagickFalse },
633 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
634 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
635 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
636 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
637 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
638 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
639 { "+subimage-search", 0L, NonConvertOptionFlag, MagickFalse },
640 { "-subimage-search", 0L, NonConvertOptionFlag, MagickFalse },
641 { "+swap", 0L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
642 { "-swap", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
643 { "+swirl", 1L, DeprecateOptionFlag, MagickFalse },
644 { "-swirl", 1L, SimpleOperatorOptionFlag, MagickFalse },
645 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
646 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
647 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
648 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
649 { "+text-font", 0L, NonConvertOptionFlag, MagickFalse },
650 { "-text-font", 1L, NonConvertOptionFlag, MagickFalse },
651 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
652 { "-texture", 1L, ImageInfoOptionFlag, MagickFalse },
653 { "+threshold", 0L, SimpleOperatorOptionFlag, MagickFalse },
654 { "-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse },
655 { "+thumbnail", 1L, DeprecateOptionFlag, MagickFalse },
656 { "-thumbnail", 1L, SimpleOperatorOptionFlag, MagickFalse },
657 { "+tile", 0L, DrawInfoOptionFlag, MagickFalse },
658 { "-tile", 1L, DrawInfoOptionFlag, MagickFalse },
659 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
660 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
661 { "+tint", 1L, SimpleOperatorOptionFlag, MagickFalse },
662 { "-tint", 1L, SimpleOperatorOptionFlag, MagickFalse },
663 { "+title", 0L, NonConvertOptionFlag, MagickFalse },
664 { "-title", 1L, NonConvertOptionFlag, MagickFalse },
665 { "+transform", 0L, DeprecateOptionFlag, MagickFalse },
666 { "-transform", 0L, SimpleOperatorOptionFlag, MagickFalse },
667 { "+transparent", 1L, SimpleOperatorOptionFlag, MagickFalse },
668 { "-transparent", 1L, SimpleOperatorOptionFlag, MagickFalse },
669 { "+transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
670 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
671 { "+transpose", 0L, DeprecateOptionFlag, MagickFalse },
672 { "-transpose", 0L, SimpleOperatorOptionFlag, MagickFalse },
673 { "+transverse", 0L, DeprecateOptionFlag, MagickFalse },
674 { "-transverse", 0L, SimpleOperatorOptionFlag, MagickFalse },
675 { "+treedepth", 1L, DeprecateOptionFlag, MagickFalse },
676 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
677 { "+trim", 0L, DeprecateOptionFlag, MagickFalse },
678 { "-trim", 0L, SimpleOperatorOptionFlag, MagickFalse },
679 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
680 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
681 { "+undercolor", 0L, ImageInfoOptionFlag, MagickFalse },
682 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
683 { "+unique", 0L, DeprecateOptionFlag, MagickFalse },
684 { "-unique", 0L, ImageInfoOptionFlag, MagickFalse },
685 { "+unique-colors", 0L, DeprecateOptionFlag, MagickFalse },
686 { "-unique-colors", 0L, SimpleOperatorOptionFlag, MagickFalse },
687 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
688 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
689 { "+unsharp", 1L, DeprecateOptionFlag, MagickFalse },
690 { "-unsharp", 1L, SimpleOperatorOptionFlag, MagickFalse },
691 { "+update", 0L, NonConvertOptionFlag, MagickFalse },
692 { "-update", 1L, NonConvertOptionFlag, MagickFalse },
693 { "+use-pixmap", 0L, NonConvertOptionFlag, MagickFalse },
694 { "-use-pixmap", 1L, NonConvertOptionFlag, MagickFalse },
695 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
696 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
697 { "+version", 0L, SpecialOperatorOptionFlag, MagickFalse },
698 { "-version", 1L, SpecialOperatorOptionFlag, MagickFalse },
699 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
700 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
701 { "+vignette", 1L, DeprecateOptionFlag, MagickFalse },
702 { "-vignette", 1L, SimpleOperatorOptionFlag, MagickFalse },
703 { "+virtual-pixel", 0L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
704 { "-virtual-pixel", 1L, ImageInfoOptionFlag | SimpleOperatorOptionFlag, MagickFalse },
705 { "+visual", 0L, NonConvertOptionFlag, MagickFalse },
706 { "-visual", 1L, NonConvertOptionFlag, MagickFalse },
707 { "+watermark", 0L, NonConvertOptionFlag, MagickFalse },
708 { "-watermark", 1L, NonConvertOptionFlag, MagickFalse },
709 { "+wave", 1L, DeprecateOptionFlag, MagickFalse },
710 { "-wave", 1L, SimpleOperatorOptionFlag, MagickFalse },
711 { "+weight", 1L, DeprecateOptionFlag, MagickFalse },
712 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
713 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
714 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
715 { "+white-threshold", 1L, DeprecateOptionFlag, MagickFalse },
716 { "-white-threshold", 1L, SimpleOperatorOptionFlag, MagickFalse },
717 { "+window", 0L, NonConvertOptionFlag, MagickFalse },
718 { "-window", 1L, NonConvertOptionFlag, MagickFalse },
719 { "+window-group", 0L, NonConvertOptionFlag, MagickFalse },
720 { "-window-group", 1L, NonConvertOptionFlag, MagickFalse },
721 { "+write", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
722 { "-write", 1L, ListOperatorOptionFlag | FireOptionFlag, MagickFalse },
723 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
727 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
728 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
729 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
730 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
731 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
732 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
733 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
734 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
735 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
736 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
737 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
738 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
739 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
740 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
741 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
742 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
743 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
744 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
745 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
746 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
747 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
748 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
749 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
750 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
751 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
752 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
753 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
754 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
755 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
756 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
757 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
758 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
759 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
760 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
761 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
762 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
763 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
764 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
765 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
766 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
767 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
768 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
769 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
770 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
771 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
772 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
773 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
774 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
775 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
776 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
777 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
778 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
779 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
780 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
781 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
782 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
783 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
784 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
785 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
786 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
787 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
789 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
791 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
795 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
796 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
798 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
799 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
800 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
804 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
805 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
806 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
807 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
808 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
809 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
810 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
811 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
812 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
813 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
814 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
815 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
816 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
817 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
818 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
819 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
820 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
821 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
822 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
823 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
824 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
825 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
826 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
827 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
828 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
830 ColorspaceOptions[] =
832 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
833 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
834 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
835 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
836 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
837 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
838 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
839 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
840 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
841 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
842 { "Rec601Luma", Rec601LumaColorspace, UndefinedOptionFlag, MagickFalse },
843 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
844 { "Rec709Luma", Rec709LumaColorspace, UndefinedOptionFlag, MagickFalse },
845 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
846 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
847 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
848 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
849 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
850 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
851 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
852 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
853 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
854 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
855 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
859 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
860 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
861 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
862 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
863 { "String", StringData, UndefinedOptionFlag, MagickFalse },
864 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
868 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
869 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
870 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
871 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
872 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
873 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
877 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
878 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
879 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
880 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
884 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
885 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
886 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
887 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
888 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
889 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
890 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
891 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
892 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
893 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
897 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
898 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
899 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
900 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
901 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
902 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
903 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
904 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
905 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
906 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
907 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
908 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
909 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
910 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
911 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
912 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
913 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
914 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
915 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
916 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
917 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
921 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
922 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
923 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
924 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
925 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
929 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
930 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
931 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
932 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
936 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
937 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
938 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
939 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
940 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
941 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
942 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
943 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
944 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
945 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
946 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
947 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
948 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
949 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
950 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
951 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
952 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
953 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
954 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
955 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
956 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
957 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
958 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
959 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
960 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
961 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
962 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
963 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
964 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
965 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
966 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
967 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
968 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
969 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
970 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
974 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
975 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
976 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
977 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
981 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
982 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
983 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
984 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
985 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
986 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
987 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
988 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
989 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
990 { "Hanning", HanningFilter, UndefinedOptionFlag, MagickFalse },
991 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
992 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
993 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
994 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
995 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
996 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
997 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
998 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
999 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1000 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1001 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1002 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1003 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
1004 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1005 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
1006 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
1007 { "Welsh", WelshFilter, UndefinedOptionFlag, MagickFalse },
1008 /* For backward compatibility - must be after "Jinc" */
1009 { "Bessel", JincFilter, UndefinedOptionFlag, MagickTrue },
1010 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
1014 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1015 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1016 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1017 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1018 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1019 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
1023 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1024 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1025 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1026 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1027 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1028 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1029 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1030 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1031 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1032 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1033 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1034 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
1035 { "Static", StaticGravity, UndefinedOptionFlag, MagickFalse },
1036 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
1040 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1041 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1042 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1043 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1044 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1045 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
1047 InterlaceOptions[] =
1049 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1050 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1051 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1052 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1053 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1054 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1055 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1056 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1057 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
1059 InterpolateOptions[] =
1061 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1062 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1063 { "Bicubic", BicubicInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1064 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1065 { "filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1066 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1067 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1068 { "NearestNeighbor", NearestNeighborInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1069 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1070 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
1074 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1075 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1076 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1077 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1078 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1079 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1080 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
1081 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1082 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1083 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1084 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1085 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1086 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1087 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1088 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1089 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1090 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1091 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1092 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1093 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1094 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1095 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1096 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1097 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1098 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1099 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
1100 { "ThinDiagonals", DiagonalsKernel, DeprecateOptionFlag, MagickTrue },
1101 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1102 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1103 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1104 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1105 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1106 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1107 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1108 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1109 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1110 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
1111 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
1112 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
1116 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1117 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1118 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1119 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1120 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1121 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1122 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1123 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1124 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1125 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1126 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1127 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1128 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1129 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1130 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1131 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1132 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1133 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
1137 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1138 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1139 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1140 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1141 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
1145 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1146 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1147 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1148 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1149 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
1153 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
1154 { "Alpha", MagickAlphaOptions, UndefinedOptionFlag, MagickFalse },
1155 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
1156 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1157 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1158 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1159 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1160 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1161 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1162 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1163 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1164 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1165 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1166 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1167 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1168 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1169 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1170 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1171 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1172 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1173 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1174 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1175 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1176 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1177 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1178 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1179 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1180 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1181 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
1182 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1183 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1184 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1185 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1186 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1187 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1188 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1189 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1190 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1191 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1192 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1193 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1194 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1195 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1196 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1197 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1198 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1199 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1200 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1201 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
1202 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1203 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
1204 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1205 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1206 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1207 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1208 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1209 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1210 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1211 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1212 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1213 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1214 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1215 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1216 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1217 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1218 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1219 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1220 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1221 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1222 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
1226 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1227 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
1228 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
1229 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1230 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1231 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1232 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1233 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1234 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1235 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1236 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1237 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1238 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1239 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
1240 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
1241 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1242 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1243 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1244 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1245 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1246 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1247 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1248 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
1252 { "Undefined", UndefinedMetric, UndefinedOptionFlag, MagickTrue },
1253 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1254 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1255 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1256 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1257 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1258 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1259 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1260 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1261 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1262 { (char *) NULL, UndefinedMetric, UndefinedOptionFlag, MagickFalse }
1266 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1267 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1268 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1269 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1270 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1271 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1272 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1276 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1277 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1278 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1279 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1280 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
1282 MorphologyOptions[] =
1284 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1285 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1286 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1287 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1288 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1289 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1290 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1291 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1292 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1293 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1294 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1295 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1296 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1297 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1298 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1299 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1300 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1301 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1302 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1303 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1304 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
1305 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1306 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1307 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1308 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1309 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1310 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
1311 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1312 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
1316 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1317 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1318 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1319 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1320 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1321 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1322 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1323 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1324 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
1326 OrientationOptions[] =
1328 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1329 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1330 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1331 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1332 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1333 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1334 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1335 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1336 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1337 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
1339 PixelChannelOptions[] =
1341 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
1342 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1343 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1344 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1345 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1346 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
1347 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1348 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1349 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
1350 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1351 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1352 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
1353 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1354 { "Mask", MaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1355 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1356 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
1357 { "Y", YPixelChannel, UndefinedOptionFlag, MagickFalse },
1358 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1359 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1361 PixelTraitOptions[] =
1363 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1364 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1365 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1366 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1367 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1369 PolicyDomainOptions[] =
1371 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1372 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1373 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1374 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1375 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1376 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1377 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1378 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
1380 PolicyRightsOptions[] =
1382 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1383 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1384 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1385 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1386 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1387 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
1391 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1392 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1393 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1394 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1395 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1396 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1397 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1398 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1399 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1400 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1401 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1402 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1403 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1404 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1405 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1406 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1407 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1408 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1409 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1410 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1411 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1412 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1413 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1414 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1415 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1416 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1417 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1418 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1419 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1420 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1421 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
1423 PrimitiveOptions[] =
1425 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1426 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1427 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1428 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1429 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1430 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1431 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1432 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1433 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1434 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1435 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1436 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1437 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1438 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1439 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1440 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1441 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
1443 QuantumFormatOptions[] =
1445 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1446 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1447 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1448 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1449 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
1451 ResolutionOptions[] =
1453 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1454 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1455 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1456 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
1460 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1461 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1462 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1463 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1464 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1465 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1466 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1467 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1468 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1470 SparseColorOptions[] =
1472 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1473 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1474 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
1475 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
1476 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1477 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1478 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1480 StatisticOptions[] =
1482 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1483 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1484 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1485 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1486 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1487 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1488 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
1489 { "Nonpeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
1490 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1491 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1495 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1496 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1497 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1498 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
1499 { "Integer", IntegerPixel, UndefinedOptionFlag, MagickFalse },
1500 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
1501 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1502 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1503 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1507 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1508 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1509 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1510 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1511 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1512 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1513 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1514 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1515 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1516 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1517 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1518 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
1522 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1523 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1524 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1525 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1526 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1527 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
1531 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1532 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1533 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
1534 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1535 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
1536 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1537 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1538 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
1539 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
1540 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
1541 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1542 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1543 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
1547 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1548 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
1549 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1550 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1551 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
1552 { "FormatsInMemory", FormatsInMemoryValidate, UndefinedOptionFlag, MagickFalse },
1553 { "FormatsOnDisk", FormatsOnDiskValidate, UndefinedOptionFlag, MagickFalse },
1554 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1555 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1556 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1557 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1558 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1559 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
1561 VirtualPixelOptions[] =
1563 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1564 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1565 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1566 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
1567 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1568 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1569 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1570 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1571 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1572 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1573 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1574 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1575 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1576 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1577 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1578 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1579 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1580 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
1584 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1588 % C l o n e I m a g e O p t i o n s %
1592 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1594 % CloneImageOptions() clones one or more image options.
1596 % The format of the CloneImageOptions method is:
1598 % MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1599 % const ImageInfo *clone_info)
1601 % A description of each parameter follows:
1603 % o image_info: the image info.
1605 % o clone_info: the clone image info.
1608 MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1609 const ImageInfo *clone_info)
1611 assert(image_info != (ImageInfo *) NULL);
1612 assert(image_info->signature == MagickSignature);
1613 if (image_info->debug != MagickFalse)
1614 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1615 image_info->filename);
1616 assert(clone_info != (const ImageInfo *) NULL);
1617 assert(clone_info->signature == MagickSignature);
1618 if (clone_info->options != (void *) NULL)
1619 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1620 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1625 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1629 % D e f i n e I m a g e O p t i o n %
1633 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1635 % DefineImageOption() associates an assignment string of the form
1636 % "key=value" with an image option.
1638 % The format of the DefineImageOption method is:
1640 % MagickBooleanType DefineImageOption(ImageInfo *image_info,
1641 % const char *option)
1643 % A description of each parameter follows:
1645 % o image_info: the image info.
1647 % o option: the image option assignment string.
1650 MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1655 value[MaxTextExtent];
1660 assert(image_info != (ImageInfo *) NULL);
1661 assert(option != (const char *) NULL);
1662 (void) CopyMagickString(key,option,MaxTextExtent);
1663 for (p=key; *p != '\0'; p++)
1668 (void) CopyMagickString(value,p+1,MaxTextExtent);
1670 return(SetImageOption(image_info,key,value));
1674 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1678 % D e l e t e I m a g e O p t i o n %
1682 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1684 % DeleteImageOption() deletes an key from the image map.
1686 % The format of the DeleteImageOption method is:
1688 % MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1691 % A description of each parameter follows:
1693 % o image_info: the image info.
1695 % o option: the image option.
1698 MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1701 assert(image_info != (ImageInfo *) NULL);
1702 assert(image_info->signature == MagickSignature);
1703 if (image_info->debug != MagickFalse)
1704 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1705 image_info->filename);
1706 if (image_info->options == (void *) NULL)
1707 return(MagickFalse);
1708 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1712 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1716 % D e s t r o y I m a g e O p t i o n s %
1720 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1722 % DestroyImageOptions() releases memory associated with image option values.
1724 % The format of the DestroyDefines method is:
1726 % void DestroyImageOptions(ImageInfo *image_info)
1728 % A description of each parameter follows:
1730 % o image_info: the image info.
1733 MagickExport void DestroyImageOptions(ImageInfo *image_info)
1735 assert(image_info != (ImageInfo *) NULL);
1736 assert(image_info->signature == MagickSignature);
1737 if (image_info->debug != MagickFalse)
1738 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1739 image_info->filename);
1740 if (image_info->options != (void *) NULL)
1741 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1745 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1749 % G e t I m a g e O p t i o n %
1753 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1755 % GetImageOption() gets a value associated with an image option.
1757 % The format of the GetImageOption method is:
1759 % const char *GetImageOption(const ImageInfo *image_info,
1760 % const char *option)
1762 % A description of each parameter follows:
1764 % o image_info: the image info.
1766 % o option: the option.
1769 MagickExport const char *GetImageOption(const ImageInfo *image_info,
1772 assert(image_info != (ImageInfo *) NULL);
1773 assert(image_info->signature == MagickSignature);
1774 if (image_info->debug != MagickFalse)
1775 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1776 image_info->filename);
1777 if (image_info->options == (void *) NULL)
1778 return((const char *) NULL);
1779 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1780 image_info->options,option));
1784 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1788 % G e t C o m m a n d O p t i o n F l a g s %
1792 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1794 % GetCommandOptionFlags() parses a string and returns an enumerated option
1795 % flags(s). Return a value of -1 if no such option is found.
1797 % The format of the GetCommandOptionFlags method is:
1799 % ssize_t GetCommandOptionFlags(const CommandOption option,
1800 % const MagickBooleanType list,const char *options)
1802 % A description of each parameter follows:
1804 % o option: Index to the option table to lookup
1806 % o list: A option other than zero permits more than one option separated by
1809 % o options: One or more options separated by commas.
1813 static const OptionInfo *GetOptionInfo(const CommandOption option)
1817 case MagickAlignOptions: return(AlignOptions);
1818 case MagickAlphaOptions: return(AlphaOptions);
1819 case MagickBooleanOptions: return(BooleanOptions);
1820 case MagickChannelOptions: return(ChannelOptions);
1821 case MagickClassOptions: return(ClassOptions);
1822 case MagickClipPathOptions: return(ClipPathOptions);
1823 case MagickColorspaceOptions: return(ColorspaceOptions);
1824 case MagickCommandOptions: return(CommandOptions);
1825 case MagickComposeOptions: return(ComposeOptions);
1826 case MagickCompressOptions: return(CompressOptions);
1827 case MagickDataTypeOptions: return(DataTypeOptions);
1828 case MagickDebugOptions: return(LogEventOptions);
1829 case MagickDecorateOptions: return(DecorateOptions);
1830 case MagickDirectionOptions: return(DirectionOptions);
1831 case MagickDisposeOptions: return(DisposeOptions);
1832 case MagickDistortOptions: return(DistortOptions);
1833 case MagickDitherOptions: return(DitherOptions);
1834 case MagickEndianOptions: return(EndianOptions);
1835 case MagickEvaluateOptions: return(EvaluateOptions);
1836 case MagickFillRuleOptions: return(FillRuleOptions);
1837 case MagickFilterOptions: return(FilterOptions);
1838 case MagickFunctionOptions: return(FunctionOptions);
1839 case MagickGravityOptions: return(GravityOptions);
1840 /* case MagickImageListOptions: return(ImageListOptions); */
1841 case MagickIntentOptions: return(IntentOptions);
1842 case MagickInterlaceOptions: return(InterlaceOptions);
1843 case MagickInterpolateOptions: return(InterpolateOptions);
1844 case MagickKernelOptions: return(KernelOptions);
1845 case MagickLayerOptions: return(LayerOptions);
1846 case MagickLineCapOptions: return(LineCapOptions);
1847 case MagickLineJoinOptions: return(LineJoinOptions);
1848 case MagickListOptions: return(ListOptions);
1849 case MagickLogEventOptions: return(LogEventOptions);
1850 case MagickMetricOptions: return(MetricOptions);
1851 case MagickMethodOptions: return(MethodOptions);
1852 case MagickModeOptions: return(ModeOptions);
1853 case MagickMorphologyOptions: return(MorphologyOptions);
1854 case MagickNoiseOptions: return(NoiseOptions);
1855 case MagickOrientationOptions: return(OrientationOptions);
1856 case MagickPixelChannelOptions: return(PixelChannelOptions);
1857 case MagickPixelTraitOptions: return(PixelTraitOptions);
1858 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1859 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1860 case MagickPreviewOptions: return(PreviewOptions);
1861 case MagickPrimitiveOptions: return(PrimitiveOptions);
1862 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1863 case MagickResolutionOptions: return(ResolutionOptions);
1864 case MagickResourceOptions: return(ResourceOptions);
1865 case MagickSparseColorOptions: return(SparseColorOptions);
1866 case MagickStatisticOptions: return(StatisticOptions);
1867 case MagickStorageOptions: return(StorageOptions);
1868 case MagickStretchOptions: return(StretchOptions);
1869 case MagickStyleOptions: return(StyleOptions);
1870 case MagickTypeOptions: return(TypeOptions);
1871 case MagickValidateOptions: return(ValidateOptions);
1872 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1875 return((const OptionInfo *) NULL);
1878 MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
1879 const MagickBooleanType list,const char *options)
1882 token[MaxTextExtent];
1905 option_info=GetOptionInfo(option);
1906 if (option_info == (const OptionInfo *) NULL)
1910 if (strchr(options,'|') != (char *) NULL)
1912 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
1914 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
1917 negate=(*p == '!') ? MagickTrue : MagickFalse;
1918 if (negate != MagickFalse)
1921 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
1924 if ((q-token) >= (MaxTextExtent-1))
1929 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
1930 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
1933 option_types=option_types &~ option_info[i].flags;
1935 option_types=option_types | option_info[i].flags;
1938 if ((option_info[i].mnemonic == (char *) NULL) &&
1939 ((strchr(token+1,'-') != (char *) NULL) ||
1940 (strchr(token+1,'_') != (char *) NULL)))
1942 while ((q=strchr(token+1,'-')) != (char *) NULL)
1943 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
1944 while ((q=strchr(token+1,'_')) != (char *) NULL)
1945 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
1946 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
1947 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
1950 option_types=option_types &~ option_info[i].flags;
1952 option_types=option_types | option_info[i].flags;
1956 if (option_info[i].mnemonic == (char *) NULL)
1958 if (list == MagickFalse)
1961 return(option_types);
1965 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1969 % G e t C o m m a n d O p t i o n s %
1973 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1975 % GetCommandOptions() returns a list of values.
1977 % The format of the GetCommandOptions method is:
1979 % const char **GetCommandOptions(const CommandOption value)
1981 % A description of each parameter follows:
1983 % o value: the value.
1986 MagickExport char **GetCommandOptions(const CommandOption value)
1997 option_info=GetOptionInfo(value);
1998 if (option_info == (const OptionInfo *) NULL)
1999 return((char **) NULL);
2000 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2001 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2002 if (values == (char **) NULL)
2003 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2004 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2005 values[i]=AcquireString(option_info[i].mnemonic);
2006 values[i]=(char *) NULL;
2011 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2015 % G e t N e x t I m a g e O p t i o n %
2019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2021 % GetNextImageOption() gets the next image option value.
2023 % The format of the GetNextImageOption method is:
2025 % char *GetNextImageOption(const ImageInfo *image_info)
2027 % A description of each parameter follows:
2029 % o image_info: the image info.
2032 MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2034 assert(image_info != (ImageInfo *) NULL);
2035 assert(image_info->signature == MagickSignature);
2036 if (image_info->debug != MagickFalse)
2037 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2038 image_info->filename);
2039 if (image_info->options == (void *) NULL)
2040 return((char *) NULL);
2041 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2045 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2049 % I s C o m m a n d O p t i o n %
2053 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2055 % IsCommandOption() returns MagickTrue if the option begins with a - or + and
2056 % the first character that follows is alphanumeric.
2058 % The format of the IsCommandOption method is:
2060 % MagickBooleanType IsCommandOption(const char *option)
2062 % A description of each parameter follows:
2064 % o option: the option.
2067 MagickExport MagickBooleanType IsCommandOption(const char *option)
2069 assert(option != (const char *) NULL);
2070 if ((*option != '-') && (*option != '+'))
2071 return(MagickFalse);
2072 if (strlen(option) == 1)
2073 return(MagickFalse);
2075 if (isalpha((int) ((unsigned char) *option)) == 0)
2076 return(MagickFalse);
2081 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2085 % C o m m a n d O p t i o n T o M n e m o n i c %
2089 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2091 % CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
2093 % The format of the CommandOptionToMnemonic method is:
2095 % const char *CommandOptionToMnemonic(const CommandOption option,
2096 % const ssize_t type)
2098 % A description of each parameter follows:
2100 % o option: the option.
2102 % o type: one or more values separated by commas.
2105 MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
2114 option_info=GetOptionInfo(option);
2115 if (option_info == (const OptionInfo *) NULL)
2116 return((const char *) NULL);
2117 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2118 if (type == option_info[i].type)
2120 if (option_info[i].mnemonic == (const char *) NULL)
2121 return("undefined");
2122 return(option_info[i].mnemonic);
2126 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2130 % L i s t C o m m a n d O p t i o n s %
2134 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2136 % ListCommandOptions() lists the contents of enumerated option type(s).
2138 % The format of the ListCommandOptions method is:
2140 % MagickBooleanType ListCommandOptions(FILE *file,
2141 % const CommandOption option,ExceptionInfo *exception)
2143 % A description of each parameter follows:
2145 % o file: list options to this file handle.
2147 % o option: list these options.
2149 % o exception: return any errors or warnings in this structure.
2152 MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2153 const CommandOption option,ExceptionInfo *magick_unused(exception))
2161 if (file == (FILE *) NULL)
2163 option_info=GetOptionInfo(option);
2164 if (option_info == (const OptionInfo *) NULL)
2165 return(MagickFalse);
2166 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2168 if (option_info[i].stealth != MagickFalse)
2170 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
2176 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2180 % P a r s e C h a n n e l O p t i o n %
2184 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2186 % ParseChannelOption() parses a string and returns an enumerated channel
2189 % The format of the ParseChannelOption method is:
2191 % ssize_t ParseChannelOption(const char *channels)
2193 % A description of each parameter follows:
2195 % o options: One or more values separated by commas.
2198 MagickExport ssize_t ParseChannelOption(const char *channels)
2206 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
2210 for (i=0; i < (ssize_t) strlen(channels); i++)
2212 switch (channels[i])
2217 channel|=OpacityChannel;
2223 channel|=BlueChannel;
2229 channel|=CyanChannel;
2235 channel|=GreenChannel;
2241 channel|=BlackChannel;
2247 channel|=MagentaChannel;
2253 channel|=OpacityChannel;
2259 channel|=RedChannel;
2265 channel|=YellowChannel;
2274 Gather the additional channel flags and merge with shorthand.
2276 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
2290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2294 % P a r s e C o m m a n d O p t i o n %
2298 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2300 % ParseCommandOption() parses a string and returns an enumerated option
2301 % type(s). Return a value of -1 if no such option is found.
2303 % The format of the ParseCommandOption method is:
2305 % ssize_t ParseCommandOption(const CommandOption option,
2306 % const MagickBooleanType list,const char *options)
2308 % A description of each parameter follows:
2310 % o option: Index to the option table to lookup
2312 % o list: A option other than zero permits more than one option separated by
2315 % o options: One or more options separated by commas.
2318 MagickExport ssize_t ParseCommandOption(const CommandOption option,
2319 const MagickBooleanType list,const char *options)
2322 token[MaxTextExtent];
2345 option_info=GetOptionInfo(option);
2346 if (option_info == (const OptionInfo *) NULL)
2350 if (strchr(options,'|') != (char *) NULL)
2352 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2354 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2357 negate=(*p == '!') ? MagickTrue : MagickFalse;
2358 if (negate != MagickFalse)
2361 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2364 if ((q-token) >= (MaxTextExtent-1))
2369 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2370 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2373 option_types=option_types &~ option_info[i].type;
2375 option_types=option_types | option_info[i].type;
2378 if ((option_info[i].mnemonic == (char *) NULL) &&
2379 ((strchr(token+1,'-') != (char *) NULL) ||
2380 (strchr(token+1,'_') != (char *) NULL)))
2382 while ((q=strchr(token+1,'-')) != (char *) NULL)
2383 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2384 while ((q=strchr(token+1,'_')) != (char *) NULL)
2385 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2386 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2387 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2390 option_types=option_types &~ option_info[i].type;
2392 option_types=option_types | option_info[i].type;
2396 if (option_info[i].mnemonic == (char *) NULL)
2398 if (list == MagickFalse)
2401 return(option_types);
2405 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2409 % R e m o v e I m a g e O p t i o n %
2413 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2415 % RemoveImageOption() removes an option from the image and returns its value.
2417 % The format of the RemoveImageOption method is:
2419 % char *RemoveImageOption(ImageInfo *image_info,const char *option)
2421 % A description of each parameter follows:
2423 % o image_info: the image info.
2425 % o option: the image option.
2428 MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2433 assert(image_info != (ImageInfo *) NULL);
2434 assert(image_info->signature == MagickSignature);
2435 if (image_info->debug != MagickFalse)
2436 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2437 image_info->filename);
2438 if (image_info->options == (void *) NULL)
2439 return((char *) NULL);
2440 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2441 image_info->options,option);
2446 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2450 % R e s e t I m a g e O p t i o n %
2454 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2456 % ResetImageOptions() resets the image_info option. That is, it deletes
2457 % all options associated with the image_info structure.
2459 % The format of the ResetImageOptions method is:
2461 % ResetImageOptions(ImageInfo *image_info)
2463 % A description of each parameter follows:
2465 % o image_info: the image info.
2468 MagickExport void ResetImageOptions(const ImageInfo *image_info)
2470 assert(image_info != (ImageInfo *) NULL);
2471 assert(image_info->signature == MagickSignature);
2472 if (image_info->debug != MagickFalse)
2473 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2474 image_info->filename);
2475 if (image_info->options == (void *) NULL)
2477 ResetSplayTree((SplayTreeInfo *) image_info->options);
2481 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2485 % R e s e t I m a g e O p t i o n I t e r a t o r %
2489 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2491 % ResetImageOptionIterator() resets the image_info values iterator. Use it
2492 % in conjunction with GetNextImageOption() to iterate over all the values
2493 % associated with an image option.
2495 % The format of the ResetImageOptionIterator method is:
2497 % ResetImageOptionIterator(ImageInfo *image_info)
2499 % A description of each parameter follows:
2501 % o image_info: the image info.
2504 MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2506 assert(image_info != (ImageInfo *) NULL);
2507 assert(image_info->signature == MagickSignature);
2508 if (image_info->debug != MagickFalse)
2509 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2510 image_info->filename);
2511 if (image_info->options == (void *) NULL)
2513 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2517 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2521 % S e t I m a g e O p t i o n %
2525 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2527 % SetImageOption() associates an value with an image option.
2529 % The format of the SetImageOption method is:
2531 % MagickBooleanType SetImageOption(ImageInfo *image_info,
2532 % const char *option,const char *value)
2534 % A description of each parameter follows:
2536 % o image_info: the image info.
2538 % o option: the image option.
2540 % o values: the image option values.
2543 MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2544 const char *option,const char *value)
2546 assert(image_info != (ImageInfo *) NULL);
2547 assert(image_info->signature == MagickSignature);
2548 if (image_info->debug != MagickFalse)
2549 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2550 image_info->filename);
2552 /* This should not be here! - but others might */
2553 if (LocaleCompare(option,"size") == 0)
2554 (void) CloneString(&image_info->size,value);
2556 /* create tree if needed */
2557 if (image_info->options == (void *) NULL)
2558 image_info->options=NewSplayTree(CompareSplayTreeString,
2559 RelinquishMagickMemory,RelinquishMagickMemory);
2561 /* Delete Option if NULL */
2562 if (value == (const char *) NULL)
2563 return(DeleteImageOption(image_info,option));
2565 /* add option and return */
2566 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2567 ConstantString(option),ConstantString(value)));