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-2018 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 % https://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/fourier.h"
55 #include "MagickCore/fx.h"
56 #include "MagickCore/gem.h"
57 #include "MagickCore/geometry.h"
58 #include "MagickCore/image.h"
59 #include "MagickCore/image-private.h"
60 #include "MagickCore/layer.h"
61 #include "MagickCore/mime-private.h"
62 #include "MagickCore/memory_.h"
63 #include "MagickCore/monitor.h"
64 #include "MagickCore/montage.h"
65 #include "MagickCore/morphology.h"
66 #include "MagickCore/option.h"
67 #include "MagickCore/option-private.h"
68 #include "MagickCore/pixel.h"
69 #include "MagickCore/policy.h"
70 #include "MagickCore/property.h"
71 #include "MagickCore/quantize.h"
72 #include "MagickCore/quantum.h"
73 #include "MagickCore/resample.h"
74 #include "MagickCore/resource_.h"
75 #include "MagickCore/splay-tree.h"
76 #include "MagickCore/statistic.h"
77 #include "MagickCore/string_.h"
78 #include "MagickCore/threshold.h"
79 #include "MagickCore/token.h"
80 #include "MagickCore/utility.h"
85 static const OptionInfo
88 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
89 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
90 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
91 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
92 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
93 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
94 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
95 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
97 AlphaChannelOptions[] =
99 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
100 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Associate", AssociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
104 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
105 { "Discrete", DiscreteAlphaChannel, UndefinedOptionFlag, MagickFalse },
106 { "Disassociate", DisassociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
107 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
108 { "Off", OffAlphaChannel, UndefinedOptionFlag, MagickFalse },
109 { "On", OnAlphaChannel, UndefinedOptionFlag, MagickFalse },
110 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
111 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
112 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
113 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
114 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
115 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
116 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
118 AutoThresholdOptions[] =
120 { "Undefined", UndefinedThresholdMethod, UndefinedOptionFlag, MagickTrue },
121 { "Kapur", KapurThresholdMethod, UndefinedOptionFlag, MagickFalse },
122 { "OTSU", OTSUThresholdMethod, UndefinedOptionFlag, MagickFalse },
123 { "Triangle", TriangleThresholdMethod, UndefinedOptionFlag, MagickFalse },
124 { (char *) NULL, UndefinedThresholdMethod, UndefinedOptionFlag, MagickFalse }
128 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
129 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
130 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
131 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
132 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
136 { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
137 { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
138 { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
139 { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
140 { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
141 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
145 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
147 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
148 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
149 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
150 /* individual channel */
151 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
152 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
153 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
154 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
155 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
156 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
157 { "Chroma", GreenChannel, UndefinedOptionFlag, MagickFalse },
158 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
159 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
160 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
161 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
162 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
163 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
164 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
165 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
166 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
167 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
168 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
169 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
170 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
171 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
172 { "Meta", MetaChannel, UndefinedOptionFlag, MagickFalse },
173 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
174 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
175 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
176 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
177 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
178 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
179 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
180 { "0", (ssize_t) (1L << 0), UndefinedOptionFlag, MagickFalse },
181 { "1", (ssize_t) (1L << 1), UndefinedOptionFlag, MagickFalse },
182 { "2", (ssize_t) (1L << 2), UndefinedOptionFlag, MagickFalse },
183 { "3", (ssize_t) (1L << 3), UndefinedOptionFlag, MagickFalse },
184 { "4", (ssize_t) (1L << 4), UndefinedOptionFlag, MagickFalse },
185 { "5", (ssize_t) (1L << 5), UndefinedOptionFlag, MagickFalse },
186 { "6", (ssize_t) (1L << 6), UndefinedOptionFlag, MagickFalse },
187 { "7", (ssize_t) (1L << 7), UndefinedOptionFlag, MagickFalse },
188 { "8", (ssize_t) (1L << 8), UndefinedOptionFlag, MagickFalse },
189 { "9", (ssize_t) (1L << 9), UndefinedOptionFlag, MagickFalse },
190 { "10", (ssize_t) (1L << 10), UndefinedOptionFlag, MagickFalse },
191 { "11", (ssize_t) (1L << 11), UndefinedOptionFlag, MagickFalse },
192 { "12", (ssize_t) (1L << 12), UndefinedOptionFlag, MagickFalse },
193 { "13", (ssize_t) (1L << 13), UndefinedOptionFlag, MagickFalse },
194 { "14", (ssize_t) (1L << 14), UndefinedOptionFlag, MagickFalse },
195 { "15", (ssize_t) (1L << 15), UndefinedOptionFlag, MagickFalse },
196 { "16", (ssize_t) (1L << 16), UndefinedOptionFlag, MagickFalse },
197 { "17", (ssize_t) (1L << 17), UndefinedOptionFlag, MagickFalse },
198 { "18", (ssize_t) (1L << 18), UndefinedOptionFlag, MagickFalse },
199 { "19", (ssize_t) (1L << 19), UndefinedOptionFlag, MagickFalse },
200 { "20", (ssize_t) (1L << 20), UndefinedOptionFlag, MagickFalse },
201 { "21", (ssize_t) (1L << 21), UndefinedOptionFlag, MagickFalse },
202 { "22", (ssize_t) (1L << 22), UndefinedOptionFlag, MagickFalse },
203 { "23", (ssize_t) (1L << 23), UndefinedOptionFlag, MagickFalse },
204 { "24", (ssize_t) (1L << 24), UndefinedOptionFlag, MagickFalse },
205 { "25", (ssize_t) (1L << 25), UndefinedOptionFlag, MagickFalse },
206 { "26", (ssize_t) (1L << 26), UndefinedOptionFlag, MagickFalse },
207 { "27", (ssize_t) (1L << 27), UndefinedOptionFlag, MagickFalse },
208 { "28", (ssize_t) (1L << 28), UndefinedOptionFlag, MagickFalse },
209 { "29", (ssize_t) (1L << 29), UndefinedOptionFlag, MagickFalse },
210 { "30", (ssize_t) (1L << 30), UndefinedOptionFlag, MagickFalse },
211 { "31", (ssize_t) (1L << 31), UndefinedOptionFlag, MagickFalse },
212 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
216 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
217 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
218 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
219 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
223 { "Setting", 0, UndefinedOptionFlag, MagickFalse },
224 { " adjoin", 0, UndefinedOptionFlag, MagickFalse },
225 { " affine", 0, UndefinedOptionFlag, MagickFalse },
226 { " alpha", 0, UndefinedOptionFlag, MagickFalse },
227 { " antialias", 0, UndefinedOptionFlag, MagickFalse },
228 { " authenticate", 0, UndefinedOptionFlag, MagickFalse },
229 { " background", 0, UndefinedOptionFlag, MagickFalse },
230 { " bias", 0, UndefinedOptionFlag, MagickFalse },
231 { " black-point-compensation", 0, UndefinedOptionFlag, MagickFalse },
232 { " blue-primary", 0, UndefinedOptionFlag, MagickFalse },
233 { " bordercolor", 0, UndefinedOptionFlag, MagickFalse },
234 { " caption", 0, UndefinedOptionFlag, MagickFalse },
235 { " channel", 0, UndefinedOptionFlag, MagickFalse },
236 { " comment", 0, UndefinedOptionFlag, MagickFalse },
237 { " compress", 0, UndefinedOptionFlag, MagickFalse },
238 { " debug", 0, UndefinedOptionFlag, MagickFalse },
239 { " define", 0, UndefinedOptionFlag, MagickFalse },
240 { " delay", 0, UndefinedOptionFlag, MagickFalse },
241 { " density", 0, UndefinedOptionFlag, MagickFalse },
242 { " depth", 0, UndefinedOptionFlag, MagickFalse },
243 { " direction", 0, UndefinedOptionFlag, MagickFalse },
244 { " display", 0, UndefinedOptionFlag, MagickFalse },
245 { " dispose", 0, UndefinedOptionFlag, MagickFalse },
246 { " dither", 0, UndefinedOptionFlag, MagickFalse },
247 { " encoding", 0, UndefinedOptionFlag, MagickFalse },
248 { " endian", 0, UndefinedOptionFlag, MagickFalse },
249 { " extract", 0, UndefinedOptionFlag, MagickFalse },
250 { " family", 0, UndefinedOptionFlag, MagickFalse },
251 { " fill", 0, UndefinedOptionFlag, MagickFalse },
252 { " filter", 0, UndefinedOptionFlag, MagickFalse },
253 { " font", 0, UndefinedOptionFlag, MagickFalse },
254 { " format", 0, UndefinedOptionFlag, MagickFalse },
255 { " fuzz", 0, UndefinedOptionFlag, MagickFalse },
256 { " geometry", 0, UndefinedOptionFlag, MagickFalse },
257 { " gravity", 0, UndefinedOptionFlag, MagickFalse },
258 { " green-primary", 0, UndefinedOptionFlag, MagickFalse },
259 { " interlace", 0, UndefinedOptionFlag, MagickFalse },
260 { " intent", 0, UndefinedOptionFlag, MagickFalse },
261 { " interpolate", 0, UndefinedOptionFlag, MagickFalse },
262 { " label", 0, UndefinedOptionFlag, MagickFalse },
263 { " limit", 0, UndefinedOptionFlag, MagickFalse },
264 { " linewidth", 0, UndefinedOptionFlag, MagickFalse },
265 { " log", 0, UndefinedOptionFlag, MagickFalse },
266 { " loop", 0, UndefinedOptionFlag, MagickFalse },
267 { " mattecolor", 0, UndefinedOptionFlag, MagickFalse },
268 { " monitor", 0, UndefinedOptionFlag, MagickFalse },
269 { " orient", 0, UndefinedOptionFlag, MagickFalse },
270 { " page", 0, UndefinedOptionFlag, MagickFalse },
271 { " pointsize", 0, UndefinedOptionFlag, MagickFalse },
272 { " preview", 0, UndefinedOptionFlag, MagickFalse },
273 { " quality", 0, UndefinedOptionFlag, MagickFalse },
274 { " quiet", 0, UndefinedOptionFlag, MagickFalse },
275 { " read-mask", 0, UndefinedOptionFlag, MagickFalse },
276 { " red-primary", 0, UndefinedOptionFlag, MagickFalse },
277 { " region", 0, UndefinedOptionFlag, MagickFalse },
278 { " render", 0, UndefinedOptionFlag, MagickFalse },
279 { " repage", 0, UndefinedOptionFlag, MagickFalse },
280 { " sampling-factor", 0, UndefinedOptionFlag, MagickFalse },
281 { " scene", 0, UndefinedOptionFlag, MagickFalse },
282 { " seed", 0, UndefinedOptionFlag, MagickFalse },
283 { " size", 0, UndefinedOptionFlag, MagickFalse },
284 { " stretch", 0, UndefinedOptionFlag, MagickFalse },
285 { " stroke", 0, UndefinedOptionFlag, MagickFalse },
286 { " strokewidth", 0, UndefinedOptionFlag, MagickFalse },
287 { " style", 0, UndefinedOptionFlag, MagickFalse },
288 { " texture", 0, UndefinedOptionFlag, MagickFalse },
289 { " tile", 0, UndefinedOptionFlag, MagickFalse },
290 { " transparent-color", 0, UndefinedOptionFlag, MagickFalse },
291 { " treedepth", 0, UndefinedOptionFlag, MagickFalse },
292 { " type", 0, UndefinedOptionFlag, MagickFalse },
293 { " undercolor", 0, UndefinedOptionFlag, MagickFalse },
294 { " units", 0, UndefinedOptionFlag, MagickFalse },
295 { " verbose", 0, UndefinedOptionFlag, MagickFalse },
296 { " virtual-pixel", 0, UndefinedOptionFlag, MagickFalse },
297 { " weight", 0, UndefinedOptionFlag, MagickFalse },
298 { " write-mask", 0, UndefinedOptionFlag, MagickFalse },
299 { "Operator", 0, UndefinedOptionFlag, MagickFalse },
300 { " annotate", 0, UndefinedOptionFlag, MagickFalse },
301 { " black-threshold", 0, UndefinedOptionFlag, MagickFalse },
302 { " blur", 0, UndefinedOptionFlag, MagickFalse },
303 { " border", 0, UndefinedOptionFlag, MagickFalse },
304 { " charcoal", 0, UndefinedOptionFlag, MagickFalse },
305 { " chop", 0, UndefinedOptionFlag, MagickFalse },
306 { " clip", 0, UndefinedOptionFlag, MagickFalse },
307 { " clip-path", 0, UndefinedOptionFlag, MagickFalse },
308 { " clip-mask", 0, UndefinedOptionFlag, MagickFalse },
309 { " colors", 0, UndefinedOptionFlag, MagickFalse },
310 { " colorize", 0, UndefinedOptionFlag, MagickFalse },
311 { " colorspace", 0, UndefinedOptionFlag, MagickFalse },
312 { " compose", 0, UndefinedOptionFlag, MagickFalse },
313 { " contrast", 0, UndefinedOptionFlag, MagickFalse },
314 { " convolve", 0, UndefinedOptionFlag, MagickFalse },
315 { " crop", 0, UndefinedOptionFlag, MagickFalse },
316 { " cycle", 0, UndefinedOptionFlag, MagickFalse },
317 { " despeckle", 0, UndefinedOptionFlag, MagickFalse },
318 { " draw", 0, UndefinedOptionFlag, MagickFalse },
319 { " edge", 0, UndefinedOptionFlag, MagickFalse },
320 { " emboss", 0, UndefinedOptionFlag, MagickFalse },
321 { " enhance", 0, UndefinedOptionFlag, MagickFalse },
322 { " equalize", 0, UndefinedOptionFlag, MagickFalse },
323 { " evaluate", 0, UndefinedOptionFlag, MagickFalse },
324 { " extent", 0, UndefinedOptionFlag, MagickFalse },
325 { " flip", 0, UndefinedOptionFlag, MagickFalse },
326 { " flop", 0, UndefinedOptionFlag, MagickFalse },
327 { " floodfill", 0, UndefinedOptionFlag, MagickFalse },
328 { " frame", 0, UndefinedOptionFlag, MagickFalse },
329 { " gamma", 0, UndefinedOptionFlag, MagickFalse },
330 { " gaussian-blur", 0, UndefinedOptionFlag, MagickFalse },
331 { " grayscale", 0, UndefinedOptionFlag, MagickFalse },
332 { " implode", 0, UndefinedOptionFlag, MagickFalse },
333 { " lat", 0, UndefinedOptionFlag, MagickFalse },
334 { " level", 0, UndefinedOptionFlag, MagickFalse },
335 { " map", 0, UndefinedOptionFlag, MagickFalse },
336 { " median", 0, UndefinedOptionFlag, MagickFalse },
337 { " modulate", 0, UndefinedOptionFlag, MagickFalse },
338 { " monochrome", 0, UndefinedOptionFlag, MagickFalse },
339 { " negate", 0, UndefinedOptionFlag, MagickFalse },
340 { " noise", 0, UndefinedOptionFlag, MagickFalse },
341 { " normalize", 0, UndefinedOptionFlag, MagickFalse },
342 { " opaque", 0, UndefinedOptionFlag, MagickFalse },
343 { " ordered-dither", 0, UndefinedOptionFlag, MagickFalse },
344 { " paint", 0, UndefinedOptionFlag, MagickFalse },
345 { " posterize", 0, UndefinedOptionFlag, MagickFalse },
346 { " raise", 0, UndefinedOptionFlag, MagickFalse },
347 { " profile", 0, UndefinedOptionFlag, MagickFalse },
348 { " radial-blur", 0, UndefinedOptionFlag, MagickFalse },
349 { " raise", 0, UndefinedOptionFlag, MagickFalse },
350 { " random-threshold", 0, UndefinedOptionFlag, MagickFalse },
351 { " range-threshold", 0, UndefinedOptionFlag, MagickFalse },
352 { " resample", 0, UndefinedOptionFlag, MagickFalse },
353 { " resize", 0, UndefinedOptionFlag, MagickFalse },
354 { " roll", 0, UndefinedOptionFlag, MagickFalse },
355 { " rotate", 0, UndefinedOptionFlag, MagickFalse },
356 { " sample", 0, UndefinedOptionFlag, MagickFalse },
357 { " scale", 0, UndefinedOptionFlag, MagickFalse },
358 { " sepia-tone", 0, UndefinedOptionFlag, MagickFalse },
359 { " segment", 0, UndefinedOptionFlag, MagickFalse },
360 { " shade", 0, UndefinedOptionFlag, MagickFalse },
361 { " shadow", 0, UndefinedOptionFlag, MagickFalse },
362 { " sharpen", 0, UndefinedOptionFlag, MagickFalse },
363 { " shave", 0, UndefinedOptionFlag, MagickFalse },
364 { " shear", 0, UndefinedOptionFlag, MagickFalse },
365 { " sigmoidal-contrast", 0, UndefinedOptionFlag, MagickFalse },
366 { " solarize", 0, UndefinedOptionFlag, MagickFalse },
367 { " splice", 0, UndefinedOptionFlag, MagickFalse },
368 { " spread", 0, UndefinedOptionFlag, MagickFalse },
369 { " strip", 0, UndefinedOptionFlag, MagickFalse },
370 { " swirl", 0, UndefinedOptionFlag, MagickFalse },
371 { " threshold", 0, UndefinedOptionFlag, MagickFalse },
372 { " transparent", 0, UndefinedOptionFlag, MagickFalse },
373 { " thumbnail", 0, UndefinedOptionFlag, MagickFalse },
374 { " tint", 0, UndefinedOptionFlag, MagickFalse },
375 { " transform", 0, UndefinedOptionFlag, MagickFalse },
376 { " trim", 0, UndefinedOptionFlag, MagickFalse },
377 { " unsharp", 0, UndefinedOptionFlag, MagickFalse },
378 { " version", 0, UndefinedOptionFlag, MagickFalse },
379 { " wave", 0, UndefinedOptionFlag, MagickFalse },
380 { " white-point", 0, UndefinedOptionFlag, MagickFalse },
381 { " white-threshold", 0, UndefinedOptionFlag, MagickFalse },
382 { "Channel Operator", 0, UndefinedOptionFlag, MagickFalse },
383 { " channel-fx", 0, UndefinedOptionFlag, MagickFalse },
384 { " separate", 0, UndefinedOptionFlag, MagickFalse },
385 { "Sequence Operator", 0, UndefinedOptionFlag, MagickFalse },
386 { " append", 0, UndefinedOptionFlag, MagickFalse },
387 { " affinity", 0, UndefinedOptionFlag, MagickFalse },
388 { " average", 0, UndefinedOptionFlag, MagickFalse },
389 { " clut", 0, UndefinedOptionFlag, MagickFalse },
390 { " coalesce", 0, UndefinedOptionFlag, MagickFalse },
391 { " combine", 0, UndefinedOptionFlag, MagickFalse },
392 { " compare", 0, UndefinedOptionFlag, MagickFalse },
393 { " complex", 0, UndefinedOptionFlag, MagickFalse },
394 { " composite", 0, UndefinedOptionFlag, MagickFalse },
395 { " copy", 0, UndefinedOptionFlag, MagickFalse },
396 { " crop", 0, UndefinedOptionFlag, MagickFalse },
397 { " debug", 0, UndefinedOptionFlag, MagickFalse },
398 { " deconstruct", 0, UndefinedOptionFlag, MagickFalse },
399 { " delete", 0, UndefinedOptionFlag, MagickFalse },
400 { " evaluate-sequence", 0, UndefinedOptionFlag, MagickFalse },
401 { " fft", 0, UndefinedOptionFlag, MagickFalse },
402 { " flatten", 0, UndefinedOptionFlag, MagickFalse },
403 { " fx", 0, UndefinedOptionFlag, MagickFalse },
404 { " hald-clut", 0, UndefinedOptionFlag, MagickFalse },
405 { " ift", 0, UndefinedOptionFlag, MagickFalse },
406 { " identify", 0, UndefinedOptionFlag, MagickFalse },
407 { " insert", 0, UndefinedOptionFlag, MagickFalse },
408 { " layers", 0, UndefinedOptionFlag, MagickFalse },
409 { " limit", 0, UndefinedOptionFlag, MagickFalse },
410 { " map", 0, UndefinedOptionFlag, MagickFalse },
411 { " maximum", 0, UndefinedOptionFlag, MagickFalse },
412 { " minimum", 0, UndefinedOptionFlag, MagickFalse },
413 { " morph", 0, UndefinedOptionFlag, MagickFalse },
414 { " mosaic", 0, UndefinedOptionFlag, MagickFalse },
415 { " optimize", 0, UndefinedOptionFlag, MagickFalse },
416 { " print", 0, UndefinedOptionFlag, MagickFalse },
417 { " process", 0, UndefinedOptionFlag, MagickFalse },
418 { " quiet", 0, UndefinedOptionFlag, MagickFalse },
419 { " swap", 0, UndefinedOptionFlag, MagickFalse },
420 { " write", 0, UndefinedOptionFlag, MagickFalse },
421 { "Geometry", 0, UndefinedOptionFlag, MagickFalse },
422 { " adaptive-resize", 0, UndefinedOptionFlag, MagickFalse },
423 { " border", 0, UndefinedOptionFlag, MagickFalse },
424 { " borderwidth", 0, UndefinedOptionFlag, MagickFalse },
425 { " chop", 0, UndefinedOptionFlag, MagickFalse },
426 { " crop", 0, UndefinedOptionFlag, MagickFalse },
427 { " density", 0, UndefinedOptionFlag, MagickFalse },
428 { " extent", 0, UndefinedOptionFlag, MagickFalse },
429 { " extract", 0, UndefinedOptionFlag, MagickFalse },
430 { " frame", 0, UndefinedOptionFlag, MagickFalse },
431 { " geometry", 0, UndefinedOptionFlag, MagickFalse },
432 { " iconGeometry", 0, UndefinedOptionFlag, MagickFalse },
433 { " liquid-rescale", 0, UndefinedOptionFlag, MagickFalse },
434 { " page", 0, UndefinedOptionFlag, MagickFalse },
435 { " region", 0, UndefinedOptionFlag, MagickFalse },
436 { " repage", 0, UndefinedOptionFlag, MagickFalse },
437 { " resize", 0, UndefinedOptionFlag, MagickFalse },
438 { " sample", 0, UndefinedOptionFlag, MagickFalse },
439 { " scale", 0, UndefinedOptionFlag, MagickFalse },
440 { " shave", 0, UndefinedOptionFlag, MagickFalse },
441 { " splice", 0, UndefinedOptionFlag, MagickFalse },
442 { " thumbnail", 0, UndefinedOptionFlag, MagickFalse },
443 { " window", 0, UndefinedOptionFlag, MagickFalse },
444 { "Stack", 0, UndefinedOptionFlag, MagickFalse },
445 { " clone", 0, UndefinedOptionFlag, MagickFalse },
446 { " delete", 0, UndefinedOptionFlag, MagickFalse },
447 { " insert", 0, UndefinedOptionFlag, MagickFalse },
448 { " swap", 0, UndefinedOptionFlag, MagickFalse },
449 { (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
453 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
454 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
455 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
456 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
457 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
459 ColorspaceOptions[] =
461 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
462 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
463 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
464 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
465 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
466 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
467 { "HCLp", HCLpColorspace, UndefinedOptionFlag, MagickFalse },
468 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
469 { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
470 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
471 { "HSV", HSVColorspace, UndefinedOptionFlag, MagickFalse },
472 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
473 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
474 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
475 { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
476 { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
477 { "LinearGray", LinearGRAYColorspace, UndefinedOptionFlag, MagickFalse },
478 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
479 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
480 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
481 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
482 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
483 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
484 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
485 { "scRGB", scRGBColorspace, UndefinedOptionFlag, MagickFalse },
486 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
487 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
488 { "xyY", xyYColorspace, UndefinedOptionFlag, MagickFalse },
489 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
490 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
491 { "YDbDr", YDbDrColorspace, UndefinedOptionFlag, MagickFalse },
492 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
493 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
494 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
495 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
496 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
500 { "Undefined", UndefinedComplexOperator, UndefinedOptionFlag, MagickTrue },
501 { "Add", AddComplexOperator, UndefinedOptionFlag, MagickFalse },
502 { "Conjugate", ConjugateComplexOperator, UndefinedOptionFlag, MagickFalse },
503 { "Divide", DivideComplexOperator, UndefinedOptionFlag, MagickFalse },
504 { "MagnitudePhase", MagnitudePhaseComplexOperator, UndefinedOptionFlag, MagickFalse },
505 { "Multiply", MultiplyComplexOperator, UndefinedOptionFlag, MagickFalse },
506 { "RealImaginary", RealImaginaryComplexOperator, UndefinedOptionFlag, MagickFalse },
507 { "Subtract", SubtractComplexOperator, UndefinedOptionFlag, MagickFalse },
508 { (char *) NULL, UndefinedComplexOperator, UndefinedOptionFlag, MagickFalse }
513 Must be ordered lexigraphically.
515 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
516 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
517 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
518 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
519 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
520 { "-format", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
521 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
522 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
523 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
524 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
525 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
526 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
527 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
528 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
529 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
530 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
531 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
532 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
533 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
534 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
535 { "(", 0L, NoImageOperatorFlag, MagickTrue },
536 { ")", 0L, NoImageOperatorFlag, MagickTrue },
537 { "{", 0L, NoImageOperatorFlag, MagickTrue },
538 { "}", 0L, NoImageOperatorFlag, MagickTrue },
539 { "--", 1L, NoImageOperatorFlag, MagickTrue },
540 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
541 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
542 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
543 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
544 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
545 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
546 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
547 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
548 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
549 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
550 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
551 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
552 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
553 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
554 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
555 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
556 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
557 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
558 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
559 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
560 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
561 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
562 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
563 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
564 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
565 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
566 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
567 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
568 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
569 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
570 { "+auto-threshold", 1L, DeprecateOptionFlag, MagickTrue },
571 { "-auto-threshold", 1L, SimpleOperatorFlag, MagickFalse },
572 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
573 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
574 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
575 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
576 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
577 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
578 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
579 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
580 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
581 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
582 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
583 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
584 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
585 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
586 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
587 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
588 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
589 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
590 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
591 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
592 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
593 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
594 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
595 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
596 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
597 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
598 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
599 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
600 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
601 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
602 { "+canny", 1L, DeprecateOptionFlag, MagickTrue },
603 { "-canny", 1L, SimpleOperatorFlag, MagickTrue },
604 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
605 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
606 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
607 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
608 { "+channel", 0L, SimpleOperatorFlag, MagickFalse },
609 { "-channel", 1L, SimpleOperatorFlag, MagickFalse },
610 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
611 { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
612 { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
613 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
614 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
615 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
616 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
617 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
618 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
619 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
620 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
621 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
622 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
623 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
624 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
625 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
626 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
627 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
628 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
629 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
630 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
631 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
632 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
633 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
634 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
635 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
636 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
637 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
638 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
639 { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
640 { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
641 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
642 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
643 { "+compare", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
644 { "-compare", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
645 { "+complex", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
646 { "-complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
647 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
648 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
649 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
650 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
651 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
652 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
653 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
654 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
655 { "+connected-components", 1L, DeprecateOptionFlag, MagickTrue },
656 { "-connected-components", 1L, SimpleOperatorFlag, MagickFalse },
657 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
658 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
659 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
660 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
661 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
662 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
663 { "+copy", 2L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
664 { "-copy", 2L, ListOperatorFlag | FireOptionFlag, MagickFalse },
665 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
666 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
667 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
668 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
669 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
670 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
671 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
672 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
673 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
674 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
675 { "-define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
676 { "+define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
677 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
678 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
679 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
680 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
681 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
682 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
683 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
684 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
685 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
686 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
687 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
688 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
689 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
690 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
691 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
692 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
693 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
694 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
695 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
696 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
697 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
698 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
699 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
700 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
701 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
702 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
703 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
704 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
705 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
706 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
707 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
708 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
709 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
710 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
711 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
712 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
713 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
714 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
715 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
716 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
717 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
718 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
719 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
720 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
721 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
722 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
723 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
724 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
725 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
726 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
727 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
728 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
729 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
730 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
731 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
732 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
733 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
734 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
735 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
736 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
737 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
738 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
739 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
740 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
741 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
742 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
743 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
744 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
745 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
746 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
747 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
748 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
749 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
750 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
751 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
752 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
753 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
754 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
755 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
756 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
757 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
758 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
759 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
760 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
761 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
762 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
763 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
764 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag | NeverInterpretArgsFlag, MagickTrue },
765 { "-fx", 1L, ListOperatorFlag | FireOptionFlag | NeverInterpretArgsFlag, MagickFalse },
766 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
767 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
768 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
769 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
770 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
771 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
772 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
773 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
774 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
775 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
776 { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
777 { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
778 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
779 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
780 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
781 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
782 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
783 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
784 { "+hough-lines", 1L, DeprecateOptionFlag, MagickTrue },
785 { "-hough-lines", 1L, SimpleOperatorFlag, MagickTrue },
786 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
787 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
788 { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
789 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
790 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
791 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
792 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
793 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
794 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
795 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
796 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
797 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
798 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
799 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
800 { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
801 { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
802 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
803 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
804 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
805 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
806 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
807 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
808 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
809 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
810 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
811 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
812 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
813 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
814 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
815 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
816 { "+kuwahara", 0L, DeprecateOptionFlag, MagickTrue },
817 { "-kuwahara", 1L, SimpleOperatorFlag, MagickFalse },
818 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
819 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
820 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
821 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
822 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
823 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
824 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
825 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
826 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
827 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
828 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
829 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
830 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
831 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
832 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
833 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
834 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
835 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
836 { "+local-contrast", 0L, DeprecateOptionFlag, MagickTrue },
837 { "-local-contrast", 1L, SimpleOperatorFlag, MagickFalse },
838 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
839 { "-log", 1L, GlobalOptionFlag, MagickFalse },
840 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
841 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
842 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
843 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
844 { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
845 { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
846 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
847 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
848 { "+mask", 0L, DeprecateOptionFlag | NeverInterpretArgsFlag, MagickFalse },
849 { "-mask", 1L, DeprecateOptionFlag | NeverInterpretArgsFlag, MagickFalse },
850 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
851 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
852 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
853 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
854 { "+mean-shift", 1L, DeprecateOptionFlag, MagickTrue },
855 { "-mean-shift", 1L, SimpleOperatorFlag, MagickTrue },
856 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
857 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
858 { "+metric", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
859 { "-metric", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
860 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
861 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
862 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
863 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
864 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
865 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
866 { "-moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
867 { "+moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
868 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
869 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
870 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
871 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
872 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
873 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
874 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
875 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
876 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
877 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
878 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
879 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
880 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
881 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
882 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
883 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
884 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
885 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
886 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
887 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
888 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
889 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
890 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
891 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
892 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
893 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
894 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
895 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
896 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
897 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
898 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
899 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
900 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
901 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
902 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
903 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
904 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
905 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
906 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
907 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
908 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
909 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
910 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
911 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
912 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
913 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
914 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
915 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
916 { "-preview", 1L, SimpleOperatorFlag, MagickFalse },
917 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
918 { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
919 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
920 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
921 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
922 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
923 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
924 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
925 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
926 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
927 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
928 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
929 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
930 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
931 { "+range-threshold", 1L, DeprecateOptionFlag, MagickTrue },
932 { "-range-threshold", 1L, SimpleOperatorFlag, MagickFalse },
933 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
934 { "+read-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
935 { "-read-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
936 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
937 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
938 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
939 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
940 { "+region", 0L, SimpleOperatorFlag, MagickFalse },
941 { "-region", 1L, SimpleOperatorFlag, MagickFalse },
942 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
943 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
944 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
945 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
946 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
947 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
948 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
949 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
950 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
951 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
952 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
953 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
954 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
955 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
956 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
957 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
958 { "-rotational-blur", 1L, SimpleOperatorFlag, MagickFalse },
959 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
960 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
961 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
962 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
963 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
964 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
965 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
966 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
967 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
968 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
969 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
970 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
971 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
972 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
973 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
974 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
975 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
976 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
977 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
978 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
979 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
980 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
981 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
982 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
983 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
984 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
985 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
986 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
987 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
988 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
989 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
990 { "+set", 1L, NoImageOperatorFlag, MagickFalse },
991 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
992 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
993 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
994 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
995 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
996 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
997 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
998 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
999 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
1000 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
1001 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
1002 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
1003 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
1004 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
1005 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
1006 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
1007 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
1008 { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1009 { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1010 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
1011 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
1012 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1013 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1014 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
1015 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
1016 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
1017 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
1018 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
1019 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
1020 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
1021 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
1022 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
1023 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
1024 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
1025 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
1026 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
1027 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
1028 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
1029 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
1030 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
1031 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
1032 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
1033 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
1034 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1035 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1036 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1037 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
1038 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
1039 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
1040 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
1041 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1042 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
1043 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1044 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
1045 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
1046 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
1047 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
1048 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
1049 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
1050 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
1051 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
1052 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
1053 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
1054 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1055 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
1056 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
1057 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
1058 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
1059 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1060 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
1061 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
1062 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
1063 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
1064 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
1065 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
1066 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
1067 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
1068 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
1069 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
1070 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
1071 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
1072 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
1073 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
1074 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
1075 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
1076 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
1077 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
1078 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
1079 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
1080 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
1081 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
1082 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
1083 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1084 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
1085 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
1086 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
1087 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
1088 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
1089 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
1090 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
1091 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
1092 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
1093 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
1094 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
1095 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
1096 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
1097 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
1098 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
1099 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
1100 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
1101 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
1102 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
1103 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
1104 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
1105 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
1106 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
1107 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
1108 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
1109 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
1110 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
1111 { "+wavelet-denoise", 0L, DeprecateOptionFlag, MagickTrue },
1112 { "-wavelet-denoise", 1L, SimpleOperatorFlag, MagickFalse },
1113 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
1114 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
1115 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
1116 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
1117 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
1118 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
1119 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
1120 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
1121 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
1122 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
1123 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
1124 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
1125 { "+write-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1126 { "-write-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
1127 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
1129 ComplianceOptions[] =
1131 { "Undefined", UndefinedCompliance, UndefinedOptionFlag, MagickTrue },
1132 { "CSS", CSSCompliance, UndefinedOptionFlag, MagickFalse },
1133 { "MVG", MVGCompliance, UndefinedOptionFlag, MagickFalse },
1134 { "No", NoCompliance, UndefinedOptionFlag, MagickFalse },
1135 { "SVG", SVGCompliance, UndefinedOptionFlag, MagickFalse },
1136 { "X11", X11Compliance, UndefinedOptionFlag, MagickFalse },
1137 { "XPM", XPMCompliance, UndefinedOptionFlag, MagickFalse },
1138 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
1142 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
1143 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
1144 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
1145 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
1146 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
1147 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
1148 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
1149 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
1150 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
1151 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
1152 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
1153 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
1154 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
1155 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
1156 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
1157 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
1158 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
1159 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
1160 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
1161 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
1162 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
1163 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
1164 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
1165 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
1166 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
1167 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
1168 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
1169 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
1170 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
1171 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
1172 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
1173 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
1174 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
1175 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1176 { "HardMix", HardMixCompositeOp, UndefinedOptionFlag, MagickFalse },
1177 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
1178 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
1179 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
1180 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
1181 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
1182 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
1183 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
1184 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1185 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
1186 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
1187 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
1188 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
1189 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
1190 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
1191 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
1192 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
1193 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
1194 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
1195 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
1196 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
1197 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1198 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1199 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
1200 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
1201 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
1202 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
1203 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1204 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
1205 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
1206 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
1207 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
1208 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
1209 { "Stereo", StereoCompositeOp, UndefinedOptionFlag, MagickFalse },
1210 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
1211 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
1212 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
1213 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
1214 { "Subtract", ModulusSubtractCompositeOp, DeprecateOptionFlag, MagickTrue },
1215 { "Add", ModulusAddCompositeOp, DeprecateOptionFlag, MagickTrue },
1216 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
1217 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
1218 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
1222 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
1223 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
1224 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
1225 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
1226 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
1227 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
1228 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
1229 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
1230 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
1231 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
1232 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
1233 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
1234 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
1235 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
1236 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
1237 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
1238 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
1239 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
1240 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
1241 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
1242 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
1243 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
1244 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
1245 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
1246 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
1250 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
1251 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
1252 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
1253 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
1254 { "String", StringData, UndefinedOptionFlag, MagickFalse },
1255 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
1259 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
1260 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
1261 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
1262 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
1263 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
1264 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
1266 DirectionOptions[] =
1268 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
1269 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
1270 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
1271 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
1275 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
1276 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
1277 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
1278 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
1279 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
1280 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
1281 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
1282 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
1283 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
1287 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
1288 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
1289 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
1290 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
1291 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
1292 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
1293 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
1294 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
1295 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
1296 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
1297 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
1298 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
1299 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
1300 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
1301 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
1302 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
1303 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
1304 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
1305 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
1306 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
1310 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
1311 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
1312 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
1313 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
1314 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
1318 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1319 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
1320 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
1321 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
1325 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
1326 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1327 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1328 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1329 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1330 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1331 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1332 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1333 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1334 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1335 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1336 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1337 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1338 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1339 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1340 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1341 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1342 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1343 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1344 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1345 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1346 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1347 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1348 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1349 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1350 { "RMS", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1351 { "RootMeanSquare", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1352 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1353 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1354 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1355 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1356 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1357 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1358 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1359 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1360 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1361 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1362 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
1366 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1367 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1368 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1369 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1373 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1374 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1375 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1376 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1377 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1378 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
1379 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
1380 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1381 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1382 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
1383 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1384 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1385 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1386 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1387 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1388 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1389 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
1390 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1391 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
1392 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1393 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
1394 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1395 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1396 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1397 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1398 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
1399 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
1400 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1401 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
1402 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
1403 { "CubicSpline", CubicSplineFilter, UndefinedOptionFlag, MagickFalse },
1404 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
1405 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1406 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
1407 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
1411 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1412 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1413 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1414 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1415 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1416 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
1420 { "Undefined", UndefinedGradient, UndefinedOptionFlag, MagickTrue },
1421 { "Linear", LinearGradient, UndefinedOptionFlag, MagickFalse },
1422 { "Radial", RadialGradient, UndefinedOptionFlag, MagickFalse },
1423 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1427 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1428 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1429 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1430 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1431 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1432 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1433 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1434 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1435 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1436 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1437 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1438 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
1439 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
1443 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1444 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1445 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1446 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1447 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1448 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
1450 InterlaceOptions[] =
1452 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1453 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1454 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1455 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1456 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1457 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1458 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1459 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1460 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
1462 InterpolateOptions[] =
1464 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1465 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1466 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1467 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1468 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1469 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1470 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1471 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1472 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1473 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1474 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1475 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1476 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1477 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1478 /* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
1479 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
1483 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1484 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1485 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1486 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1487 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1488 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1489 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
1490 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
1491 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1492 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1493 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1494 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1495 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1496 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1497 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1498 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1499 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1500 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1501 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1502 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1503 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1504 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1505 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1506 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1507 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1508 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1509 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
1510 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1511 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1512 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1513 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1514 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1515 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1516 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1517 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1518 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1519 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
1520 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
1521 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
1525 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1526 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1527 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1528 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1529 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1530 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1531 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1532 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1533 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1534 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1535 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1536 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1537 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1538 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1539 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1540 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1541 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1542 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
1546 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1547 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1548 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1549 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1550 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
1554 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1555 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1556 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1557 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1558 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
1562 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
1563 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
1564 { "AutoThreshold", MagickAutoThresholdOptions, UndefinedOptionFlag, MagickFalse },
1565 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
1566 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
1567 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1568 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1569 { "CLI", MagickCLIOptions, UndefinedOptionFlag, MagickFalse },
1570 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1571 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1572 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1573 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1574 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1575 { "Compliance", MagickComplianceOptions, UndefinedOptionFlag, MagickFalse },
1576 { "Complex", MagickComplexOptions, UndefinedOptionFlag, MagickFalse },
1577 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1578 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1579 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1580 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1581 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1582 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1583 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1584 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1585 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1586 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1587 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1588 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1589 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1590 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1591 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1592 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1593 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1594 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1595 { "Gradient", MagickGradientOptions, UndefinedOptionFlag, MagickFalse },
1596 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
1597 { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
1598 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1599 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1600 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1601 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1602 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1603 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1604 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1605 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1606 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1607 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1608 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1609 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1610 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1611 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1612 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1613 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1614 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1615 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1616 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1617 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
1618 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1619 { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
1620 { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
1621 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
1622 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1623 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1624 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1625 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1626 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1627 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1628 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1629 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1630 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1631 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1632 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1633 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1634 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1635 { "Tool", MagickToolOptions, UndefinedOptionFlag, MagickFalse },
1636 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1637 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1638 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1639 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1640 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1641 { "Weight", MagickWeightOptions, UndefinedOptionFlag, MagickFalse },
1642 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
1646 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1647 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
1648 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
1649 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1650 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1651 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1652 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1653 { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
1654 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1655 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1656 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1657 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1658 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1659 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1660 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
1661 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
1662 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1663 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1664 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1665 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1666 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1667 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1668 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1669 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
1673 { "Undefined", UndefinedErrorMetric, UndefinedOptionFlag, MagickTrue },
1674 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1675 { "DSSIM", StructuralDissimilarityErrorMetric, UndefinedOptionFlag, MagickFalse },
1676 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1677 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1678 { "MEPP", MeanErrorPerPixelErrorMetric, UndefinedOptionFlag, MagickFalse },
1679 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1680 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1681 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1682 { "PHASH", PerceptualHashErrorMetric, UndefinedOptionFlag, MagickFalse },
1683 { "PSNR", PeakSignalToNoiseRatioErrorMetric, UndefinedOptionFlag, MagickFalse },
1684 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1685 { "SSIM", StructuralSimilarityErrorMetric, UndefinedOptionFlag, MagickFalse },
1686 { (char *) NULL, UndefinedErrorMetric, UndefinedOptionFlag, MagickFalse }
1690 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1691 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1692 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1693 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1694 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1695 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1696 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1700 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1701 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1702 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1703 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1704 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
1706 MorphologyOptions[] =
1708 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1709 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1710 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1711 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1712 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1713 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1714 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1715 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1716 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1717 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1718 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1719 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1720 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1721 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1722 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1723 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1724 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1725 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1726 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1727 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1728 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
1729 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1730 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1731 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1732 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1733 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
1734 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1735 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
1736 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1737 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
1741 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1742 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1743 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1744 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1745 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1746 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1747 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1748 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1749 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
1751 OrientationOptions[] =
1753 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1754 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1755 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1756 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1757 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1758 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1759 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1760 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1761 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1762 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
1764 PixelChannelOptions[] =
1766 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
1767 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1768 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1769 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1770 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1771 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1772 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1773 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1774 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
1775 { "CompositeMask", CompositeMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1776 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1777 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1778 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1779 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
1780 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1781 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1782 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1783 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
1784 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1785 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1786 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1787 { "Meta", MetaPixelChannel, UndefinedOptionFlag, MagickFalse },
1788 { "O", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
1789 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1790 { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1791 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1792 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
1793 { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
1794 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1795 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1796 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1798 PixelIntensityOptions[] =
1800 { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
1801 { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1802 { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1803 { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1804 { "Mean", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1805 { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1806 { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1807 { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1808 { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1809 { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1810 { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1811 { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1813 PixelMaskOptions[] =
1815 { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1816 { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1817 { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1818 { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1819 { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1820 { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1822 PixelTraitOptions[] =
1824 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1825 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1826 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1827 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1828 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1830 PolicyDomainOptions[] =
1832 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1833 { "Cache", CachePolicyDomain, UndefinedOptionFlag, MagickFalse },
1834 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1835 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1836 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1837 { "Module", ModulePolicyDomain, UndefinedOptionFlag, MagickFalse },
1838 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1839 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1840 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1841 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
1843 PolicyRightsOptions[] =
1845 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1846 { "All", AllPolicyRights, UndefinedOptionFlag, MagickFalse },
1847 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1848 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1849 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1850 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1851 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
1855 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1856 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1857 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1858 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1859 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1860 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1861 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1862 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1863 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1864 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1865 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1866 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1867 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1868 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1869 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1870 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1871 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1872 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1873 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1874 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1875 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1876 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1877 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1878 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1879 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1880 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1881 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1882 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1883 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1884 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1885 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
1887 PrimitiveOptions[] =
1889 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1890 { "Alpha", AlphaPrimitive, UndefinedOptionFlag, MagickFalse },
1891 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1892 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1893 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1894 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1895 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1896 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1897 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1898 { "Matte", AlphaPrimitive, UndefinedOptionFlag, MagickFalse },
1899 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1900 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1901 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1902 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1903 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1904 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1905 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1906 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
1908 QuantumFormatOptions[] =
1910 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1911 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1912 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1913 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1914 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
1916 ResolutionOptions[] =
1918 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1919 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1920 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1921 { "1", UndefinedResolution, UndefinedOptionFlag, MagickFalse },
1922 { "2", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1923 { "3", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1924 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
1928 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1929 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1930 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1931 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1932 { "Height", HeightResource, UndefinedOptionFlag, MagickFalse },
1933 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1934 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1935 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1936 { "Throttle", ThrottleResource, UndefinedOptionFlag, MagickFalse },
1937 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1938 { "Width", WidthResource, UndefinedOptionFlag, MagickFalse },
1939 { "ListLength", ListLengthResource, UndefinedOptionFlag, MagickFalse },
1940 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1942 SparseColorOptions[] =
1944 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1945 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1946 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
1947 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
1948 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1949 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1950 { "Manhattan", ManhattanColorInterpolate, UndefinedOptionFlag, MagickFalse },
1951 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1953 StatisticOptions[] =
1955 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1956 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1957 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1958 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1959 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1960 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1961 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
1962 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
1963 { "RootMeanSquare", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
1964 { "RMS", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
1965 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1966 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
1970 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1971 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1972 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1973 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
1974 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
1975 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
1976 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1977 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1978 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
1982 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1983 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1984 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1985 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1986 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1987 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1988 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1989 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1990 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1991 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1992 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1993 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
1997 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1998 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1999 { "Bold", BoldStyle, UndefinedOptionFlag, MagickFalse },
2000 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
2001 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
2002 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
2003 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
2007 { "animate", 0, UndefinedOptionFlag, MagickFalse },
2008 { "compare", 0, UndefinedOptionFlag, MagickFalse },
2009 { "composite", 0, UndefinedOptionFlag, MagickFalse },
2010 { "conjure", 0, UndefinedOptionFlag, MagickFalse },
2011 { "convert", 0, UndefinedOptionFlag, MagickFalse },
2012 { "display", 0, UndefinedOptionFlag, MagickFalse },
2013 { "identify", 0, UndefinedOptionFlag, MagickFalse },
2014 { "import", 0, UndefinedOptionFlag, MagickFalse },
2015 { "mogrify", 0, UndefinedOptionFlag, MagickFalse },
2016 { "montage", 0, UndefinedOptionFlag, MagickFalse },
2017 { "stream", 0, UndefinedOptionFlag, MagickFalse },
2018 { (char *) NULL, 0, UndefinedOptionFlag, MagickFalse }
2022 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
2023 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
2024 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
2025 { "ColorSeparationAlpha", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
2026 { "ColorSeparationMatte", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
2027 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
2028 { "GrayscaleAlpha", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
2029 { "GrayscaleMatte", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
2030 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
2031 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
2032 { "PaletteBilevelAlpha", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
2033 { "PaletteBilevelMatte", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
2034 { "PaletteAlpha", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
2035 { "PaletteMatte", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
2036 { "TrueColorAlpha", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
2037 { "TrueColorMatte", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
2038 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
2039 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
2043 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
2044 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
2045 { "Colorspace", ColorspaceValidate, UndefinedOptionFlag, MagickFalse },
2046 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
2047 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
2048 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
2049 { "FormatsDisk", FormatsDiskValidate, UndefinedOptionFlag, MagickFalse },
2050 { "FormatsMap", FormatsMapValidate, UndefinedOptionFlag, MagickFalse },
2051 { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
2052 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
2053 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
2054 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
2055 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
2056 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
2057 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
2059 VirtualPixelOptions[] =
2061 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
2062 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2063 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2064 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
2065 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2066 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2067 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2068 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2069 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2070 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2071 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2072 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2073 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2074 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2075 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2076 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2077 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2078 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
2079 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
2083 { "Undefined", 0L, UndefinedOptionFlag, MagickTrue },
2084 { "Thin", 100L, UndefinedOptionFlag, MagickFalse },
2085 { "ExtraLight", 200L, UndefinedOptionFlag, MagickFalse },
2086 { "UltraLight", 200L, UndefinedOptionFlag, MagickFalse },
2087 { "Light", 300L, DeprecateOptionFlag, MagickTrue },
2088 { "Normal", 400L, UndefinedOptionFlag, MagickFalse },
2089 { "Regular", 400L, UndefinedOptionFlag, MagickFalse },
2090 { "Medium", 500L, UndefinedOptionFlag, MagickFalse },
2091 { "DemiBold", 600L, UndefinedOptionFlag, MagickFalse },
2092 { "SemiBold", 600L, UndefinedOptionFlag, MagickFalse },
2093 { "Bold", 700L, UndefinedOptionFlag, MagickFalse },
2094 { "ExtraBold", 800L, UndefinedOptionFlag, MagickFalse },
2095 { "UltraBold", 800L, UndefinedOptionFlag, MagickFalse },
2096 { "Heavy", 900L, UndefinedOptionFlag, MagickFalse },
2097 { "Black", 900L, UndefinedOptionFlag, MagickFalse },
2098 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
2102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2106 % C l o n e I m a g e O p t i o n s %
2110 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2112 % CloneImageOptions() clones all global image options, to another image_info
2114 % The format of the CloneImageOptions method is:
2116 % MagickBooleanType CloneImageOptions(ImageInfo *image_info,
2117 % const ImageInfo *clone_info)
2119 % A description of each parameter follows:
2121 % o image_info: the image info to recieve the cloned options.
2123 % o clone_info: the source image info for options to clone.
2126 MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
2127 const ImageInfo *clone_info)
2129 assert(image_info != (ImageInfo *) NULL);
2130 assert(image_info->signature == MagickCoreSignature);
2131 if (image_info->debug != MagickFalse)
2132 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2133 image_info->filename);
2134 assert(clone_info != (const ImageInfo *) NULL);
2135 assert(clone_info->signature == MagickCoreSignature);
2136 if (clone_info->options != (void *) NULL)
2138 if (image_info->options != (void *) NULL)
2139 DestroyImageOptions(image_info);
2140 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
2141 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
2147 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2151 % D e f i n e I m a g e O p t i o n %
2155 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2157 % DefineImageOption() associates an assignment string of the form
2158 % "key=value" with a global image option. It is equivelent to
2161 % The format of the DefineImageOption method is:
2163 % MagickBooleanType DefineImageOption(ImageInfo *image_info,
2164 % const char *option)
2166 % A description of each parameter follows:
2168 % o image_info: the image info.
2170 % o option: the image option assignment string.
2173 MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
2177 key[MagickPathExtent],
2178 value[MagickPathExtent];
2183 assert(image_info != (ImageInfo *) NULL);
2184 assert(option != (const char *) NULL);
2185 (void) CopyMagickString(key,option,MagickPathExtent);
2186 for (p=key; *p != '\0'; p++)
2191 (void) CopyMagickString(value,p+1,MagickPathExtent);
2193 return(SetImageOption(image_info,key,value));
2197 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2201 % D e l e t e I m a g e O p t i o n %
2205 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2207 % DeleteImageOption() deletes an key from the global image options.
2209 % Returns MagickTrue is the option is found and deleted from the Options.
2211 % The format of the DeleteImageOption method is:
2213 % MagickBooleanType DeleteImageOption(ImageInfo *image_info,
2216 % A description of each parameter follows:
2218 % o image_info: the image info.
2220 % o option: the image option.
2223 MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
2226 assert(image_info != (ImageInfo *) NULL);
2227 assert(image_info->signature == MagickCoreSignature);
2228 if (image_info->debug != MagickFalse)
2229 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2230 image_info->filename);
2231 if (image_info->options == (void *) NULL)
2232 return(MagickFalse);
2233 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
2237 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2241 % D e s t r o y I m a g e O p t i o n s %
2245 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2247 % DestroyImageOptions() destroys all global options and associated memory
2248 % attached to the given image_info image list.
2250 % The format of the DestroyDefines method is:
2252 % void DestroyImageOptions(ImageInfo *image_info)
2254 % A description of each parameter follows:
2256 % o image_info: the image info.
2259 MagickExport void DestroyImageOptions(ImageInfo *image_info)
2261 assert(image_info != (ImageInfo *) NULL);
2262 assert(image_info->signature == MagickCoreSignature);
2263 if (image_info->debug != MagickFalse)
2264 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2265 image_info->filename);
2266 if (image_info->options != (void *) NULL)
2267 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
2271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2275 % G e t I m a g e O p t i o n %
2279 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2281 % GetImageOption() gets a value associated with the global image options.
2283 % The returned string is a constant string in the tree and should NOT be
2284 % freed by the caller.
2286 % The format of the GetImageOption method is:
2288 % const char *GetImageOption(const ImageInfo *image_info,
2289 % const char *option)
2291 % A description of each parameter follows:
2293 % o image_info: the image info.
2295 % o option: the option.
2298 MagickExport const char *GetImageOption(const ImageInfo *image_info,
2301 assert(image_info != (ImageInfo *) NULL);
2302 assert(image_info->signature == MagickCoreSignature);
2303 if (image_info->debug != MagickFalse)
2304 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2305 image_info->filename);
2306 if (image_info->options == (void *) NULL)
2307 return((const char *) NULL);
2308 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
2309 image_info->options,option));
2313 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2317 % G e t C o m m a n d O p t i o n F l a g s %
2321 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2323 % GetCommandOptionFlags() parses a string and returns an enumerated option
2324 % flags(s). Return a value of -1 if no such option is found.
2326 % The format of the GetCommandOptionFlags method is:
2328 % ssize_t GetCommandOptionFlags(const CommandOption option,
2329 % const MagickBooleanType list,const char *options)
2331 % A description of each parameter follows:
2333 % o option: Index to the option table to lookup
2335 % o list: A option other than zero permits more than one option separated by
2338 % o options: One or more options separated by commas.
2342 static const OptionInfo *GetOptionInfo(const CommandOption option)
2346 case MagickAlignOptions: return(AlignOptions);
2347 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
2348 case MagickAutoThresholdOptions: return(AutoThresholdOptions);
2349 case MagickBooleanOptions: return(BooleanOptions);
2350 case MagickCacheOptions: return(CacheOptions);
2351 case MagickChannelOptions: return(ChannelOptions);
2352 case MagickClassOptions: return(ClassOptions);
2353 case MagickCLIOptions: return(CLIOptions);
2354 case MagickClipPathOptions: return(ClipPathOptions);
2355 case MagickColorspaceOptions: return(ColorspaceOptions);
2356 case MagickCommandOptions: return(CommandOptions);
2357 case MagickComplianceOptions: return(ComplianceOptions);
2358 case MagickComplexOptions: return(ComplexOptions);
2359 case MagickComposeOptions: return(ComposeOptions);
2360 case MagickCompressOptions: return(CompressOptions);
2361 case MagickDataTypeOptions: return(DataTypeOptions);
2362 case MagickDebugOptions: return(LogEventOptions);
2363 case MagickDecorateOptions: return(DecorateOptions);
2364 case MagickDirectionOptions: return(DirectionOptions);
2365 case MagickDisposeOptions: return(DisposeOptions);
2366 case MagickDistortOptions: return(DistortOptions);
2367 case MagickDitherOptions: return(DitherOptions);
2368 case MagickEndianOptions: return(EndianOptions);
2369 case MagickEvaluateOptions: return(EvaluateOptions);
2370 case MagickFillRuleOptions: return(FillRuleOptions);
2371 case MagickFilterOptions: return(FilterOptions);
2372 case MagickFunctionOptions: return(FunctionOptions);
2373 case MagickGradientOptions: return(GradientOptions);
2374 case MagickGravityOptions: return(GravityOptions);
2375 case MagickIntentOptions: return(IntentOptions);
2376 case MagickInterlaceOptions: return(InterlaceOptions);
2377 case MagickInterpolateOptions: return(InterpolateOptions);
2378 case MagickKernelOptions: return(KernelOptions);
2379 case MagickLayerOptions: return(LayerOptions);
2380 case MagickLineCapOptions: return(LineCapOptions);
2381 case MagickLineJoinOptions: return(LineJoinOptions);
2382 case MagickListOptions: return(ListOptions);
2383 case MagickLogEventOptions: return(LogEventOptions);
2384 case MagickMetricOptions: return(MetricOptions);
2385 case MagickMethodOptions: return(MethodOptions);
2386 case MagickModeOptions: return(ModeOptions);
2387 case MagickMorphologyOptions: return(MorphologyOptions);
2388 case MagickNoiseOptions: return(NoiseOptions);
2389 case MagickOrientationOptions: return(OrientationOptions);
2390 case MagickPixelChannelOptions: return(PixelChannelOptions);
2391 case MagickPixelIntensityOptions: return(PixelIntensityOptions);
2392 case MagickPixelMaskOptions: return(PixelMaskOptions);
2393 case MagickPixelTraitOptions: return(PixelTraitOptions);
2394 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
2395 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
2396 case MagickPreviewOptions: return(PreviewOptions);
2397 case MagickPrimitiveOptions: return(PrimitiveOptions);
2398 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
2399 case MagickResolutionOptions: return(ResolutionOptions);
2400 case MagickResourceOptions: return(ResourceOptions);
2401 case MagickSparseColorOptions: return(SparseColorOptions);
2402 case MagickStatisticOptions: return(StatisticOptions);
2403 case MagickStorageOptions: return(StorageOptions);
2404 case MagickStretchOptions: return(StretchOptions);
2405 case MagickToolOptions: return(ToolOptions);
2406 case MagickStyleOptions: return(StyleOptions);
2407 case MagickTypeOptions: return(TypeOptions);
2408 case MagickValidateOptions: return(ValidateOptions);
2409 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
2410 case MagickWeightOptions: return(WeightOptions);
2413 return((const OptionInfo *) NULL);
2416 MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
2417 const MagickBooleanType list,const char *options)
2420 token[MagickPathExtent];
2444 option_info=GetOptionInfo(option);
2445 if (option_info == (const OptionInfo *) NULL)
2446 return(UndefinedOptionFlag);
2449 if (strchr(options,'|') != (char *) NULL)
2451 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2453 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2456 negate=(*p == '!') ? MagickTrue : MagickFalse;
2457 if (negate != MagickFalse)
2460 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2463 if ((q-token) >= (MagickPathExtent-1))
2468 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2469 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2471 command_info=option_info+i;
2472 if ((command_info->mnemonic == (const char *) NULL) &&
2473 ((strchr(token+1,'-') != (char *) NULL) ||
2474 (strchr(token+1,'_') != (char *) NULL)))
2476 while ((q=strchr(token+1,'-')) != (char *) NULL)
2477 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
2478 while ((q=strchr(token+1,'_')) != (char *) NULL)
2479 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
2480 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2481 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2483 command_info=option_info+i;
2485 if (command_info->mnemonic == (const char *) NULL)
2487 if (negate != MagickFalse)
2488 option_types=option_types &~ command_info->flags;
2490 option_types=option_types | command_info->flags;
2491 if (list == MagickFalse)
2494 return(option_types);
2498 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2502 % G e t C o m m a n d O p t i o n I n f o %
2506 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2508 % GetCommandOptionInfo() returns a pointer to the matching OptionInfo entry
2509 % for the "CommandOptions" table. It returns both the type (argument count)
2510 % and flags (argument type).
2512 % The format of the GetCommandOptionInfo method is:
2514 % const char **GetCommandOptionInfo(const char *option)
2516 % A description of each parameter follows:
2518 % o option: the option.
2521 MagickExport const OptionInfo *GetCommandOptionInfo(const char *option)
2526 for (i=0; CommandOptions[i].mnemonic != (char *) NULL; i++)
2527 if (LocaleCompare(option,CommandOptions[i].mnemonic) == 0)
2529 return(CommandOptions+i);
2533 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2537 % G e t C o m m a n d O p t i o n s %
2541 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2543 % GetCommandOptions() returns a list of command options.
2545 % The format of the GetCommandOptions method is:
2547 % const char **GetCommandOptions(const CommandOption option)
2549 % A description of each parameter follows:
2551 % o option: the option.
2554 MagickExport char **GetCommandOptions(const CommandOption option)
2565 option_info=GetOptionInfo(option);
2566 if (option_info == (const OptionInfo *) NULL)
2567 return((char **) NULL);
2568 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2569 options=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*options));
2570 if (options == (char **) NULL)
2571 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2572 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2573 options[i]=AcquireString(option_info[i].mnemonic);
2574 options[i]=(char *) NULL;
2579 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2583 % G e t N e x t I m a g e O p t i o n %
2587 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2589 % GetNextImageOption() gets the next global option value.
2591 % The format of the GetNextImageOption method is:
2593 % char *GetNextImageOption(const ImageInfo *image_info)
2595 % A description of each parameter follows:
2597 % o image_info: the image info.
2600 MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2602 assert(image_info != (ImageInfo *) NULL);
2603 assert(image_info->signature == MagickCoreSignature);
2604 if (image_info->debug != MagickFalse)
2605 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2606 image_info->filename);
2607 if (image_info->options == (void *) NULL)
2608 return((char *) NULL);
2609 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2613 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2617 % I s C o m m a n d O p t i o n %
2621 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2623 % IsCommandOption() returns MagickTrue if the option begins with a - or + and
2624 % the first character that follows is alphanumeric.
2626 % The format of the IsCommandOption method is:
2628 % MagickBooleanType IsCommandOption(const char *option)
2630 % A description of each parameter follows:
2632 % o option: the option.
2635 MagickExport MagickBooleanType IsCommandOption(const char *option)
2637 assert(option != (const char *) NULL);
2638 if ((*option != '-') && (*option != '+'))
2639 return(MagickFalse);
2640 if (strlen(option) == 1)
2641 return(((*option == '{') || (*option == '}') || (*option == '[') ||
2642 (*option == ']')) ? MagickTrue : MagickFalse);
2644 if (isalpha((int) ((unsigned char) *option)) == 0)
2645 return(MagickFalse);
2650 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2654 % C o m m a n d O p t i o n T o M n e m o n i c %
2658 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2660 % CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
2662 % The format of the CommandOptionToMnemonic method is:
2664 % const char *CommandOptionToMnemonic(const CommandOption option,
2665 % const ssize_t type)
2667 % A description of each parameter follows:
2669 % o option: the option.
2671 % o type: one or more values separated by commas.
2674 MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
2683 option_info=GetOptionInfo(option);
2684 if (option_info == (const OptionInfo *) NULL)
2685 return((const char *) NULL);
2686 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2687 if (type == option_info[i].type)
2689 if (option_info[i].mnemonic == (const char *) NULL)
2690 return("Unrecognized");
2691 return(option_info[i].mnemonic);
2695 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2699 % I s O p t i o n M e m b e r %
2703 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2705 % IsOptionMember() returns MagickTrue if the option is a member of the options
2706 % list (e.g. ICC is a member of xmp,icc,iptc).
2708 % The format of the IsOptionMember function is:
2710 % MagickBooleanType IsOptionMember(const char *option,
2711 % const char *options)
2713 % A description of each parameter follows:
2715 % o option: an option or option expression (e.g. ICC or *).
2717 % o options: one or more options separated by commas.
2720 MagickExport MagickBooleanType IsOptionMember(const char *option,
2721 const char *options)
2737 Is option a member of the options list?
2739 if (options == (const char *) NULL)
2740 return(MagickFalse);
2741 string=ConstantString(options);
2742 (void) SubstituteString(&string,","," ");
2743 option_list=StringToArgv(string,&number_options);
2744 string=DestroyString(string);
2745 if (option_list == (char **) NULL)
2746 return(MagickFalse);
2748 option_list[0]=DestroyString(option_list[0]);
2749 for (i=1; i < (ssize_t) number_options; i++)
2751 if ((*option_list[i] == '!') &&
2752 (LocaleCompare(option,option_list[i]+1) == 0))
2754 if (GlobExpression(option,option_list[i],MagickTrue) != MagickFalse)
2759 option_list[i]=DestroyString(option_list[i]);
2761 for ( ; i < (ssize_t) number_options; i++)
2762 option_list[i]=DestroyString(option_list[i]);
2763 option_list=(char **) RelinquishMagickMemory(option_list);
2768 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2772 % L i s t C o m m a n d O p t i o n s %
2776 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2778 % ListCommandOptions() lists the contents of enumerated option type(s).
2780 % The format of the ListCommandOptions method is:
2782 % MagickBooleanType ListCommandOptions(FILE *file,
2783 % const CommandOption option,ExceptionInfo *exception)
2785 % A description of each parameter follows:
2787 % o file: list options to this file handle.
2789 % o option: list these options.
2791 % o exception: return any errors or warnings in this structure.
2794 MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2795 const CommandOption option,ExceptionInfo *magick_unused(exception))
2803 magick_unreferenced(exception);
2804 if (file == (FILE *) NULL)
2806 option_info=GetOptionInfo(option);
2807 if (option_info == (const OptionInfo *) NULL)
2808 return(MagickFalse);
2809 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2811 if (option_info[i].stealth != MagickFalse)
2813 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
2819 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2823 % P a r s e C h a n n e l O p t i o n %
2827 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2829 % ParseChannelOption() parses a string and returns an enumerated channel
2832 % The format of the ParseChannelOption method is:
2834 % ssize_t ParseChannelOption(const char *channels)
2836 % A description of each parameter follows:
2838 % o options: One or more values separated by commas.
2841 MagickExport ssize_t ParseChannelOption(const char *channels)
2849 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
2853 for (i=0; i < (ssize_t) strlen(channels); i++)
2855 switch (channels[i])
2860 channel|=AlphaChannel;
2866 channel|=BlueChannel;
2872 channel|=CyanChannel;
2878 channel|=GreenChannel;
2884 channel|=BlackChannel;
2890 channel|=MagentaChannel;
2896 channel|=AlphaChannel; /* depreciate */
2902 channel|=RedChannel;
2908 channel|=YellowChannel;
2917 Gather the additional channel flags and merge with shorthand.
2919 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
2933 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2937 % P a r s e C o m m a n d O p t i o n %
2941 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2943 % ParseCommandOption() parses a string and returns an enumerated option
2944 % type(s). Return a value of -1 if no such option is found.
2946 % The format of the ParseCommandOption method is:
2948 % ssize_t ParseCommandOption(const CommandOption option,
2949 % const MagickBooleanType list,const char *options)
2951 % A description of each parameter follows:
2953 % o option: Index to the option table to lookup
2955 % o list: A option other than zero permits more than one option separated by
2958 % o options: One or more options separated by commas.
2961 MagickExport ssize_t ParseCommandOption(const CommandOption option,
2962 const MagickBooleanType list,const char *options)
2965 token[MagickPathExtent];
2989 if ((options == (const char *) NULL) || (*options == '\0'))
2991 option_info=GetOptionInfo(option);
2992 if (option_info == (const OptionInfo *) NULL)
2996 if (strchr(options,'|') != (char *) NULL)
2998 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
3000 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
3003 negate=(*p == '!') ? MagickTrue : MagickFalse;
3004 if (negate != MagickFalse)
3007 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
3010 if ((q-token) >= (MagickPathExtent-1))
3015 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
3016 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
3018 command_info=option_info+i;
3019 if ((command_info->mnemonic == (const char *) NULL) && (*token != '\0') &&
3020 ((strchr(token+1,'-') != (char *) NULL) ||
3021 (strchr(token+1,'_') != (char *) NULL)))
3023 while ((q=strchr(token+1,'-')) != (char *) NULL)
3024 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
3025 while ((q=strchr(token+1,'_')) != (char *) NULL)
3026 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
3027 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
3028 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
3030 command_info=option_info+i;
3032 if (command_info->mnemonic == (const char *) NULL)
3034 if (negate != MagickFalse)
3035 option_types=option_types &~ command_info->type;
3037 option_types=option_types | command_info->type;
3038 if (list == MagickFalse)
3041 return(option_types);
3045 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3049 % P a r s e P i x e l C h a n n e l O p t i o n %
3053 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3055 % ParsePixelChannelOption() parses a string and returns an enumerated pixel
3058 % The format of the ParsePixelChannelOption method is:
3060 % ssize_t ParsePixelChannelOption(const char *channels)
3062 % A description of each parameter follows:
3064 % o channels: One or more channels separated by commas.
3067 MagickExport ssize_t ParsePixelChannelOption(const char *channels)
3071 token[MagickPathExtent];
3076 GetNextToken(channels,(const char **) NULL,MagickPathExtent,token);
3077 if ((*token == ';') || (*token == '|'))
3078 return(RedPixelChannel);
3079 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
3083 channel=(ssize_t) InterpretLocaleValue(token,&q);
3084 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
3090 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3094 % R e m o v e I m a g e O p t i o n %
3098 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3100 % RemoveImageOption() removes an option from the image and returns its value.
3102 % In this case the ConstantString() value returned should be freed by the
3103 % caller when finished.
3105 % The format of the RemoveImageOption method is:
3107 % char *RemoveImageOption(ImageInfo *image_info,const char *option)
3109 % A description of each parameter follows:
3111 % o image_info: the image info.
3113 % o option: the image option.
3116 MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
3121 assert(image_info != (ImageInfo *) NULL);
3122 assert(image_info->signature == MagickCoreSignature);
3123 if (image_info->debug != MagickFalse)
3124 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3125 image_info->filename);
3126 if (image_info->options == (void *) NULL)
3127 return((char *) NULL);
3128 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
3129 image_info->options,option);
3134 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3138 % R e s e t I m a g e O p t i o n %
3142 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3144 % ResetImageOptions() resets the image_info option. That is, it deletes
3145 % all global options associated with the image_info structure.
3147 % The format of the ResetImageOptions method is:
3149 % ResetImageOptions(ImageInfo *image_info)
3151 % A description of each parameter follows:
3153 % o image_info: the image info.
3156 MagickExport void ResetImageOptions(const ImageInfo *image_info)
3158 assert(image_info != (ImageInfo *) NULL);
3159 assert(image_info->signature == MagickCoreSignature);
3160 if (image_info->debug != MagickFalse)
3161 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3162 image_info->filename);
3163 if (image_info->options == (void *) NULL)
3165 ResetSplayTree((SplayTreeInfo *) image_info->options);
3169 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3173 % R e s e t I m a g e O p t i o n I t e r a t o r %
3177 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3179 % ResetImageOptionIterator() resets the image_info values iterator. Use it
3180 % in conjunction with GetNextImageOption() to iterate over all the values
3181 % associated with an image option.
3183 % The format of the ResetImageOptionIterator method is:
3185 % ResetImageOptionIterator(ImageInfo *image_info)
3187 % A description of each parameter follows:
3189 % o image_info: the image info.
3192 MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
3194 assert(image_info != (ImageInfo *) NULL);
3195 assert(image_info->signature == MagickCoreSignature);
3196 if (image_info->debug != MagickFalse)
3197 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3198 image_info->filename);
3199 if (image_info->options == (void *) NULL)
3201 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
3205 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3209 % S e t I m a g e O p t i o n %
3213 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3215 % SetImageOption() associates an value with an image option.
3217 % The format of the SetImageOption method is:
3219 % MagickBooleanType SetImageOption(ImageInfo *image_info,
3220 % const char *option,const char *value)
3222 % A description of each parameter follows:
3224 % o image_info: the image info.
3226 % o option: the image option.
3228 % o values: the image option values.
3231 MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
3232 const char *option,const char *value)
3234 assert(image_info != (ImageInfo *) NULL);
3235 assert(image_info->signature == MagickCoreSignature);
3236 if (image_info->debug != MagickFalse)
3237 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
3238 image_info->filename);
3240 Specific global option settings.
3242 if (LocaleCompare(option,"size") == 0) {
3243 (void) CloneString(&image_info->size,value);
3247 Create tree if needed - specify how key,values are to be freed.
3249 if (image_info->options == (void *) NULL)
3250 image_info->options=NewSplayTree(CompareSplayTreeString,
3251 RelinquishMagickMemory,RelinquishMagickMemory);
3253 Delete Option if NULL -- empty string values are valid!
3255 if (value == (const char *) NULL)
3256 return(DeleteImageOption(image_info,option));
3258 Add option to splay-tree.
3260 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
3261 ConstantString(option),ConstantString(value)));