blob: ac9457278dfb1987fe6902b151c4f3de910bdeb6 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
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% John Cristy %
17% March 2000 %
18% %
19% %
cristy45ef08f2012-12-07 13:13:34 +000020% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
cristy3ed852e2009-09-05 21:47:34 +000021% 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% http://www.imagemagick.org/script/license.php %
27% %
28% Unless required by applicable law or agreed to in writing, software %
29% distributed under the License is distributed on an "AS IS" BASIS, %
30% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
31% See the License for the specific language governing permissions and %
32% limitations under the License. %
33% %
34%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35%
36%
37%
38*/
39
40/*
41 Include declarations.
42*/
cristy4c08aed2011-07-01 19:47:50 +000043#include "MagickCore/studio.h"
44#include "MagickCore/artifact.h"
45#include "MagickCore/cache.h"
46#include "MagickCore/color.h"
47#include "MagickCore/compare.h"
48#include "MagickCore/constitute.h"
49#include "MagickCore/distort.h"
50#include "MagickCore/draw.h"
51#include "MagickCore/effect.h"
52#include "MagickCore/exception.h"
53#include "MagickCore/exception-private.h"
54#include "MagickCore/fx.h"
55#include "MagickCore/gem.h"
56#include "MagickCore/geometry.h"
57#include "MagickCore/image.h"
58#include "MagickCore/image-private.h"
59#include "MagickCore/layer.h"
60#include "MagickCore/mime-private.h"
61#include "MagickCore/memory_.h"
62#include "MagickCore/monitor.h"
63#include "MagickCore/montage.h"
64#include "MagickCore/morphology.h"
65#include "MagickCore/option.h"
66#include "MagickCore/policy.h"
67#include "MagickCore/property.h"
68#include "MagickCore/quantize.h"
69#include "MagickCore/quantum.h"
70#include "MagickCore/resample.h"
71#include "MagickCore/resource_.h"
72#include "MagickCore/splay-tree.h"
73#include "MagickCore/statistic.h"
74#include "MagickCore/string_.h"
75#include "MagickCore/token.h"
76#include "MagickCore/utility.h"
cristy3ed852e2009-09-05 21:47:34 +000077
78/*
79 ImageMagick options.
80*/
81static const OptionInfo
82 AlignOptions[] =
83 {
cristy042ee782011-04-22 18:48:30 +000084 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
85 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
86 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
87 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
88 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
89 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
90 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
91 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +000092 },
cristy288a3532012-08-28 00:19:44 +000093 AlphaChannelOptions[] =
cristy3ed852e2009-09-05 21:47:34 +000094 {
cristy042ee782011-04-22 18:48:30 +000095 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
96 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
97 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
98 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
99 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
100 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy61808382012-01-30 01:24:49 +0000104 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000105 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
106 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000107 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000108 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
109 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000110 },
111 BooleanOptions[] =
112 {
anthony72feaa62012-01-17 06:46:23 +0000113 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
114 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
115 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
116 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
117 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000118 },
cristy947cef22013-01-17 14:16:40 +0000119 CacheOptions[] =
120 {
121 { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
122 { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
123 { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
124 { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
125 { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
126 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
127 },
cristy3ed852e2009-09-05 21:47:34 +0000128 ChannelOptions[] =
129 {
cristy042ee782011-04-22 18:48:30 +0000130 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000131 /* special */
cristy9a9230e2011-04-26 14:56:14 +0000132 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000133 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
134 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
135 /* individual channel */
136 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy953c4bd2012-02-24 01:04:04 +0000137 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000138 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000139 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000140 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000141 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000142 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000143 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000144 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000145 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000146 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000147 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000148 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
149 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000150 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
151 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000152 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000153 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000154 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000155 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
156 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
157 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000158 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000159 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000160 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000161 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000162 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000163 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000164 },
165 ClassOptions[] =
166 {
cristy042ee782011-04-22 18:48:30 +0000167 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
168 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
169 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
170 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000171 },
172 ClipPathOptions[] =
173 {
cristy042ee782011-04-22 18:48:30 +0000174 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
175 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
176 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
177 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
178 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000179 },
180 CommandOptions[] =
181 {
anthony686b1a32012-02-15 14:50:53 +0000182 /* WARNING: this must be sorted by name, then by switch character
cristy87c02f42012-02-24 00:19:10 +0000183 So that it can be referenced using a binary search for speed.
184 See GetCommandOptionInfo() below for details.
anthony686b1a32012-02-15 14:50:53 +0000185
186 Check on sort...
187 magick -list command > t1
188 sort -k 1.2 t1 | diff t1 -
189 Should not show any differences...
190 */
anthony464f1c42012-04-22 08:51:01 +0000191 { "(", 0L, NoImageOperatorFlag, MagickTrue },
192 { ")", 0L, NoImageOperatorFlag, MagickTrue },
193 { "{", 0L, NoImageOperatorFlag, MagickTrue },
194 { "}", 0L, NoImageOperatorFlag, MagickTrue },
195 { "--", 1L, NoImageOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000196 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000197 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000198 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000199 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000200 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000201 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000202 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
203 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000204 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
205 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony31f1bf72012-01-30 12:37:22 +0000206 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000207 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
208 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000209 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000210 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000211 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000212 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
213 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000214 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
215 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000216 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
anthony92c93bd2012-03-19 14:02:47 +0000217 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000218 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
219 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000220 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000221 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000222 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000223 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000224 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000225 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000226 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000227 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000228 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
229 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000230 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
231 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000232 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
anthony9a6469e2011-05-04 11:07:31 +0000233 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000234 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
235 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
236 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
237 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000238 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000239 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000240 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
241 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000242 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
243 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000244 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
245 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000246 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000247 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000248 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000249 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000250 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
251 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000252 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
253 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000254 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
255 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000256 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000257 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000258 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
259 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000260 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
261 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000262 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000263 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonydf9471d2012-03-22 03:53:05 +0000264 { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
265 { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000266 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyf57e5482013-02-17 22:11:27 +0000267 { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
268 { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000269 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000270 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000271 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000272 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
273 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
274 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000275 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
276 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000277 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
278 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
279 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
280 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000281 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000282 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000283 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000284 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000285 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000286 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000287 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000288 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000289 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
290 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000291 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000292 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
293 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
294 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
cristy63e9ac82012-07-04 13:36:05 +0000295 { "+combine", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy46f354c2012-07-04 13:31:29 +0000296 { "-combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000297 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
298 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000299 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
300 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000301 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000302 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000303 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
304 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000305 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
anthonyebb73a22012-03-22 14:25:52 +0000306 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000307 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
308 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000309 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000310 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000311 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000312 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000313 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000314 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000315 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000316 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000317 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
318 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000319 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000320 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000321 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000322 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
cristy6732a602012-10-05 14:41:58 +0000323 { "+define", 1L, ImageInfoOptionFlag | FireOptionFlag, MagickFalse },
324 { "-define", 1L, ImageInfoOptionFlag | FireOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000325 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
326 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000327 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
328 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000329 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000330 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000331 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
332 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000333 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
334 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000335 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
336 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000337 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000338 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000339 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
340 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000341 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
342 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000343 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000344 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000345 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
346 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000347 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
348 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000349 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
350 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000351 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
352 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000353 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
354 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000355 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000356 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
357 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
358 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony9a6469e2011-05-04 11:07:31 +0000359 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
360 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000361 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000362 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000363 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000364 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000365 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000366 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000367 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000368 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000369 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
370 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000371 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000372 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000373 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000374 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000375 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000376 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000377 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000378 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000379 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000380 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000381 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000382 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
383 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000384 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000385 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000386 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
387 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
388 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
389 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000390 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
391 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000392 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
393 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000394 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000395 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000396 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000397 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
398 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
399 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000400 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000401 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000402 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
403 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000404 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
405 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000406 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000407 { "-format", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000408 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000409 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000410 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000411 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000412 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
413 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000414 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000415 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +0000416 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000417 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000418 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000419 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000420 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000421 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
422 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
423 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000424 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
425 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000426 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
427 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000428 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000429 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000430 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
431 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000432 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
433 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
434 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
435 { "-iconic", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000436 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000437 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
438 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
439 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000440 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
441 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000442 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000443 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
444 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
445 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000446 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
447 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
448 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
449 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000450 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
451 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000452 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
453 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000454 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000455 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000456 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
457 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000458 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
459 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000460 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
461 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000462 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000463 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000464 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000465 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
466 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
467 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
468 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
469 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000470 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000471 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000472 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000473 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000474 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000475 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000476 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000477 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000478 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000479 { "-log", 1L, GlobalOptionFlag, MagickFalse },
480 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
481 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000482 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
483 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000484 { "+magnify", 0L, NonMagickOptionFlag, MagickFalse },
485 { "-magnify", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000486 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
487 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000488 { "+mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
489 { "-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000490 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
491 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000492 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
493 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000494 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
495 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
496 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000497 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
anthonycd358fc2012-04-16 13:59:03 +0000498 { "+metric", 0L, ImageInfoOptionFlag, MagickFalse },
499 { "-metric", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000500 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
501 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000502 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000503 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000504 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000505 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
506 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
507 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000508 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000509 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000510 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000511 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000512 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000513 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000514 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000515 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000516 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000517 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000518 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
519 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000520 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
521 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
522 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
523 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
524 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000525 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000526 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
527 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
528 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000529 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000530 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000531 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
532 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000533 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
534 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000535 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000536 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000537 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
538 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
539 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
540 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000541 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
542 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000543 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
544 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000545 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
546 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
cristyf56e6ad2012-11-11 19:29:38 +0000547 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
548 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000549 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000550 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000551 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
552 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
553 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
554 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000555 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000556 { "-print", 1L, ListOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000557 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000558 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
559 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000560 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000561 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
562 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000563 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
564 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000565 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
566 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000567 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000568 { "-radial-blur", 1L, SimpleOperatorFlag, MagickFalse },
569 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
570 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000571 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000572 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000573 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000574 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000575 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000576 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
577 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000578 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
579 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000580 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
581 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000582 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
583 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000584 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
585 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000586 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
587 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000588 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
589 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000590 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000591 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000592 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000593 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000594 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
595 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000596 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000597 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000598 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000599 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000600 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000601 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000602 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000603 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000604 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
605 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000606 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
607 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
608 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
609 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony0da1e9c2012-11-17 05:28:22 +0000610 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
611 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
anthony4837ac22012-05-18 23:39:48 +0000612 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
613 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000614 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000615 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000616 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
617 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000618 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
619 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
620 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
621 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000622 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000623 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
624 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000625 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000626 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000627 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000628 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000629 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000630 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000631 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000632 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthony0da1e9c2012-11-17 05:28:22 +0000633 { "+set", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
634 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000635 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000636 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000637 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000638 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000639 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
640 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000641 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000642 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000643 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000644 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000645 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000646 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
647 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
648 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000649 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
650 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000651 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
652 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000653 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000654 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
655 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
656 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000657 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
658 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000659 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000660 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000661 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000662 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000663 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000664 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000665 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000666 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000667 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000668 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000669 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
670 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000671 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000672 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000673 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000674 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000675 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000676 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000677 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
678 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000679 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000680 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000681 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
682 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000683 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
684 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
685 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
686 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
687 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000688 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000689 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000690 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
691 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
692 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
693 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000694 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
695 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000696 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000697 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000698 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
699 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000700 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000701 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000702 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
703 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000704 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
705 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000706 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
707 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000708 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
709 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000710 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000711 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
712 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
713 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000714 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000715 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000716 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000717 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000718 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000719 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000720 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000721 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000722 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000723 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
724 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
725 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000726 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000727 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000728 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
729 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000730 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000731 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000732 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
733 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000734 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000735 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000736 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
737 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
738 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
739 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000740 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
741 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000742 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000743 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000744 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
745 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000746 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000747 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthonyebb73a22012-03-22 14:25:52 +0000748 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
749 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000750 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
751 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
752 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
753 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000754 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000755 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000756 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000757 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000758 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
759 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000760 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000761 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000762 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
763 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
764 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
765 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000766 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
767 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000768 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000769 },
770 ComposeOptions[] =
771 {
cristy042ee782011-04-22 18:48:30 +0000772 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
773 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
774 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
775 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
776 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
777 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
778 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
779 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
780 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
781 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000782 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000783 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
784 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
785 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
786 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
787 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000789 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
791 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
795 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
796 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
798 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
799 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000804 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000808 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000809 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
816 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
820 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
822 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
823 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
825 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
827 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
828 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
829 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
830 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
831 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
832 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
833 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
834 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
835 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
836 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
837 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000838 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
839 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000840 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
841 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000842 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000843 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000844 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000845 },
846 CompressOptions[] =
847 {
cristy042ee782011-04-22 18:48:30 +0000848 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
849 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
850 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
851 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
852 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
853 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
854 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
855 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
856 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000857 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
858 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000859 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
860 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
861 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
862 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
863 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
864 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
865 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
866 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
867 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
868 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
869 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
870 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
871 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
872 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000873 },
874 ColorspaceOptions[] =
875 {
cristy042ee782011-04-22 18:48:30 +0000876 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000877 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000878 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
879 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
880 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
cristy722fc0c2012-08-04 23:15:43 +0000881 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000882 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
883 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
884 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
885 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy1f099312012-08-29 17:22:14 +0000886 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
cristy09d746f2012-08-29 17:54:59 +0000887 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000888 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
cristycb82c8e2012-08-01 12:54:37 +0000889 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000890 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
891 { "Rec601Luma", Rec601LumaColorspace, UndefinedOptionFlag, MagickFalse },
892 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
893 { "Rec709Luma", Rec709LumaColorspace, UndefinedOptionFlag, MagickFalse },
894 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
895 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
896 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
897 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
898 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
899 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
900 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
901 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
902 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
903 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
904 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000905 },
906 DataTypeOptions[] =
907 {
cristy042ee782011-04-22 18:48:30 +0000908 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
909 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
910 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
911 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
912 { "String", StringData, UndefinedOptionFlag, MagickFalse },
913 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000914 },
915 DecorateOptions[] =
916 {
cristy042ee782011-04-22 18:48:30 +0000917 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
918 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
919 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
920 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
921 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
922 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000923 },
cristyc9b12952010-03-28 01:12:28 +0000924 DirectionOptions[] =
925 {
cristy042ee782011-04-22 18:48:30 +0000926 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
927 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
928 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
929 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000930 },
cristy3ed852e2009-09-05 21:47:34 +0000931 DisposeOptions[] =
932 {
cristy042ee782011-04-22 18:48:30 +0000933 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
934 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
935 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
936 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
937 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
938 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
939 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
940 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
941 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
942 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000943 },
944 DistortOptions[] =
945 {
cristy042ee782011-04-22 18:48:30 +0000946 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
947 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
948 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
949 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
950 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
951 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
952 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
953 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
954 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
955 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
956 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
957 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
958 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
959 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +0000960 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
961 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000962 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
963 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
964 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
965 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000966 },
967 DitherOptions[] =
968 {
cristy042ee782011-04-22 18:48:30 +0000969 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
970 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
971 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
972 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
973 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000974 },
975 EndianOptions[] =
976 {
cristy042ee782011-04-22 18:48:30 +0000977 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
978 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
979 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
980 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000981 },
982 EvaluateOptions[] =
983 {
cristy042ee782011-04-22 18:48:30 +0000984 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
985 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
986 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
987 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
988 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
989 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
990 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
991 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
992 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
993 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
994 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
995 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
996 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
997 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
998 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
999 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1000 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1001 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1002 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1003 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1004 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1005 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1006 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1007 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1008 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1009 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1010 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1011 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1012 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +00001013 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001014 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1015 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1016 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1017 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1018 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1019 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001020 },
1021 FillRuleOptions[] =
1022 {
cristy042ee782011-04-22 18:48:30 +00001023 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1024 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1025 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1026 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001027 },
1028 FilterOptions[] =
1029 {
cristy042ee782011-04-22 18:48:30 +00001030 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1031 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1032 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1033 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1034 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1035 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001036 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001037 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1038 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1039 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001040 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1041 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001042 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1043 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1044 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1045 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1046 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001047 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1048 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
anthonyaa806422012-10-17 00:56:10 +00001049 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1050 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001051 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1052 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1053 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1054 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1055 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001056 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001057 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1058 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001059 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001060 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001061 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1062 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001063 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001064 },
1065 FunctionOptions[] =
1066 {
cristy042ee782011-04-22 18:48:30 +00001067 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1068 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1069 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1070 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1071 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1072 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001073 },
1074 GravityOptions[] =
1075 {
cristy042ee782011-04-22 18:48:30 +00001076 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1077 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1078 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1079 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1080 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1081 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1082 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1083 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1084 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1085 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1086 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1087 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001088 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001089 },
cristy3ed852e2009-09-05 21:47:34 +00001090 IntentOptions[] =
1091 {
cristy042ee782011-04-22 18:48:30 +00001092 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1093 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1094 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1095 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1096 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1097 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001098 },
1099 InterlaceOptions[] =
1100 {
cristy042ee782011-04-22 18:48:30 +00001101 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1102 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1103 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1104 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1105 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1106 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1107 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1108 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1109 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001110 },
1111 InterpolateOptions[] =
1112 {
cristy042ee782011-04-22 18:48:30 +00001113 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1114 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001115 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1116 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1117 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1118 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001119 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001120 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1121 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001122 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1123 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001124 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1125 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001126 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001127/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001128 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001129 },
anthony602ab9b2010-01-05 08:06:50 +00001130 KernelOptions[] =
1131 {
cristy042ee782011-04-22 18:48:30 +00001132 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1133 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1134 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1135 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1136 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1137 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1138 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
anthony40ca0b92012-08-02 13:23:28 +00001139 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001140 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1141 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1142 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1143 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1144 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1145 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1146 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1147 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1148 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1149 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1150 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1151 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1152 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1153 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1154 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1155 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1156 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1157 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1158 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001159 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1160 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1161 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1162 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1163 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1164 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1165 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1166 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1167 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1168 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001169 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001170 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001171 },
cristy3ed852e2009-09-05 21:47:34 +00001172 LayerOptions[] =
1173 {
cristy042ee782011-04-22 18:48:30 +00001174 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1175 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1176 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1177 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1178 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1179 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1180 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1181 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1182 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1183 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1184 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1185 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1186 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1187 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1188 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1189 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1190 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1191 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001192 },
1193 LineCapOptions[] =
1194 {
cristy042ee782011-04-22 18:48:30 +00001195 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1196 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1197 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1198 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1199 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001200 },
1201 LineJoinOptions[] =
1202 {
cristy042ee782011-04-22 18:48:30 +00001203 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1204 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1205 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1206 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1207 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001208 },
1209 ListOptions[] =
1210 {
cristy042ee782011-04-22 18:48:30 +00001211 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
cristy288a3532012-08-28 00:19:44 +00001212 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001213 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
cristy947cef22013-01-17 14:16:40 +00001214 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001215 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1216 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1217 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1218 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1219 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1220 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1221 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1222 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1223 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1224 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1225 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1226 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1227 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1228 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1229 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1230 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1231 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1232 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1233 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1234 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1235 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1236 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1237 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1238 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1239 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1240 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001241 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1242 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1243 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1244 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1245 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1246 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1247 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1248 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1249 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1250 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1251 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1253 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1254 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1255 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1256 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1257 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1258 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1259 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1260 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001261 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1262 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001263 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1264 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1265 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1266 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1267 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1268 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1269 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1270 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1271 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1272 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1273 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1274 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1275 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1276 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1277 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1278 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1279 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1280 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1281 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001282 },
1283 LogEventOptions[] =
1284 {
cristy042ee782011-04-22 18:48:30 +00001285 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1286 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001287 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001288 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1289 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1290 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1291 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1292 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1293 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1294 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1295 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1296 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1297 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1298 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001299 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001300 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1301 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1302 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1303 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1304 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1305 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1306 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1307 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001308 },
1309 MetricOptions[] =
1310 {
cristy042ee782011-04-22 18:48:30 +00001311 { "Undefined", UndefinedMetric, UndefinedOptionFlag, MagickTrue },
1312 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1313 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1314 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1315 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1316 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1317 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1318 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1319 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1320 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1321 { (char *) NULL, UndefinedMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001322 },
1323 MethodOptions[] =
1324 {
cristy042ee782011-04-22 18:48:30 +00001325 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1326 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1327 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1328 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1329 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1330 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1331 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001332 },
1333 ModeOptions[] =
1334 {
cristy042ee782011-04-22 18:48:30 +00001335 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1336 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1337 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1338 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1339 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001340 },
anthony602ab9b2010-01-05 08:06:50 +00001341 MorphologyOptions[] =
1342 {
cristy042ee782011-04-22 18:48:30 +00001343 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1344 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1345 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1346 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1347 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1348 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1349 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1350 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1351 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1352 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1353 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1354 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1355 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1356 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1357 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1358 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1359 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1360 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1361 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1362 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1363 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001364 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1365 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1366 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1367 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1368 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001369 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1370 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001371 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1372 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001373 },
cristy3ed852e2009-09-05 21:47:34 +00001374 NoiseOptions[] =
1375 {
cristy042ee782011-04-22 18:48:30 +00001376 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1377 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1378 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1379 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1380 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1381 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1382 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1383 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1384 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001385 },
1386 OrientationOptions[] =
1387 {
cristy042ee782011-04-22 18:48:30 +00001388 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1389 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1390 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1391 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1392 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1393 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1394 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1395 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1396 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1397 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001398 },
cristy6dcb9b82011-10-23 23:21:25 +00001399 PixelChannelOptions[] =
1400 {
1401 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001402 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001403 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001404 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001405 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001406 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1407 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1408 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1409 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001410 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001411 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1412 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1413 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001414 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001415 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1416 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1417 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001418 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1419 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001420 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1421 { "Mask", MaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001422 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001423 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1424 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001425 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001426 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1427 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1428 },
1429 PixelTraitOptions[] =
1430 {
1431 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1432 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1433 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1434 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1435 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1436 },
cristy3ed852e2009-09-05 21:47:34 +00001437 PolicyDomainOptions[] =
1438 {
cristy042ee782011-04-22 18:48:30 +00001439 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1440 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1441 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1442 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1443 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1444 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1445 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1446 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001447 },
1448 PolicyRightsOptions[] =
1449 {
cristy042ee782011-04-22 18:48:30 +00001450 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1451 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1452 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1453 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1454 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1455 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001456 },
1457 PreviewOptions[] =
1458 {
cristy042ee782011-04-22 18:48:30 +00001459 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1460 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1461 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1462 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1463 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1464 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1465 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1466 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1467 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1468 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1469 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1470 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1471 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1472 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1473 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1474 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1475 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1476 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1477 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1478 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1479 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1480 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1481 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1482 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1483 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1484 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1485 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1486 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1487 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1488 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1489 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001490 },
1491 PrimitiveOptions[] =
1492 {
cristy042ee782011-04-22 18:48:30 +00001493 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1494 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1495 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1496 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1497 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1498 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1499 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1500 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1501 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1502 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1503 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1504 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1505 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1506 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1507 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1508 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1509 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001510 },
1511 QuantumFormatOptions[] =
1512 {
cristy042ee782011-04-22 18:48:30 +00001513 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1514 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1515 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1516 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1517 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001518 },
1519 ResolutionOptions[] =
1520 {
cristy042ee782011-04-22 18:48:30 +00001521 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1522 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1523 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1524 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001525 },
1526 ResourceOptions[] =
1527 {
cristy042ee782011-04-22 18:48:30 +00001528 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1529 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1530 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1531 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1532 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1533 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1534 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1535 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1536 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001537 },
1538 SparseColorOptions[] =
1539 {
cristy042ee782011-04-22 18:48:30 +00001540 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1541 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1542 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001543 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001544 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1545 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1546 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001547 },
cristy0834d642011-03-18 18:26:08 +00001548 StatisticOptions[] =
1549 {
cristy042ee782011-04-22 18:48:30 +00001550 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1551 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1552 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1553 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1554 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1555 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1556 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001557 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001558 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1559 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001560 },
cristy3ed852e2009-09-05 21:47:34 +00001561 StorageOptions[] =
1562 {
cristy042ee782011-04-22 18:48:30 +00001563 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1564 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1565 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1566 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001567 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001568 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001569 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1570 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1571 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001572 },
1573 StretchOptions[] =
1574 {
cristy042ee782011-04-22 18:48:30 +00001575 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1576 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1577 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1578 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1579 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1580 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1581 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1582 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1583 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1584 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1585 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1586 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001587 },
1588 StyleOptions[] =
1589 {
cristy042ee782011-04-22 18:48:30 +00001590 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1591 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1592 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1593 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1594 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1595 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001596 },
1597 TypeOptions[] =
1598 {
cristy042ee782011-04-22 18:48:30 +00001599 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1600 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1601 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001602 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001603 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1604 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001605 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001606 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1607 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1608 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001609 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001610 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001611 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001612 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001613 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001614 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1615 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1616 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001617 },
1618 ValidateOptions[] =
1619 {
cristy042ee782011-04-22 18:48:30 +00001620 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1621 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
1622 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1623 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1624 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
1625 { "FormatsInMemory", FormatsInMemoryValidate, UndefinedOptionFlag, MagickFalse },
1626 { "FormatsOnDisk", FormatsOnDiskValidate, UndefinedOptionFlag, MagickFalse },
1627 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1628 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1629 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1630 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1631 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1632 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001633 },
1634 VirtualPixelOptions[] =
1635 {
cristy042ee782011-04-22 18:48:30 +00001636 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1637 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1638 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001639 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001640 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1641 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1642 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1643 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1644 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1645 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1646 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001647 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001648 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1649 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1650 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1651 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1652 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1653 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1654 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001655 };
1656
anthony686b1a32012-02-15 14:50:53 +00001657static const OptionInfo *GetOptionInfo(const CommandOption option)
1658{
1659 switch (option)
1660 {
1661 case MagickAlignOptions: return(AlignOptions);
cristy288a3532012-08-28 00:19:44 +00001662 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
anthony686b1a32012-02-15 14:50:53 +00001663 case MagickBooleanOptions: return(BooleanOptions);
cristy947cef22013-01-17 14:16:40 +00001664 case MagickCacheOptions: return(CacheOptions);
anthony686b1a32012-02-15 14:50:53 +00001665 case MagickChannelOptions: return(ChannelOptions);
1666 case MagickClassOptions: return(ClassOptions);
1667 case MagickClipPathOptions: return(ClipPathOptions);
1668 case MagickColorspaceOptions: return(ColorspaceOptions);
1669 case MagickCommandOptions: return(CommandOptions);
1670 case MagickComposeOptions: return(ComposeOptions);
1671 case MagickCompressOptions: return(CompressOptions);
1672 case MagickDataTypeOptions: return(DataTypeOptions);
1673 case MagickDebugOptions: return(LogEventOptions);
1674 case MagickDecorateOptions: return(DecorateOptions);
1675 case MagickDirectionOptions: return(DirectionOptions);
1676 case MagickDisposeOptions: return(DisposeOptions);
1677 case MagickDistortOptions: return(DistortOptions);
1678 case MagickDitherOptions: return(DitherOptions);
1679 case MagickEndianOptions: return(EndianOptions);
1680 case MagickEvaluateOptions: return(EvaluateOptions);
1681 case MagickFillRuleOptions: return(FillRuleOptions);
1682 case MagickFilterOptions: return(FilterOptions);
1683 case MagickFunctionOptions: return(FunctionOptions);
1684 case MagickGravityOptions: return(GravityOptions);
1685/* case MagickImageListOptions: return(ImageListOptions); */
1686 case MagickIntentOptions: return(IntentOptions);
1687 case MagickInterlaceOptions: return(InterlaceOptions);
1688 case MagickInterpolateOptions: return(InterpolateOptions);
1689 case MagickKernelOptions: return(KernelOptions);
1690 case MagickLayerOptions: return(LayerOptions);
1691 case MagickLineCapOptions: return(LineCapOptions);
1692 case MagickLineJoinOptions: return(LineJoinOptions);
1693 case MagickListOptions: return(ListOptions);
1694 case MagickLogEventOptions: return(LogEventOptions);
1695 case MagickMetricOptions: return(MetricOptions);
1696 case MagickMethodOptions: return(MethodOptions);
1697 case MagickModeOptions: return(ModeOptions);
1698 case MagickMorphologyOptions: return(MorphologyOptions);
1699 case MagickNoiseOptions: return(NoiseOptions);
1700 case MagickOrientationOptions: return(OrientationOptions);
1701 case MagickPixelChannelOptions: return(PixelChannelOptions);
1702 case MagickPixelTraitOptions: return(PixelTraitOptions);
1703 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1704 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1705 case MagickPreviewOptions: return(PreviewOptions);
1706 case MagickPrimitiveOptions: return(PrimitiveOptions);
1707 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1708 case MagickResolutionOptions: return(ResolutionOptions);
1709 case MagickResourceOptions: return(ResourceOptions);
1710 case MagickSparseColorOptions: return(SparseColorOptions);
1711 case MagickStatisticOptions: return(StatisticOptions);
1712 case MagickStorageOptions: return(StorageOptions);
1713 case MagickStretchOptions: return(StretchOptions);
1714 case MagickStyleOptions: return(StyleOptions);
1715 case MagickTypeOptions: return(TypeOptions);
1716 case MagickValidateOptions: return(ValidateOptions);
1717 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1718 default: break;
1719 }
1720 return((const OptionInfo *) NULL);
1721}
1722
cristy3ed852e2009-09-05 21:47:34 +00001723/*
1724%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1725% %
1726% %
1727% %
1728% C l o n e I m a g e O p t i o n s %
1729% %
1730% %
1731% %
1732%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1733%
anthony40ca0b92012-08-02 13:23:28 +00001734% CloneImageOptions() clones all global image options, to another image_info
cristy3ed852e2009-09-05 21:47:34 +00001735%
1736% The format of the CloneImageOptions method is:
1737%
1738% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1739% const ImageInfo *clone_info)
1740%
1741% A description of each parameter follows:
1742%
anthony40ca0b92012-08-02 13:23:28 +00001743% o image_info: the image info to recieve the cloned options.
cristy3ed852e2009-09-05 21:47:34 +00001744%
anthony40ca0b92012-08-02 13:23:28 +00001745% o clone_info: the source image info for options to clone.
cristy3ed852e2009-09-05 21:47:34 +00001746%
1747*/
1748MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1749 const ImageInfo *clone_info)
1750{
1751 assert(image_info != (ImageInfo *) NULL);
1752 assert(image_info->signature == MagickSignature);
1753 if (image_info->debug != MagickFalse)
1754 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1755 image_info->filename);
1756 assert(clone_info != (const ImageInfo *) NULL);
1757 assert(clone_info->signature == MagickSignature);
1758 if (clone_info->options != (void *) NULL)
1759 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1760 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1761 return(MagickTrue);
1762}
1763
1764/*
1765%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1766% %
1767% %
1768% %
1769% D e f i n e I m a g e O p t i o n %
1770% %
1771% %
1772% %
1773%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1774%
anthony8ea79832011-10-05 10:08:39 +00001775% DefineImageOption() associates an assignment string of the form
anthony40ca0b92012-08-02 13:23:28 +00001776% "key=value" with a global image option. It is equivelent to
1777% SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001778%
1779% The format of the DefineImageOption method is:
1780%
1781% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1782% const char *option)
1783%
1784% A description of each parameter follows:
1785%
1786% o image_info: the image info.
1787%
anthony8ea79832011-10-05 10:08:39 +00001788% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001789%
1790*/
1791MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1792 const char *option)
1793{
1794 char
1795 key[MaxTextExtent],
1796 value[MaxTextExtent];
1797
1798 register char
1799 *p;
1800
1801 assert(image_info != (ImageInfo *) NULL);
1802 assert(option != (const char *) NULL);
1803 (void) CopyMagickString(key,option,MaxTextExtent);
1804 for (p=key; *p != '\0'; p++)
1805 if (*p == '=')
1806 break;
1807 *value='\0';
1808 if (*p == '=')
1809 (void) CopyMagickString(value,p+1,MaxTextExtent);
1810 *p='\0';
1811 return(SetImageOption(image_info,key,value));
1812}
1813
1814/*
1815%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1816% %
1817% %
1818% %
1819% D e l e t e I m a g e O p t i o n %
1820% %
1821% %
1822% %
1823%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1824%
anthony40ca0b92012-08-02 13:23:28 +00001825% DeleteImageOption() deletes an key from the global image options.
cristy3ed852e2009-09-05 21:47:34 +00001826%
anthonyebb73a22012-03-22 14:25:52 +00001827% Returns MagickTrue is the option is found and deleted from the Options.
1828%
cristy3ed852e2009-09-05 21:47:34 +00001829% The format of the DeleteImageOption method is:
1830%
1831% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1832% const char *key)
1833%
1834% A description of each parameter follows:
1835%
1836% o image_info: the image info.
1837%
1838% o option: the image option.
1839%
1840*/
1841MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1842 const char *option)
1843{
1844 assert(image_info != (ImageInfo *) NULL);
1845 assert(image_info->signature == MagickSignature);
1846 if (image_info->debug != MagickFalse)
1847 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1848 image_info->filename);
1849 if (image_info->options == (void *) NULL)
1850 return(MagickFalse);
1851 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1852}
1853
1854/*
1855%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1856% %
1857% %
1858% %
1859% D e s t r o y I m a g e O p t i o n s %
1860% %
1861% %
1862% %
1863%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1864%
anthony40ca0b92012-08-02 13:23:28 +00001865% DestroyImageOptions() destroys all global options and associated memory
1866% attached to the given image_info image list.
cristy3ed852e2009-09-05 21:47:34 +00001867%
1868% The format of the DestroyDefines method is:
1869%
1870% void DestroyImageOptions(ImageInfo *image_info)
1871%
1872% A description of each parameter follows:
1873%
1874% o image_info: the image info.
1875%
1876*/
1877MagickExport void DestroyImageOptions(ImageInfo *image_info)
1878{
1879 assert(image_info != (ImageInfo *) NULL);
1880 assert(image_info->signature == MagickSignature);
1881 if (image_info->debug != MagickFalse)
1882 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1883 image_info->filename);
1884 if (image_info->options != (void *) NULL)
1885 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1886}
1887
1888/*
1889%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1890% %
1891% %
1892% %
1893% G e t I m a g e O p t i o n %
1894% %
1895% %
1896% %
1897%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1898%
anthony40ca0b92012-08-02 13:23:28 +00001899% GetImageOption() gets a value associated with the global image options.
1900%
1901% The returned string is a constant string in the tree and should NOT be
1902% freed by the caller.
cristy3ed852e2009-09-05 21:47:34 +00001903%
1904% The format of the GetImageOption method is:
1905%
1906% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001907% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001908%
1909% A description of each parameter follows:
1910%
1911% o image_info: the image info.
1912%
cristye3f77792011-10-07 00:09:09 +00001913% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001914%
1915*/
1916MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001917 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001918{
cristy3ed852e2009-09-05 21:47:34 +00001919 assert(image_info != (ImageInfo *) NULL);
1920 assert(image_info->signature == MagickSignature);
1921 if (image_info->debug != MagickFalse)
1922 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1923 image_info->filename);
1924 if (image_info->options == (void *) NULL)
1925 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001926 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1927 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001928}
1929
1930/*
1931%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1932% %
1933% %
1934% %
cristy042ee782011-04-22 18:48:30 +00001935% G e t C o m m a n d O p t i o n F l a g s %
cristy3ed852e2009-09-05 21:47:34 +00001936% %
1937% %
1938% %
1939%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1940%
cristy042ee782011-04-22 18:48:30 +00001941% GetCommandOptionFlags() parses a string and returns an enumerated option
1942% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00001943%
cristy042ee782011-04-22 18:48:30 +00001944% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00001945%
cristy042ee782011-04-22 18:48:30 +00001946% ssize_t GetCommandOptionFlags(const CommandOption option,
1947% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00001948%
1949% A description of each parameter follows:
1950%
cristy042ee782011-04-22 18:48:30 +00001951% o option: Index to the option table to lookup
1952%
1953% o list: A option other than zero permits more than one option separated by
1954% a comma or pipe.
1955%
1956% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00001957%
1958*/
1959
cristy042ee782011-04-22 18:48:30 +00001960MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
1961 const MagickBooleanType list,const char *options)
1962{
1963 char
1964 token[MaxTextExtent];
1965
1966 const OptionInfo
1967 *option_info;
1968
1969 int
1970 sentinel;
1971
1972 MagickBooleanType
1973 negate;
1974
1975 register char
1976 *q;
1977
1978 register const char
1979 *p;
1980
1981 register ssize_t
1982 i;
1983
1984 ssize_t
1985 option_types;
1986
1987 option_info=GetOptionInfo(option);
1988 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00001989 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00001990 option_types=0;
1991 sentinel=',';
1992 if (strchr(options,'|') != (char *) NULL)
1993 sentinel='|';
1994 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
1995 {
1996 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
1997 (*p != '\0'))
1998 p++;
1999 negate=(*p == '!') ? MagickTrue : MagickFalse;
2000 if (negate != MagickFalse)
2001 p++;
2002 q=token;
2003 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2004 (*p != '\0'))
2005 {
cristya0019202011-06-07 13:23:55 +00002006 if ((q-token) >= (MaxTextExtent-1))
cristy042ee782011-04-22 18:48:30 +00002007 break;
2008 *q++=(*p++);
2009 }
2010 *q='\0';
2011 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2012 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2013 {
2014 if (*token == '!')
2015 option_types=option_types &~ option_info[i].flags;
2016 else
2017 option_types=option_types | option_info[i].flags;
2018 break;
2019 }
2020 if ((option_info[i].mnemonic == (char *) NULL) &&
2021 ((strchr(token+1,'-') != (char *) NULL) ||
2022 (strchr(token+1,'_') != (char *) NULL)))
2023 {
2024 while ((q=strchr(token+1,'-')) != (char *) NULL)
2025 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2026 while ((q=strchr(token+1,'_')) != (char *) NULL)
2027 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2028 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2029 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2030 {
2031 if (*token == '!')
2032 option_types=option_types &~ option_info[i].flags;
2033 else
2034 option_types=option_types | option_info[i].flags;
2035 break;
2036 }
2037 }
2038 if (option_info[i].mnemonic == (char *) NULL)
2039 return(-1);
2040 if (list == MagickFalse)
2041 break;
2042 }
2043 return(option_types);
2044}
2045
2046/*
2047%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2048% %
2049% %
2050% %
anthony686b1a32012-02-15 14:50:53 +00002051% G e t C o m m a n d O p t i o n I n f o %
2052% %
2053% %
2054% %
2055%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2056%
2057% GetCommandOptionInfo() returns pointer to the matching OptionInfo entry
2058% for the "CommandOptions" table only. A specialised binary search is used,
2059% to speed up the lookup for that very large table, and returns both the
2060% type (arg count) and flags (arg type).
2061%
anthony643c6132012-11-07 14:50:28 +00002062% This search reduces linear search of over 500 options (250 tests on
anthony686b1a32012-02-15 14:50:53 +00002063% average) to about 10 lookups!
2064%
2065% The format of the GetCommandOptionInfo method is:
2066%
2067% const char **GetCommandOptions(const CommandOption value)
2068%
2069% A description of each parameter follows:
2070%
2071% o value: the value.
2072%
2073*/
2074MagickExport const OptionInfo *GetCommandOptionInfo(const char *value)
2075{
2076 const OptionInfo
2077 *option_info=CommandOptions;
2078
2079 static ssize_t
2080 table_size = 0;
2081
anthony24aa8822012-03-11 00:56:06 +00002082 register int
anthony686b1a32012-02-15 14:50:53 +00002083 i,l,h;
2084
2085 assert(value != (char *) NULL);
2086 assert(*value != '\0');
2087
2088 /* count up table items - first time only */
2089 if ( table_size == 0 )
2090 {
2091 l=-1;
2092 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2093 if ( LocaleCompare(value,option_info[i].mnemonic) == 0 )
2094 l=i;
2095 table_size = i;
anthony24aa8822012-03-11 00:56:06 +00002096 return( &option_info[(l>=0)?l:i] );
anthony686b1a32012-02-15 14:50:53 +00002097 }
2098
2099 /* faster binary search of command table, now that its length is known */
2100 l=0;
anthony668f43a2012-02-20 14:55:32 +00002101 h=table_size;
anthony686b1a32012-02-15 14:50:53 +00002102 while ( l < h )
2103 {
2104 int cmp;
2105 i = (l+h)/2; /* half the bounds */
2106 /* compare string part, then switch character! */
2107 cmp=LocaleCompare(value+1,option_info[i].mnemonic+1);
2108 if ( cmp == 0 )
2109 cmp = *value - *(option_info[i].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002110#if 0
2111 (void) FormatLocaleFile(stderr,
2112 "%d --- %u < %u < %u --- \"%s\" < \"%s\" < \"%s\"\n",
cristy73380532012-02-18 20:26:28 +00002113 cmp,l,i,h,option_info[l].mnemonic,option_info[i].mnemonic,
2114 option_info[h].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002115#endif
anthony686b1a32012-02-15 14:50:53 +00002116 if (cmp == 0)
2117 return(&option_info[i]);
2118 if (cmp > 0) l=i+1; else h=i; /* reassign search bounds */
2119 }
2120 /* option was not found in table - return last 'null' entry. */
2121 return(&option_info[table_size]);
2122}
2123
2124/*
2125%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2126% %
2127% %
2128% %
cristy042ee782011-04-22 18:48:30 +00002129% G e t C o m m a n d O p t i o n s %
2130% %
2131% %
2132% %
2133%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2134%
2135% GetCommandOptions() returns a list of values.
2136%
2137% The format of the GetCommandOptions method is:
2138%
2139% const char **GetCommandOptions(const CommandOption value)
2140%
2141% A description of each parameter follows:
2142%
2143% o value: the value.
2144%
2145*/
2146MagickExport char **GetCommandOptions(const CommandOption value)
cristy3ed852e2009-09-05 21:47:34 +00002147{
2148 char
2149 **values;
2150
2151 const OptionInfo
2152 *option_info;
2153
cristybb503372010-05-27 20:51:26 +00002154 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002155 i;
2156
2157 option_info=GetOptionInfo(value);
2158 if (option_info == (const OptionInfo *) NULL)
2159 return((char **) NULL);
2160 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2161 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2162 if (values == (char **) NULL)
2163 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2164 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2165 values[i]=AcquireString(option_info[i].mnemonic);
2166 values[i]=(char *) NULL;
2167 return(values);
2168}
2169
2170/*
2171%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2172% %
2173% %
2174% %
2175% G e t N e x t I m a g e O p t i o n %
2176% %
2177% %
2178% %
2179%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2180%
anthony40ca0b92012-08-02 13:23:28 +00002181% GetNextImageOption() gets the next global option value.
cristy3ed852e2009-09-05 21:47:34 +00002182%
2183% The format of the GetNextImageOption method is:
2184%
2185% char *GetNextImageOption(const ImageInfo *image_info)
2186%
2187% A description of each parameter follows:
2188%
2189% o image_info: the image info.
2190%
2191*/
2192MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2193{
2194 assert(image_info != (ImageInfo *) NULL);
2195 assert(image_info->signature == MagickSignature);
2196 if (image_info->debug != MagickFalse)
2197 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2198 image_info->filename);
2199 if (image_info->options == (void *) NULL)
2200 return((char *) NULL);
2201 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2202}
2203
2204/*
2205%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2206% %
2207% %
2208% %
cristy042ee782011-04-22 18:48:30 +00002209% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002210% %
2211% %
2212% %
2213%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2214%
cristy042ee782011-04-22 18:48:30 +00002215% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002216% the first character that follows is alphanumeric.
2217%
cristy042ee782011-04-22 18:48:30 +00002218% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002219%
cristy042ee782011-04-22 18:48:30 +00002220% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002221%
2222% A description of each parameter follows:
2223%
2224% o option: the option.
2225%
2226*/
cristy042ee782011-04-22 18:48:30 +00002227MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002228{
2229 assert(option != (const char *) NULL);
2230 if ((*option != '-') && (*option != '+'))
2231 return(MagickFalse);
2232 if (strlen(option) == 1)
anthonye5b39652012-04-21 05:37:29 +00002233 return(IsMagickTrue( (*option == '{') || (*option == '}')
2234 || (*option == '[') || (*option == ']') ));
cristy3ed852e2009-09-05 21:47:34 +00002235 option++;
anthonye5b39652012-04-21 05:37:29 +00002236 if (*option == '-')
2237 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002238 if (isalpha((int) ((unsigned char) *option)) == 0)
2239 return(MagickFalse);
2240 return(MagickTrue);
2241}
2242
2243/*
2244%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2245% %
2246% %
2247% %
cristy042ee782011-04-22 18:48:30 +00002248% C o m m a n d O p t i o n T o M n e m o n i c %
cristy3ed852e2009-09-05 21:47:34 +00002249% %
2250% %
2251% %
2252%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2253%
cristy042ee782011-04-22 18:48:30 +00002254% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002255%
cristy042ee782011-04-22 18:48:30 +00002256% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002257%
cristy042ee782011-04-22 18:48:30 +00002258% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002259% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002260%
2261% A description of each parameter follows:
2262%
2263% o option: the option.
2264%
2265% o type: one or more values separated by commas.
2266%
2267*/
cristy042ee782011-04-22 18:48:30 +00002268MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002269 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002270{
2271 const OptionInfo
2272 *option_info;
2273
cristybb503372010-05-27 20:51:26 +00002274 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002275 i;
2276
2277 option_info=GetOptionInfo(option);
2278 if (option_info == (const OptionInfo *) NULL)
2279 return((const char *) NULL);
2280 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2281 if (type == option_info[i].type)
2282 break;
2283 if (option_info[i].mnemonic == (const char *) NULL)
2284 return("undefined");
2285 return(option_info[i].mnemonic);
2286}
2287
2288/*
2289%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2290% %
2291% %
2292% %
cristy042ee782011-04-22 18:48:30 +00002293% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002294% %
2295% %
2296% %
2297%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2298%
cristy042ee782011-04-22 18:48:30 +00002299% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002300%
cristy042ee782011-04-22 18:48:30 +00002301% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002302%
cristy2b9582a2011-07-04 17:38:56 +00002303% MagickBooleanType ListCommandOptions(FILE *file,
2304% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002305%
2306% A description of each parameter follows:
2307%
2308% o file: list options to this file handle.
2309%
2310% o option: list these options.
2311%
2312% o exception: return any errors or warnings in this structure.
2313%
2314*/
cristy042ee782011-04-22 18:48:30 +00002315MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2316 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002317{
2318 const OptionInfo
2319 *option_info;
2320
cristybb503372010-05-27 20:51:26 +00002321 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002322 i;
2323
2324 if (file == (FILE *) NULL)
2325 file=stdout;
2326 option_info=GetOptionInfo(option);
2327 if (option_info == (const OptionInfo *) NULL)
2328 return(MagickFalse);
2329 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2330 {
2331 if (option_info[i].stealth != MagickFalse)
2332 continue;
cristyb51dff52011-05-19 16:55:47 +00002333 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002334 }
2335 return(MagickTrue);
2336}
2337
2338/*
2339%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2340% %
2341% %
2342% %
2343% P a r s e C h a n n e l O p t i o n %
2344% %
2345% %
2346% %
2347%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2348%
2349% ParseChannelOption() parses a string and returns an enumerated channel
2350% type(s).
2351%
2352% The format of the ParseChannelOption method is:
2353%
cristybb503372010-05-27 20:51:26 +00002354% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002355%
2356% A description of each parameter follows:
2357%
2358% o options: One or more values separated by commas.
2359%
2360*/
cristybb503372010-05-27 20:51:26 +00002361MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002362{
cristybb503372010-05-27 20:51:26 +00002363 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002364 i;
2365
cristyb9902b72010-10-05 18:21:50 +00002366 ssize_t
2367 channel;
2368
cristy042ee782011-04-22 18:48:30 +00002369 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002370 if (channel >= 0)
2371 return(channel);
2372 channel=0;
cristybb503372010-05-27 20:51:26 +00002373 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002374 {
2375 switch (channels[i])
2376 {
2377 case 'A':
2378 case 'a':
2379 {
cristy953c4bd2012-02-24 01:04:04 +00002380 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002381 break;
2382 }
2383 case 'B':
2384 case 'b':
2385 {
2386 channel|=BlueChannel;
2387 break;
2388 }
2389 case 'C':
2390 case 'c':
2391 {
2392 channel|=CyanChannel;
2393 break;
2394 }
2395 case 'g':
2396 case 'G':
2397 {
2398 channel|=GreenChannel;
2399 break;
2400 }
cristy3ed852e2009-09-05 21:47:34 +00002401 case 'K':
2402 case 'k':
2403 {
2404 channel|=BlackChannel;
2405 break;
2406 }
2407 case 'M':
2408 case 'm':
2409 {
2410 channel|=MagentaChannel;
2411 break;
2412 }
2413 case 'o':
2414 case 'O':
2415 {
anthony30b912a2012-03-22 01:20:28 +00002416 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002417 break;
2418 }
2419 case 'R':
2420 case 'r':
2421 {
2422 channel|=RedChannel;
2423 break;
2424 }
2425 case 'Y':
2426 case 'y':
2427 {
2428 channel|=YellowChannel;
2429 break;
2430 }
2431 case ',':
2432 {
cristybb503372010-05-27 20:51:26 +00002433 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002434 type;
2435
2436 /*
2437 Gather the additional channel flags and merge with shorthand.
2438 */
cristy042ee782011-04-22 18:48:30 +00002439 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002440 if (type < 0)
2441 return(type);
2442 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002443 return(channel);
2444 }
2445 default:
2446 return(-1);
2447 }
2448 }
2449 return(channel);
2450}
2451
2452/*
2453%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2454% %
2455% %
2456% %
cristy042ee782011-04-22 18:48:30 +00002457% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002458% %
2459% %
2460% %
2461%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2462%
cristy042ee782011-04-22 18:48:30 +00002463% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002464% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002465%
cristy042ee782011-04-22 18:48:30 +00002466% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002467%
anthony31f1bf72012-01-30 12:37:22 +00002468% ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002469% const MagickBooleanType list,const char *options)
2470%
2471% A description of each parameter follows:
2472%
anthony31f1bf72012-01-30 12:37:22 +00002473% o option_table: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002474%
2475% o list: A option other than zero permits more than one option separated by
2476% a comma or pipe.
2477%
2478% o options: One or more options separated by commas.
2479%
2480*/
anthony31f1bf72012-01-30 12:37:22 +00002481MagickExport ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002482 const MagickBooleanType list,const char *options)
2483{
2484 char
2485 token[MaxTextExtent];
2486
2487 const OptionInfo
2488 *option_info;
2489
2490 int
2491 sentinel;
2492
cristy3ed852e2009-09-05 21:47:34 +00002493 MagickBooleanType
2494 negate;
2495
2496 register char
2497 *q;
2498
2499 register const char
2500 *p;
2501
cristybb503372010-05-27 20:51:26 +00002502 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002503 i;
2504
cristyb9902b72010-10-05 18:21:50 +00002505 ssize_t
2506 option_types;
2507
anthony31f1bf72012-01-30 12:37:22 +00002508 option_info=GetOptionInfo(option_table);
cristy3ed852e2009-09-05 21:47:34 +00002509 if (option_info == (const OptionInfo *) NULL)
2510 return(-1);
2511 option_types=0;
2512 sentinel=',';
2513 if (strchr(options,'|') != (char *) NULL)
2514 sentinel='|';
2515 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2516 {
2517 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2518 (*p != '\0'))
2519 p++;
2520 negate=(*p == '!') ? MagickTrue : MagickFalse;
2521 if (negate != MagickFalse)
2522 p++;
2523 q=token;
2524 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2525 (*p != '\0'))
2526 {
cristya0019202011-06-07 13:23:55 +00002527 if ((q-token) >= (MaxTextExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002528 break;
2529 *q++=(*p++);
2530 }
2531 *q='\0';
2532 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2533 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2534 {
2535 if (*token == '!')
2536 option_types=option_types &~ option_info[i].type;
2537 else
2538 option_types=option_types | option_info[i].type;
2539 break;
2540 }
2541 if ((option_info[i].mnemonic == (char *) NULL) &&
2542 ((strchr(token+1,'-') != (char *) NULL) ||
2543 (strchr(token+1,'_') != (char *) NULL)))
2544 {
2545 while ((q=strchr(token+1,'-')) != (char *) NULL)
2546 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2547 while ((q=strchr(token+1,'_')) != (char *) NULL)
2548 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2549 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2550 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2551 {
2552 if (*token == '!')
2553 option_types=option_types &~ option_info[i].type;
2554 else
2555 option_types=option_types | option_info[i].type;
2556 break;
2557 }
2558 }
2559 if (option_info[i].mnemonic == (char *) NULL)
2560 return(-1);
2561 if (list == MagickFalse)
2562 break;
2563 }
2564 return(option_types);
2565}
2566
2567/*
2568%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2569% %
2570% %
2571% %
cristy953c4bd2012-02-24 01:04:04 +00002572% P a r s e P i x e l C h a n n e l O p t i o n %
2573% %
2574% %
2575% %
2576%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2577%
2578% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2579% channel type(s).
2580%
2581% The format of the ParsePixelChannelOption method is:
2582%
2583% ssize_t ParsePixelChannelOption(const char *channels)
2584%
2585% A description of each parameter follows:
2586%
cristyd04e7bf2012-03-03 19:19:12 +00002587% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002588%
2589*/
2590MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2591{
cristyd04e7bf2012-03-03 19:19:12 +00002592 char
cristya15140f2012-03-04 01:21:15 +00002593 *q,
2594 token[MaxTextExtent];
cristy953c4bd2012-02-24 01:04:04 +00002595
2596 ssize_t
2597 channel;
2598
cristya15140f2012-03-04 01:21:15 +00002599 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002600 if ((*token == ';') || (*token == '|'))
2601 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002602 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002603 if (channel >= 0)
2604 return(channel);
cristya15140f2012-03-04 01:21:15 +00002605 q=(char *) token;
2606 channel=InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002607 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002608 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002609 return(channel);
2610}
2611
2612/*
2613%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2614% %
2615% %
2616% %
cristy3ed852e2009-09-05 21:47:34 +00002617% R e m o v e I m a g e O p t i o n %
2618% %
2619% %
2620% %
2621%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2622%
2623% RemoveImageOption() removes an option from the image and returns its value.
2624%
anthony40ca0b92012-08-02 13:23:28 +00002625% In this case the ConstantString() value returned should be freed by the
2626% caller when finished.
2627%
cristy3ed852e2009-09-05 21:47:34 +00002628% The format of the RemoveImageOption method is:
2629%
2630% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2631%
2632% A description of each parameter follows:
2633%
2634% o image_info: the image info.
2635%
2636% o option: the image option.
2637%
2638*/
2639MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2640{
2641 char
2642 *value;
2643
2644 assert(image_info != (ImageInfo *) NULL);
2645 assert(image_info->signature == MagickSignature);
2646 if (image_info->debug != MagickFalse)
2647 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2648 image_info->filename);
2649 if (image_info->options == (void *) NULL)
2650 return((char *) NULL);
2651 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2652 image_info->options,option);
2653 return(value);
2654}
2655
2656/*
2657%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2658% %
2659% %
2660% %
2661% R e s e t I m a g e O p t i o n %
2662% %
2663% %
2664% %
2665%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2666%
2667% ResetImageOptions() resets the image_info option. That is, it deletes
anthony40ca0b92012-08-02 13:23:28 +00002668% all global options associated with the image_info structure.
cristy3ed852e2009-09-05 21:47:34 +00002669%
2670% The format of the ResetImageOptions method is:
2671%
2672% ResetImageOptions(ImageInfo *image_info)
2673%
2674% A description of each parameter follows:
2675%
2676% o image_info: the image info.
2677%
2678*/
2679MagickExport void ResetImageOptions(const ImageInfo *image_info)
2680{
2681 assert(image_info != (ImageInfo *) NULL);
2682 assert(image_info->signature == MagickSignature);
2683 if (image_info->debug != MagickFalse)
2684 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2685 image_info->filename);
2686 if (image_info->options == (void *) NULL)
2687 return;
2688 ResetSplayTree((SplayTreeInfo *) image_info->options);
2689}
2690
2691/*
2692%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2693% %
2694% %
2695% %
2696% R e s e t I m a g e O p t i o n I t e r a t o r %
2697% %
2698% %
2699% %
2700%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2701%
2702% ResetImageOptionIterator() resets the image_info values iterator. Use it
2703% in conjunction with GetNextImageOption() to iterate over all the values
2704% associated with an image option.
2705%
2706% The format of the ResetImageOptionIterator method is:
2707%
2708% ResetImageOptionIterator(ImageInfo *image_info)
2709%
2710% A description of each parameter follows:
2711%
2712% o image_info: the image info.
2713%
2714*/
2715MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2716{
2717 assert(image_info != (ImageInfo *) NULL);
2718 assert(image_info->signature == MagickSignature);
2719 if (image_info->debug != MagickFalse)
2720 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2721 image_info->filename);
2722 if (image_info->options == (void *) NULL)
2723 return;
2724 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2725}
2726
2727/*
2728%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2729% %
2730% %
2731% %
2732% S e t I m a g e O p t i o n %
2733% %
2734% %
2735% %
2736%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2737%
2738% SetImageOption() associates an value with an image option.
2739%
2740% The format of the SetImageOption method is:
2741%
2742% MagickBooleanType SetImageOption(ImageInfo *image_info,
2743% const char *option,const char *value)
2744%
2745% A description of each parameter follows:
2746%
2747% o image_info: the image info.
2748%
2749% o option: the image option.
2750%
2751% o values: the image option values.
2752%
2753*/
2754MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2755 const char *option,const char *value)
2756{
cristy3ed852e2009-09-05 21:47:34 +00002757 assert(image_info != (ImageInfo *) NULL);
2758 assert(image_info->signature == MagickSignature);
2759 if (image_info->debug != MagickFalse)
2760 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2761 image_info->filename);
anthony7df2b832011-10-06 11:55:25 +00002762
anthony643c6132012-11-07 14:50:28 +00002763 /* Specific global option settings */
cristy3ed852e2009-09-05 21:47:34 +00002764 if (LocaleCompare(option,"size") == 0)
2765 (void) CloneString(&image_info->size,value);
anthony7df2b832011-10-06 11:55:25 +00002766
anthony72feaa62012-01-17 06:46:23 +00002767 /* create tree if needed - specify how key,values are to be freed */
cristy3ed852e2009-09-05 21:47:34 +00002768 if (image_info->options == (void *) NULL)
2769 image_info->options=NewSplayTree(CompareSplayTreeString,
2770 RelinquishMagickMemory,RelinquishMagickMemory);
anthony7df2b832011-10-06 11:55:25 +00002771
anthony40ca0b92012-08-02 13:23:28 +00002772 /* Delete Option if NULL -- empty string values are valid! */
anthonyd181ea02011-10-12 07:44:13 +00002773 if (value == (const char *) NULL)
2774 return(DeleteImageOption(image_info,option));
2775
anthony7bb7aee2012-05-15 00:09:16 +00002776 /* add option to splay-tree */
cristye3f77792011-10-07 00:09:09 +00002777 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2778 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002779}