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