blob: f5a7f86469b93012ad34db6838939b6b7c5ac46d [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% %
cristy1454be72011-12-19 01:52:48 +000020% Copyright 1999-2012 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 },
93 AlphaOptions[] =
94 {
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 },
119 ChannelOptions[] =
120 {
cristy042ee782011-04-22 18:48:30 +0000121 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000122 /* special */
cristy9a9230e2011-04-26 14:56:14 +0000123 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000124 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
125 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
126 /* individual channel */
127 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy953c4bd2012-02-24 01:04:04 +0000128 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000129 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000130 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000131 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000132 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000133 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000134 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000135 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000136 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000137 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000138 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000139 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
140 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000141 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
142 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000143 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000144 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000145 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000146 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
147 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
148 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000149 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000150 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000151 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000152 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000153 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000154 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000155 },
156 ClassOptions[] =
157 {
cristy042ee782011-04-22 18:48:30 +0000158 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
159 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
160 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
161 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000162 },
163 ClipPathOptions[] =
164 {
cristy042ee782011-04-22 18:48:30 +0000165 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
166 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
167 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
168 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
169 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000170 },
171 CommandOptions[] =
172 {
anthony686b1a32012-02-15 14:50:53 +0000173 /* WARNING: this must be sorted by name, then by switch character
cristy87c02f42012-02-24 00:19:10 +0000174 So that it can be referenced using a binary search for speed.
175 See GetCommandOptionInfo() below for details.
anthony686b1a32012-02-15 14:50:53 +0000176
177 Check on sort...
178 magick -list command > t1
179 sort -k 1.2 t1 | diff t1 -
180 Should not show any differences...
181 */
anthony464f1c42012-04-22 08:51:01 +0000182 { "(", 0L, NoImageOperatorFlag, MagickTrue },
183 { ")", 0L, NoImageOperatorFlag, MagickTrue },
184 { "{", 0L, NoImageOperatorFlag, MagickTrue },
185 { "}", 0L, NoImageOperatorFlag, MagickTrue },
186 { "--", 1L, NoImageOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000187 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000188 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000189 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000190 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000191 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000192 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000193 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
194 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000195 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
196 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony31f1bf72012-01-30 12:37:22 +0000197 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000198 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
199 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000200 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000201 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000202 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000203 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
204 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000205 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
206 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000207 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
anthony92c93bd2012-03-19 14:02:47 +0000208 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000209 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
210 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000211 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000212 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000213 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000214 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000215 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000216 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000217 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000218 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000219 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
220 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000221 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
222 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000223 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
anthony9a6469e2011-05-04 11:07:31 +0000224 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000225 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
226 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
227 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
228 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000229 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000230 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000231 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
232 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000233 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
234 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000235 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
236 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000237 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000238 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000239 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000240 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000241 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
242 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000243 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
244 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000245 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
246 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000247 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000248 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000249 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
250 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000251 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
252 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000253 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000254 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonydf9471d2012-03-22 03:53:05 +0000255 { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
256 { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000257 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000258 { "+charcoal", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000259 { "-charcoal", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000260 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000261 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000262 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000263 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
264 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
265 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000266 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
267 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000268 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
269 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
270 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
271 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000272 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000273 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000274 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000275 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000276 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000277 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000278 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000279 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000280 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
281 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000282 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000283 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
284 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
285 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
cristy63e9ac82012-07-04 13:36:05 +0000286 { "+combine", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy46f354c2012-07-04 13:31:29 +0000287 { "-combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000288 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
289 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000290 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
291 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000292 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000293 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000294 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
295 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000296 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
anthonyebb73a22012-03-22 14:25:52 +0000297 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000298 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
299 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000300 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000301 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000302 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000303 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000304 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000305 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000306 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000307 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000308 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
309 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000310 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000311 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000312 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000313 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000314 { "+define", 1L, ImageInfoOptionFlag, MagickFalse },
315 { "-define", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000316 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
317 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000318 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
319 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000320 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000321 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000322 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
323 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000324 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
325 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000326 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
327 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000328 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000329 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000330 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
331 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000332 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
333 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000334 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000335 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000336 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
337 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000338 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
339 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000340 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
341 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000342 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
343 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000344 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
345 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000346 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000347 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
348 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
349 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony9a6469e2011-05-04 11:07:31 +0000350 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
351 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000352 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000353 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000354 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000355 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000356 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000357 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000358 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000359 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000360 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
361 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000362 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000363 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000364 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000365 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000366 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000367 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000368 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000369 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000370 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000371 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000372 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000373 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
374 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000375 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000376 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000377 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
378 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
379 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
380 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000381 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
382 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000383 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
384 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000385 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000386 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000387 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000388 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
389 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
390 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000391 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000392 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000393 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
394 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000395 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
396 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000397 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000398 { "-format", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000399 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000400 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000401 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000402 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000403 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
404 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000405 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000406 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +0000407 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000408 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000409 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000410 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000411 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000412 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
413 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
414 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000415 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
416 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000417 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
418 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000419 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000420 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000421 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
422 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000423 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
424 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
425 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
426 { "-iconic", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000427 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000428 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
429 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
430 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000431 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
432 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000433 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000434 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
435 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
436 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000437 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
438 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
439 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
440 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000441 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
442 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000443 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
444 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000445 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000446 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000447 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
448 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000449 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
450 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000451 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
452 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000453 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000454 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000455 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000456 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
457 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
458 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
459 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
460 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000461 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000462 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000463 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000464 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000465 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000466 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000467 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000468 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000469 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000470 { "-log", 1L, GlobalOptionFlag, MagickFalse },
471 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
472 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000473 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
474 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000475 { "+magnify", 0L, NonMagickOptionFlag, MagickFalse },
476 { "-magnify", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000477 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
478 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000479 { "+mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
480 { "-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000481 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
482 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000483 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
484 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000485 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
486 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
487 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000488 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
anthonycd358fc2012-04-16 13:59:03 +0000489 { "+metric", 0L, ImageInfoOptionFlag, MagickFalse },
490 { "-metric", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000491 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
492 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000493 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000494 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000495 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000496 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
497 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
498 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000499 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000500 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000501 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000502 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000503 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000504 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000505 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000506 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000507 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000508 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000509 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
510 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000511 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
512 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
513 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
514 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
515 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000516 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000517 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
518 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
519 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000520 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000521 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000522 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
523 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000524 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
525 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000526 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000527 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000528 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
529 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
530 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
531 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000532 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
533 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000534 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
535 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000536 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
537 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000538 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000539 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000540 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
541 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
542 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
543 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000544 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000545 { "-print", 1L, ListOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000546 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000547 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
548 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000549 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000550 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
551 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000552 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
553 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000554 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
555 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000556 { "+radial-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000557 { "-radial-blur", 1L, SimpleOperatorFlag, MagickFalse },
558 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
559 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000560 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000561 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000562 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000563 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000564 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000565 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
566 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000567 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
568 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000569 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
570 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000571 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
572 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000573 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
574 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000575 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
576 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000577 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
578 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000579 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000580 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000581 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000582 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000583 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
584 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000585 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000586 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000587 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000588 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000589 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000590 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000591 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000592 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000593 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
594 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000595 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
596 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
597 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
598 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
599 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
600 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000601 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000602 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000603 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
604 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000605 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
606 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
607 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
608 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000609 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000610 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
611 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000612 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000613 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000614 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000615 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000616 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000617 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000618 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000619 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000620 { "+set", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
621 { "-set", 2L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000622 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000623 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000624 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000625 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000626 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
627 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000628 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000629 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000630 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000631 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000632 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000633 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
634 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
635 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000636 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
637 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000638 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
639 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000640 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000641 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
642 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
643 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000644 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
645 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000646 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000647 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000648 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000649 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000650 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000651 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000652 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000653 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000654 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000655 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000656 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
657 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000658 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000659 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000660 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000661 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000662 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000663 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000664 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
665 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000666 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000667 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000668 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
669 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000670 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
671 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
672 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
673 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
674 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000675 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000676 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000677 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
678 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
679 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
680 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000681 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
682 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000683 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000684 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000685 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
686 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000687 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000688 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000689 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
690 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000691 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
692 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000693 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
694 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000695 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
696 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000697 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000698 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
699 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
700 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000701 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000702 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000703 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000704 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000705 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000706 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000707 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000708 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000709 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000710 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
711 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
712 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000713 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000714 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000715 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
716 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000717 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000718 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000719 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
720 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000721 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000722 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000723 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
724 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
725 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
726 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000727 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
728 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000729 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000730 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000731 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
732 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000733 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000734 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthonyebb73a22012-03-22 14:25:52 +0000735 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
736 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000737 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
738 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
739 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
740 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000741 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000742 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000743 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000744 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000745 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
746 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000747 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000748 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000749 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
750 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
751 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
752 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000753 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
754 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000755 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000756 },
757 ComposeOptions[] =
758 {
cristy042ee782011-04-22 18:48:30 +0000759 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
760 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
761 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
762 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
763 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
764 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
765 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
766 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
767 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
768 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000769 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000770 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
771 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
772 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
773 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
774 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
775 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000776 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
777 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
778 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
779 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
780 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
781 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
782 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
783 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
784 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
785 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
786 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
787 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
788 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
789 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000791 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000795 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000796 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
798 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
799 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
809 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
816 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
820 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
822 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
823 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000825 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000827 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
828 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000829 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000830 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000831 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000832 },
833 CompressOptions[] =
834 {
cristy042ee782011-04-22 18:48:30 +0000835 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
836 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
837 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
838 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
839 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
840 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
841 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
842 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
843 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000844 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
845 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000846 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
847 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
848 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
849 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
850 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
851 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
852 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
853 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
854 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
855 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
856 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
857 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
858 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
859 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000860 },
861 ColorspaceOptions[] =
862 {
cristy042ee782011-04-22 18:48:30 +0000863 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000864 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000865 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
866 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
867 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
868 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
869 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
870 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
871 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
872 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
873 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
874 { "Rec601Luma", Rec601LumaColorspace, UndefinedOptionFlag, MagickFalse },
875 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
876 { "Rec709Luma", Rec709LumaColorspace, UndefinedOptionFlag, MagickFalse },
877 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
878 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
879 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
880 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
881 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
882 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
883 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
884 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
885 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
886 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
887 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000888 },
889 DataTypeOptions[] =
890 {
cristy042ee782011-04-22 18:48:30 +0000891 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
892 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
893 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
894 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
895 { "String", StringData, UndefinedOptionFlag, MagickFalse },
896 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000897 },
898 DecorateOptions[] =
899 {
cristy042ee782011-04-22 18:48:30 +0000900 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
901 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
902 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
903 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
904 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
905 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000906 },
cristyc9b12952010-03-28 01:12:28 +0000907 DirectionOptions[] =
908 {
cristy042ee782011-04-22 18:48:30 +0000909 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
910 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
911 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
912 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000913 },
cristy3ed852e2009-09-05 21:47:34 +0000914 DisposeOptions[] =
915 {
cristy042ee782011-04-22 18:48:30 +0000916 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
917 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
918 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
919 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
920 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
921 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
922 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
923 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
924 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
925 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000926 },
927 DistortOptions[] =
928 {
cristy042ee782011-04-22 18:48:30 +0000929 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
930 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
931 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
932 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
933 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
934 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
935 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
936 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
937 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
938 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
939 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
940 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
941 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
942 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +0000943 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
944 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000945 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
946 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
947 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
948 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000949 },
950 DitherOptions[] =
951 {
cristy042ee782011-04-22 18:48:30 +0000952 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
953 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
954 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
955 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
956 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000957 },
958 EndianOptions[] =
959 {
cristy042ee782011-04-22 18:48:30 +0000960 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
961 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
962 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
963 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000964 },
965 EvaluateOptions[] =
966 {
cristy042ee782011-04-22 18:48:30 +0000967 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
968 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
969 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
970 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
971 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
972 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
973 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
974 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
975 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
976 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
977 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
978 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
979 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
980 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
981 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
982 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
983 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
984 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
985 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
986 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
987 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
988 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
989 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
990 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
991 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
992 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
993 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
994 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
995 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +0000996 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000997 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
998 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
999 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1000 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1001 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1002 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001003 },
1004 FillRuleOptions[] =
1005 {
cristy042ee782011-04-22 18:48:30 +00001006 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1007 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1008 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1009 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001010 },
1011 FilterOptions[] =
1012 {
cristy042ee782011-04-22 18:48:30 +00001013 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1014 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1015 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1016 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1017 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1018 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001019 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001020 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1021 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1022 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
1023 { "Hanning", HanningFilter, UndefinedOptionFlag, MagickFalse },
1024 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1025 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1026 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1027 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1028 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
1029 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
1030 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1031 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
1032 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1033 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1034 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1035 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1036 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001037 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001038 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1039 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001040 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001041 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
1042 { "Welsh", WelshFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001043 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001044 },
1045 FunctionOptions[] =
1046 {
cristy042ee782011-04-22 18:48:30 +00001047 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1048 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1049 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1050 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1051 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1052 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001053 },
1054 GravityOptions[] =
1055 {
cristy042ee782011-04-22 18:48:30 +00001056 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1057 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1058 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1059 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1060 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1061 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1062 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1063 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1064 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1065 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1066 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1067 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001068 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001069 },
cristy3ed852e2009-09-05 21:47:34 +00001070 IntentOptions[] =
1071 {
cristy042ee782011-04-22 18:48:30 +00001072 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1073 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1074 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1075 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1076 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1077 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001078 },
1079 InterlaceOptions[] =
1080 {
cristy042ee782011-04-22 18:48:30 +00001081 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1082 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1083 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1084 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1085 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1086 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1087 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1088 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1089 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001090 },
1091 InterpolateOptions[] =
1092 {
cristy042ee782011-04-22 18:48:30 +00001093 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1094 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001095 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1096 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1097 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1098 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001099 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001100 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1101 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001102 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1103 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001104 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1105 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001106 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001107/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001108 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001109 },
anthony602ab9b2010-01-05 08:06:50 +00001110 KernelOptions[] =
1111 {
cristy042ee782011-04-22 18:48:30 +00001112 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1113 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1114 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1115 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1116 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1117 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1118 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
1119 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1120 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1121 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1122 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1123 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1124 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1125 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1126 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1127 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1128 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1129 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1130 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1131 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1132 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1133 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1134 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1135 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1136 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1137 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001138 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1139 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1140 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1141 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1142 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1143 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1144 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1145 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1146 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1147 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001148 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001149 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001150 },
cristy3ed852e2009-09-05 21:47:34 +00001151 LayerOptions[] =
1152 {
cristy042ee782011-04-22 18:48:30 +00001153 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1154 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1155 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1156 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1157 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1158 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1159 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1160 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1161 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1162 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1163 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1164 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1165 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1166 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1167 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1168 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1169 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1170 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001171 },
1172 LineCapOptions[] =
1173 {
cristy042ee782011-04-22 18:48:30 +00001174 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1175 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1176 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1177 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1178 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001179 },
1180 LineJoinOptions[] =
1181 {
cristy042ee782011-04-22 18:48:30 +00001182 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1183 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1184 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1185 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1186 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001187 },
1188 ListOptions[] =
1189 {
cristy042ee782011-04-22 18:48:30 +00001190 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
1191 { "Alpha", MagickAlphaOptions, UndefinedOptionFlag, MagickFalse },
1192 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
1193 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1194 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1195 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1196 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1197 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1198 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1199 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
1200 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1201 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1202 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1203 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1204 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1205 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1206 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1207 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1208 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1209 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1210 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1211 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1212 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1213 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1214 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1215 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1216 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1217 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1218 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001219 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1220 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1221 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1222 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1223 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1224 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1225 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1226 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1227 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1228 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1229 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1230 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1231 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1232 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1233 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1234 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1235 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1236 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1237 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1238 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001239 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
1240 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001241 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1242 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1243 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1244 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1245 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1246 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1247 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1248 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1249 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1250 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1251 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1253 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1254 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1255 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1256 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1257 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1258 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1259 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001260 },
1261 LogEventOptions[] =
1262 {
cristy042ee782011-04-22 18:48:30 +00001263 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1264 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001265 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001266 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1267 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1268 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1269 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
1270 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1271 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1272 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1273 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1274 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1275 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1276 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001277 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001278 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1279 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1280 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1281 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1282 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1283 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1284 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1285 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001286 },
1287 MetricOptions[] =
1288 {
cristy042ee782011-04-22 18:48:30 +00001289 { "Undefined", UndefinedMetric, UndefinedOptionFlag, MagickTrue },
1290 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1291 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1292 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1293 { "MEPP", MeanErrorPerPixelMetric, UndefinedOptionFlag, MagickFalse },
1294 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1295 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1296 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1297 { "PSNR", PeakSignalToNoiseRatioMetric, UndefinedOptionFlag, MagickFalse },
1298 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1299 { (char *) NULL, UndefinedMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001300 },
1301 MethodOptions[] =
1302 {
cristy042ee782011-04-22 18:48:30 +00001303 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1304 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1305 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1306 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1307 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1308 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1309 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001310 },
1311 ModeOptions[] =
1312 {
cristy042ee782011-04-22 18:48:30 +00001313 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1314 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1315 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1316 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1317 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001318 },
anthony602ab9b2010-01-05 08:06:50 +00001319 MorphologyOptions[] =
1320 {
cristy042ee782011-04-22 18:48:30 +00001321 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1322 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1323 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1324 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1325 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1326 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1327 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1328 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1329 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1330 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1331 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1332 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1333 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1334 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1335 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1336 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1337 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1338 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1339 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1340 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1341 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001342 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1343 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1344 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1345 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1346 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001347 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1348 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001349 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1350 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001351 },
cristy3ed852e2009-09-05 21:47:34 +00001352 NoiseOptions[] =
1353 {
cristy042ee782011-04-22 18:48:30 +00001354 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1355 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1356 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1357 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1358 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1359 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1360 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1361 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1362 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001363 },
1364 OrientationOptions[] =
1365 {
cristy042ee782011-04-22 18:48:30 +00001366 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1367 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1368 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1369 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1370 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1371 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1372 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1373 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1374 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1375 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001376 },
cristy6dcb9b82011-10-23 23:21:25 +00001377 PixelChannelOptions[] =
1378 {
1379 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001380 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001381 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001382 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001383 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001384 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1385 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1386 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1387 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001388 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001389 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1390 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1391 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001392 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001393 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1394 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1395 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001396 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1397 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001398 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
1399 { "Mask", MaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001400 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001401 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1402 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001403 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001404 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1405 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1406 },
1407 PixelTraitOptions[] =
1408 {
1409 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1410 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1411 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1412 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1413 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1414 },
cristy3ed852e2009-09-05 21:47:34 +00001415 PolicyDomainOptions[] =
1416 {
cristy042ee782011-04-22 18:48:30 +00001417 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1418 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1419 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1420 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1421 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1422 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1423 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1424 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001425 },
1426 PolicyRightsOptions[] =
1427 {
cristy042ee782011-04-22 18:48:30 +00001428 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1429 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1430 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1431 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1432 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1433 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001434 },
1435 PreviewOptions[] =
1436 {
cristy042ee782011-04-22 18:48:30 +00001437 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1438 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1439 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1440 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1441 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1442 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1443 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1444 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1445 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1446 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1447 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1448 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1449 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1450 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1451 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1452 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1453 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1454 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1455 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1456 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1457 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1458 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1459 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1460 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1461 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1462 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1463 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1464 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1465 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1466 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1467 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001468 },
1469 PrimitiveOptions[] =
1470 {
cristy042ee782011-04-22 18:48:30 +00001471 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1472 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1473 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1474 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1475 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1476 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1477 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1478 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1479 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1480 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1481 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1482 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1483 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1484 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1485 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1486 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1487 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001488 },
1489 QuantumFormatOptions[] =
1490 {
cristy042ee782011-04-22 18:48:30 +00001491 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1492 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1493 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1494 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1495 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001496 },
1497 ResolutionOptions[] =
1498 {
cristy042ee782011-04-22 18:48:30 +00001499 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1500 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1501 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1502 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001503 },
1504 ResourceOptions[] =
1505 {
cristy042ee782011-04-22 18:48:30 +00001506 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1507 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1508 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1509 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1510 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1511 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1512 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1513 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1514 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001515 },
1516 SparseColorOptions[] =
1517 {
cristy042ee782011-04-22 18:48:30 +00001518 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1519 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1520 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001521 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001522 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1523 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1524 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001525 },
cristy0834d642011-03-18 18:26:08 +00001526 StatisticOptions[] =
1527 {
cristy042ee782011-04-22 18:48:30 +00001528 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1529 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1530 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1531 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1532 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1533 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1534 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001535 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001536 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1537 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001538 },
cristy3ed852e2009-09-05 21:47:34 +00001539 StorageOptions[] =
1540 {
cristy042ee782011-04-22 18:48:30 +00001541 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1542 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1543 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1544 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001545 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001546 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001547 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1548 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1549 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001550 },
1551 StretchOptions[] =
1552 {
cristy042ee782011-04-22 18:48:30 +00001553 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1554 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1555 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1556 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1557 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1558 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1559 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1560 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1561 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1562 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1563 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1564 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001565 },
1566 StyleOptions[] =
1567 {
cristy042ee782011-04-22 18:48:30 +00001568 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1569 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1570 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1571 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1572 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1573 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001574 },
1575 TypeOptions[] =
1576 {
cristy042ee782011-04-22 18:48:30 +00001577 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1578 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1579 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001580 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001581 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1582 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001583 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001584 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1585 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1586 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001587 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001588 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001589 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001590 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001591 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001592 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1593 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1594 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001595 },
1596 ValidateOptions[] =
1597 {
cristy042ee782011-04-22 18:48:30 +00001598 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1599 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
1600 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1601 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1602 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
1603 { "FormatsInMemory", FormatsInMemoryValidate, UndefinedOptionFlag, MagickFalse },
1604 { "FormatsOnDisk", FormatsOnDiskValidate, UndefinedOptionFlag, MagickFalse },
1605 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1606 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1607 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1608 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1609 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1610 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001611 },
1612 VirtualPixelOptions[] =
1613 {
cristy042ee782011-04-22 18:48:30 +00001614 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1615 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1616 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001617 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001618 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1619 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1620 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1621 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1622 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1623 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1624 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001625 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001626 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1627 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1628 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1629 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1630 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1631 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1632 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001633 };
1634
anthony686b1a32012-02-15 14:50:53 +00001635static const OptionInfo *GetOptionInfo(const CommandOption option)
1636{
1637 switch (option)
1638 {
1639 case MagickAlignOptions: return(AlignOptions);
1640 case MagickAlphaOptions: return(AlphaOptions);
1641 case MagickBooleanOptions: return(BooleanOptions);
1642 case MagickChannelOptions: return(ChannelOptions);
1643 case MagickClassOptions: return(ClassOptions);
1644 case MagickClipPathOptions: return(ClipPathOptions);
1645 case MagickColorspaceOptions: return(ColorspaceOptions);
1646 case MagickCommandOptions: return(CommandOptions);
1647 case MagickComposeOptions: return(ComposeOptions);
1648 case MagickCompressOptions: return(CompressOptions);
1649 case MagickDataTypeOptions: return(DataTypeOptions);
1650 case MagickDebugOptions: return(LogEventOptions);
1651 case MagickDecorateOptions: return(DecorateOptions);
1652 case MagickDirectionOptions: return(DirectionOptions);
1653 case MagickDisposeOptions: return(DisposeOptions);
1654 case MagickDistortOptions: return(DistortOptions);
1655 case MagickDitherOptions: return(DitherOptions);
1656 case MagickEndianOptions: return(EndianOptions);
1657 case MagickEvaluateOptions: return(EvaluateOptions);
1658 case MagickFillRuleOptions: return(FillRuleOptions);
1659 case MagickFilterOptions: return(FilterOptions);
1660 case MagickFunctionOptions: return(FunctionOptions);
1661 case MagickGravityOptions: return(GravityOptions);
1662/* case MagickImageListOptions: return(ImageListOptions); */
1663 case MagickIntentOptions: return(IntentOptions);
1664 case MagickInterlaceOptions: return(InterlaceOptions);
1665 case MagickInterpolateOptions: return(InterpolateOptions);
1666 case MagickKernelOptions: return(KernelOptions);
1667 case MagickLayerOptions: return(LayerOptions);
1668 case MagickLineCapOptions: return(LineCapOptions);
1669 case MagickLineJoinOptions: return(LineJoinOptions);
1670 case MagickListOptions: return(ListOptions);
1671 case MagickLogEventOptions: return(LogEventOptions);
1672 case MagickMetricOptions: return(MetricOptions);
1673 case MagickMethodOptions: return(MethodOptions);
1674 case MagickModeOptions: return(ModeOptions);
1675 case MagickMorphologyOptions: return(MorphologyOptions);
1676 case MagickNoiseOptions: return(NoiseOptions);
1677 case MagickOrientationOptions: return(OrientationOptions);
1678 case MagickPixelChannelOptions: return(PixelChannelOptions);
1679 case MagickPixelTraitOptions: return(PixelTraitOptions);
1680 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
1681 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
1682 case MagickPreviewOptions: return(PreviewOptions);
1683 case MagickPrimitiveOptions: return(PrimitiveOptions);
1684 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
1685 case MagickResolutionOptions: return(ResolutionOptions);
1686 case MagickResourceOptions: return(ResourceOptions);
1687 case MagickSparseColorOptions: return(SparseColorOptions);
1688 case MagickStatisticOptions: return(StatisticOptions);
1689 case MagickStorageOptions: return(StorageOptions);
1690 case MagickStretchOptions: return(StretchOptions);
1691 case MagickStyleOptions: return(StyleOptions);
1692 case MagickTypeOptions: return(TypeOptions);
1693 case MagickValidateOptions: return(ValidateOptions);
1694 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
1695 default: break;
1696 }
1697 return((const OptionInfo *) NULL);
1698}
1699
cristy3ed852e2009-09-05 21:47:34 +00001700/*
1701%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1702% %
1703% %
1704% %
1705% C l o n e I m a g e O p t i o n s %
1706% %
1707% %
1708% %
1709%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1710%
1711% CloneImageOptions() clones one or more image options.
1712%
1713% The format of the CloneImageOptions method is:
1714%
1715% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1716% const ImageInfo *clone_info)
1717%
1718% A description of each parameter follows:
1719%
1720% o image_info: the image info.
1721%
1722% o clone_info: the clone image info.
1723%
1724*/
1725MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1726 const ImageInfo *clone_info)
1727{
1728 assert(image_info != (ImageInfo *) NULL);
1729 assert(image_info->signature == MagickSignature);
1730 if (image_info->debug != MagickFalse)
1731 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1732 image_info->filename);
1733 assert(clone_info != (const ImageInfo *) NULL);
1734 assert(clone_info->signature == MagickSignature);
1735 if (clone_info->options != (void *) NULL)
1736 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1737 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1738 return(MagickTrue);
1739}
1740
1741/*
1742%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1743% %
1744% %
1745% %
1746% D e f i n e I m a g e O p t i o n %
1747% %
1748% %
1749% %
1750%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1751%
anthony8ea79832011-10-05 10:08:39 +00001752% DefineImageOption() associates an assignment string of the form
anthony72feaa62012-01-17 06:46:23 +00001753% "key=value" with an image option. It is equivelent to SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001754%
1755% The format of the DefineImageOption method is:
1756%
1757% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1758% const char *option)
1759%
1760% A description of each parameter follows:
1761%
1762% o image_info: the image info.
1763%
anthony8ea79832011-10-05 10:08:39 +00001764% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001765%
1766*/
1767MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1768 const char *option)
1769{
1770 char
1771 key[MaxTextExtent],
1772 value[MaxTextExtent];
1773
1774 register char
1775 *p;
1776
1777 assert(image_info != (ImageInfo *) NULL);
1778 assert(option != (const char *) NULL);
1779 (void) CopyMagickString(key,option,MaxTextExtent);
1780 for (p=key; *p != '\0'; p++)
1781 if (*p == '=')
1782 break;
1783 *value='\0';
1784 if (*p == '=')
1785 (void) CopyMagickString(value,p+1,MaxTextExtent);
1786 *p='\0';
1787 return(SetImageOption(image_info,key,value));
1788}
1789
1790/*
1791%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1792% %
1793% %
1794% %
1795% D e l e t e I m a g e O p t i o n %
1796% %
1797% %
1798% %
1799%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1800%
1801% DeleteImageOption() deletes an key from the image map.
1802%
anthonyebb73a22012-03-22 14:25:52 +00001803% Returns MagickTrue is the option is found and deleted from the Options.
1804%
cristy3ed852e2009-09-05 21:47:34 +00001805% The format of the DeleteImageOption method is:
1806%
1807% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1808% const char *key)
1809%
1810% A description of each parameter follows:
1811%
1812% o image_info: the image info.
1813%
1814% o option: the image option.
1815%
1816*/
1817MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1818 const char *option)
1819{
1820 assert(image_info != (ImageInfo *) NULL);
1821 assert(image_info->signature == MagickSignature);
1822 if (image_info->debug != MagickFalse)
1823 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1824 image_info->filename);
1825 if (image_info->options == (void *) NULL)
1826 return(MagickFalse);
1827 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1828}
1829
1830/*
1831%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1832% %
1833% %
1834% %
1835% D e s t r o y I m a g e O p t i o n s %
1836% %
1837% %
1838% %
1839%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1840%
1841% DestroyImageOptions() releases memory associated with image option values.
1842%
1843% The format of the DestroyDefines method is:
1844%
1845% void DestroyImageOptions(ImageInfo *image_info)
1846%
1847% A description of each parameter follows:
1848%
1849% o image_info: the image info.
1850%
1851*/
1852MagickExport void DestroyImageOptions(ImageInfo *image_info)
1853{
1854 assert(image_info != (ImageInfo *) NULL);
1855 assert(image_info->signature == MagickSignature);
1856 if (image_info->debug != MagickFalse)
1857 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1858 image_info->filename);
1859 if (image_info->options != (void *) NULL)
1860 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1861}
1862
1863/*
1864%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1865% %
1866% %
1867% %
1868% G e t I m a g e O p t i o n %
1869% %
1870% %
1871% %
1872%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1873%
1874% GetImageOption() gets a value associated with an image option.
1875%
1876% The format of the GetImageOption method is:
1877%
1878% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001879% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001880%
1881% A description of each parameter follows:
1882%
1883% o image_info: the image info.
1884%
cristye3f77792011-10-07 00:09:09 +00001885% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001886%
1887*/
1888MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001889 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001890{
cristy3ed852e2009-09-05 21:47:34 +00001891 assert(image_info != (ImageInfo *) NULL);
1892 assert(image_info->signature == MagickSignature);
1893 if (image_info->debug != MagickFalse)
1894 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1895 image_info->filename);
1896 if (image_info->options == (void *) NULL)
1897 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001898 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1899 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001900}
1901
1902/*
1903%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1904% %
1905% %
1906% %
cristy042ee782011-04-22 18:48:30 +00001907% 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 +00001908% %
1909% %
1910% %
1911%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1912%
cristy042ee782011-04-22 18:48:30 +00001913% GetCommandOptionFlags() parses a string and returns an enumerated option
1914% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00001915%
cristy042ee782011-04-22 18:48:30 +00001916% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00001917%
cristy042ee782011-04-22 18:48:30 +00001918% ssize_t GetCommandOptionFlags(const CommandOption option,
1919% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00001920%
1921% A description of each parameter follows:
1922%
cristy042ee782011-04-22 18:48:30 +00001923% o option: Index to the option table to lookup
1924%
1925% o list: A option other than zero permits more than one option separated by
1926% a comma or pipe.
1927%
1928% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00001929%
1930*/
1931
cristy042ee782011-04-22 18:48:30 +00001932MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
1933 const MagickBooleanType list,const char *options)
1934{
1935 char
1936 token[MaxTextExtent];
1937
1938 const OptionInfo
1939 *option_info;
1940
1941 int
1942 sentinel;
1943
1944 MagickBooleanType
1945 negate;
1946
1947 register char
1948 *q;
1949
1950 register const char
1951 *p;
1952
1953 register ssize_t
1954 i;
1955
1956 ssize_t
1957 option_types;
1958
1959 option_info=GetOptionInfo(option);
1960 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00001961 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00001962 option_types=0;
1963 sentinel=',';
1964 if (strchr(options,'|') != (char *) NULL)
1965 sentinel='|';
1966 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
1967 {
1968 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
1969 (*p != '\0'))
1970 p++;
1971 negate=(*p == '!') ? MagickTrue : MagickFalse;
1972 if (negate != MagickFalse)
1973 p++;
1974 q=token;
1975 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
1976 (*p != '\0'))
1977 {
cristya0019202011-06-07 13:23:55 +00001978 if ((q-token) >= (MaxTextExtent-1))
cristy042ee782011-04-22 18:48:30 +00001979 break;
1980 *q++=(*p++);
1981 }
1982 *q='\0';
1983 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
1984 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
1985 {
1986 if (*token == '!')
1987 option_types=option_types &~ option_info[i].flags;
1988 else
1989 option_types=option_types | option_info[i].flags;
1990 break;
1991 }
1992 if ((option_info[i].mnemonic == (char *) NULL) &&
1993 ((strchr(token+1,'-') != (char *) NULL) ||
1994 (strchr(token+1,'_') != (char *) NULL)))
1995 {
1996 while ((q=strchr(token+1,'-')) != (char *) NULL)
1997 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
1998 while ((q=strchr(token+1,'_')) != (char *) NULL)
1999 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2000 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2001 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2002 {
2003 if (*token == '!')
2004 option_types=option_types &~ option_info[i].flags;
2005 else
2006 option_types=option_types | option_info[i].flags;
2007 break;
2008 }
2009 }
2010 if (option_info[i].mnemonic == (char *) NULL)
2011 return(-1);
2012 if (list == MagickFalse)
2013 break;
2014 }
2015 return(option_types);
2016}
2017
2018/*
2019%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020% %
2021% %
2022% %
anthony686b1a32012-02-15 14:50:53 +00002023% G e t C o m m a n d O p t i o n I n f o %
2024% %
2025% %
2026% %
2027%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2028%
2029% GetCommandOptionInfo() returns pointer to the matching OptionInfo entry
2030% for the "CommandOptions" table only. A specialised binary search is used,
2031% to speed up the lookup for that very large table, and returns both the
2032% type (arg count) and flags (arg type).
2033%
2034% This search reduces linear search of over 500 options (250 tests of
2035% average) to about 10 lookups!
2036%
2037% The format of the GetCommandOptionInfo method is:
2038%
2039% const char **GetCommandOptions(const CommandOption value)
2040%
2041% A description of each parameter follows:
2042%
2043% o value: the value.
2044%
2045*/
2046MagickExport const OptionInfo *GetCommandOptionInfo(const char *value)
2047{
2048 const OptionInfo
2049 *option_info=CommandOptions;
2050
2051 static ssize_t
2052 table_size = 0;
2053
anthony24aa8822012-03-11 00:56:06 +00002054 register int
anthony686b1a32012-02-15 14:50:53 +00002055 i,l,h;
2056
2057 assert(value != (char *) NULL);
2058 assert(*value != '\0');
2059
2060 /* count up table items - first time only */
2061 if ( table_size == 0 )
2062 {
2063 l=-1;
2064 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2065 if ( LocaleCompare(value,option_info[i].mnemonic) == 0 )
2066 l=i;
2067 table_size = i;
anthony24aa8822012-03-11 00:56:06 +00002068 return( &option_info[(l>=0)?l:i] );
anthony686b1a32012-02-15 14:50:53 +00002069 }
2070
2071 /* faster binary search of command table, now that its length is known */
2072 l=0;
anthony668f43a2012-02-20 14:55:32 +00002073 h=table_size;
anthony686b1a32012-02-15 14:50:53 +00002074 while ( l < h )
2075 {
2076 int cmp;
2077 i = (l+h)/2; /* half the bounds */
2078 /* compare string part, then switch character! */
2079 cmp=LocaleCompare(value+1,option_info[i].mnemonic+1);
2080 if ( cmp == 0 )
2081 cmp = *value - *(option_info[i].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002082#if 0
2083 (void) FormatLocaleFile(stderr,
2084 "%d --- %u < %u < %u --- \"%s\" < \"%s\" < \"%s\"\n",
cristy73380532012-02-18 20:26:28 +00002085 cmp,l,i,h,option_info[l].mnemonic,option_info[i].mnemonic,
2086 option_info[h].mnemonic);
anthony668f43a2012-02-20 14:55:32 +00002087#endif
anthony686b1a32012-02-15 14:50:53 +00002088 if (cmp == 0)
2089 return(&option_info[i]);
2090 if (cmp > 0) l=i+1; else h=i; /* reassign search bounds */
2091 }
2092 /* option was not found in table - return last 'null' entry. */
2093 return(&option_info[table_size]);
2094}
2095
2096/*
2097%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2098% %
2099% %
2100% %
cristy042ee782011-04-22 18:48:30 +00002101% G e t C o m m a n d O p t i o n s %
2102% %
2103% %
2104% %
2105%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2106%
2107% GetCommandOptions() returns a list of values.
2108%
2109% The format of the GetCommandOptions method is:
2110%
2111% const char **GetCommandOptions(const CommandOption value)
2112%
2113% A description of each parameter follows:
2114%
2115% o value: the value.
2116%
2117*/
2118MagickExport char **GetCommandOptions(const CommandOption value)
cristy3ed852e2009-09-05 21:47:34 +00002119{
2120 char
2121 **values;
2122
2123 const OptionInfo
2124 *option_info;
2125
cristybb503372010-05-27 20:51:26 +00002126 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002127 i;
2128
2129 option_info=GetOptionInfo(value);
2130 if (option_info == (const OptionInfo *) NULL)
2131 return((char **) NULL);
2132 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
2133 values=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*values));
2134 if (values == (char **) NULL)
2135 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2136 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2137 values[i]=AcquireString(option_info[i].mnemonic);
2138 values[i]=(char *) NULL;
2139 return(values);
2140}
2141
2142/*
2143%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2144% %
2145% %
2146% %
2147% G e t N e x t I m a g e O p t i o n %
2148% %
2149% %
2150% %
2151%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2152%
2153% GetNextImageOption() gets the next image option value.
2154%
2155% The format of the GetNextImageOption method is:
2156%
2157% char *GetNextImageOption(const ImageInfo *image_info)
2158%
2159% A description of each parameter follows:
2160%
2161% o image_info: the image info.
2162%
2163*/
2164MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2165{
2166 assert(image_info != (ImageInfo *) NULL);
2167 assert(image_info->signature == MagickSignature);
2168 if (image_info->debug != MagickFalse)
2169 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2170 image_info->filename);
2171 if (image_info->options == (void *) NULL)
2172 return((char *) NULL);
2173 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2174}
2175
2176/*
2177%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2178% %
2179% %
2180% %
cristy042ee782011-04-22 18:48:30 +00002181% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002182% %
2183% %
2184% %
2185%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2186%
cristy042ee782011-04-22 18:48:30 +00002187% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002188% the first character that follows is alphanumeric.
2189%
cristy042ee782011-04-22 18:48:30 +00002190% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002191%
cristy042ee782011-04-22 18:48:30 +00002192% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002193%
2194% A description of each parameter follows:
2195%
2196% o option: the option.
2197%
2198*/
cristy042ee782011-04-22 18:48:30 +00002199MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002200{
2201 assert(option != (const char *) NULL);
2202 if ((*option != '-') && (*option != '+'))
2203 return(MagickFalse);
2204 if (strlen(option) == 1)
anthonye5b39652012-04-21 05:37:29 +00002205 return(IsMagickTrue( (*option == '{') || (*option == '}')
2206 || (*option == '[') || (*option == ']') ));
cristy3ed852e2009-09-05 21:47:34 +00002207 option++;
anthonye5b39652012-04-21 05:37:29 +00002208 if (*option == '-')
2209 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002210 if (isalpha((int) ((unsigned char) *option)) == 0)
2211 return(MagickFalse);
2212 return(MagickTrue);
2213}
2214
2215/*
2216%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2217% %
2218% %
2219% %
cristy042ee782011-04-22 18:48:30 +00002220% 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 +00002221% %
2222% %
2223% %
2224%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2225%
cristy042ee782011-04-22 18:48:30 +00002226% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002227%
cristy042ee782011-04-22 18:48:30 +00002228% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002229%
cristy042ee782011-04-22 18:48:30 +00002230% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002231% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002232%
2233% A description of each parameter follows:
2234%
2235% o option: the option.
2236%
2237% o type: one or more values separated by commas.
2238%
2239*/
cristy042ee782011-04-22 18:48:30 +00002240MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002241 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002242{
2243 const OptionInfo
2244 *option_info;
2245
cristybb503372010-05-27 20:51:26 +00002246 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002247 i;
2248
2249 option_info=GetOptionInfo(option);
2250 if (option_info == (const OptionInfo *) NULL)
2251 return((const char *) NULL);
2252 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2253 if (type == option_info[i].type)
2254 break;
2255 if (option_info[i].mnemonic == (const char *) NULL)
2256 return("undefined");
2257 return(option_info[i].mnemonic);
2258}
2259
2260/*
2261%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2262% %
2263% %
2264% %
cristy042ee782011-04-22 18:48:30 +00002265% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002266% %
2267% %
2268% %
2269%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2270%
cristy042ee782011-04-22 18:48:30 +00002271% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002272%
cristy042ee782011-04-22 18:48:30 +00002273% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002274%
cristy2b9582a2011-07-04 17:38:56 +00002275% MagickBooleanType ListCommandOptions(FILE *file,
2276% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002277%
2278% A description of each parameter follows:
2279%
2280% o file: list options to this file handle.
2281%
2282% o option: list these options.
2283%
2284% o exception: return any errors or warnings in this structure.
2285%
2286*/
cristy042ee782011-04-22 18:48:30 +00002287MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2288 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002289{
2290 const OptionInfo
2291 *option_info;
2292
cristybb503372010-05-27 20:51:26 +00002293 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002294 i;
2295
2296 if (file == (FILE *) NULL)
2297 file=stdout;
2298 option_info=GetOptionInfo(option);
2299 if (option_info == (const OptionInfo *) NULL)
2300 return(MagickFalse);
2301 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2302 {
2303 if (option_info[i].stealth != MagickFalse)
2304 continue;
cristyb51dff52011-05-19 16:55:47 +00002305 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002306 }
2307 return(MagickTrue);
2308}
2309
2310/*
2311%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2312% %
2313% %
2314% %
2315% P a r s e C h a n n e l O p t i o n %
2316% %
2317% %
2318% %
2319%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2320%
2321% ParseChannelOption() parses a string and returns an enumerated channel
2322% type(s).
2323%
2324% The format of the ParseChannelOption method is:
2325%
cristybb503372010-05-27 20:51:26 +00002326% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002327%
2328% A description of each parameter follows:
2329%
2330% o options: One or more values separated by commas.
2331%
2332*/
cristybb503372010-05-27 20:51:26 +00002333MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002334{
cristybb503372010-05-27 20:51:26 +00002335 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002336 i;
2337
cristyb9902b72010-10-05 18:21:50 +00002338 ssize_t
2339 channel;
2340
cristy042ee782011-04-22 18:48:30 +00002341 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002342 if (channel >= 0)
2343 return(channel);
2344 channel=0;
cristybb503372010-05-27 20:51:26 +00002345 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002346 {
2347 switch (channels[i])
2348 {
2349 case 'A':
2350 case 'a':
2351 {
cristy953c4bd2012-02-24 01:04:04 +00002352 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002353 break;
2354 }
2355 case 'B':
2356 case 'b':
2357 {
2358 channel|=BlueChannel;
2359 break;
2360 }
2361 case 'C':
2362 case 'c':
2363 {
2364 channel|=CyanChannel;
2365 break;
2366 }
2367 case 'g':
2368 case 'G':
2369 {
2370 channel|=GreenChannel;
2371 break;
2372 }
cristy3ed852e2009-09-05 21:47:34 +00002373 case 'K':
2374 case 'k':
2375 {
2376 channel|=BlackChannel;
2377 break;
2378 }
2379 case 'M':
2380 case 'm':
2381 {
2382 channel|=MagentaChannel;
2383 break;
2384 }
2385 case 'o':
2386 case 'O':
2387 {
anthony30b912a2012-03-22 01:20:28 +00002388 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002389 break;
2390 }
2391 case 'R':
2392 case 'r':
2393 {
2394 channel|=RedChannel;
2395 break;
2396 }
2397 case 'Y':
2398 case 'y':
2399 {
2400 channel|=YellowChannel;
2401 break;
2402 }
2403 case ',':
2404 {
cristybb503372010-05-27 20:51:26 +00002405 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002406 type;
2407
2408 /*
2409 Gather the additional channel flags and merge with shorthand.
2410 */
cristy042ee782011-04-22 18:48:30 +00002411 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002412 if (type < 0)
2413 return(type);
2414 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002415 return(channel);
2416 }
2417 default:
2418 return(-1);
2419 }
2420 }
2421 return(channel);
2422}
2423
2424/*
2425%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2426% %
2427% %
2428% %
cristy042ee782011-04-22 18:48:30 +00002429% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002430% %
2431% %
2432% %
2433%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2434%
cristy042ee782011-04-22 18:48:30 +00002435% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002436% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002437%
cristy042ee782011-04-22 18:48:30 +00002438% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002439%
anthony31f1bf72012-01-30 12:37:22 +00002440% ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002441% const MagickBooleanType list,const char *options)
2442%
2443% A description of each parameter follows:
2444%
anthony31f1bf72012-01-30 12:37:22 +00002445% o option_table: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002446%
2447% o list: A option other than zero permits more than one option separated by
2448% a comma or pipe.
2449%
2450% o options: One or more options separated by commas.
2451%
2452*/
anthony31f1bf72012-01-30 12:37:22 +00002453MagickExport ssize_t ParseCommandOption(const CommandOption option_table,
cristy3ed852e2009-09-05 21:47:34 +00002454 const MagickBooleanType list,const char *options)
2455{
2456 char
2457 token[MaxTextExtent];
2458
2459 const OptionInfo
2460 *option_info;
2461
2462 int
2463 sentinel;
2464
cristy3ed852e2009-09-05 21:47:34 +00002465 MagickBooleanType
2466 negate;
2467
2468 register char
2469 *q;
2470
2471 register const char
2472 *p;
2473
cristybb503372010-05-27 20:51:26 +00002474 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002475 i;
2476
cristyb9902b72010-10-05 18:21:50 +00002477 ssize_t
2478 option_types;
2479
anthony31f1bf72012-01-30 12:37:22 +00002480 option_info=GetOptionInfo(option_table);
cristy3ed852e2009-09-05 21:47:34 +00002481 if (option_info == (const OptionInfo *) NULL)
2482 return(-1);
2483 option_types=0;
2484 sentinel=',';
2485 if (strchr(options,'|') != (char *) NULL)
2486 sentinel='|';
2487 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2488 {
2489 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2490 (*p != '\0'))
2491 p++;
2492 negate=(*p == '!') ? MagickTrue : MagickFalse;
2493 if (negate != MagickFalse)
2494 p++;
2495 q=token;
2496 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2497 (*p != '\0'))
2498 {
cristya0019202011-06-07 13:23:55 +00002499 if ((q-token) >= (MaxTextExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002500 break;
2501 *q++=(*p++);
2502 }
2503 *q='\0';
2504 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2505 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2506 {
2507 if (*token == '!')
2508 option_types=option_types &~ option_info[i].type;
2509 else
2510 option_types=option_types | option_info[i].type;
2511 break;
2512 }
2513 if ((option_info[i].mnemonic == (char *) NULL) &&
2514 ((strchr(token+1,'-') != (char *) NULL) ||
2515 (strchr(token+1,'_') != (char *) NULL)))
2516 {
2517 while ((q=strchr(token+1,'-')) != (char *) NULL)
2518 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2519 while ((q=strchr(token+1,'_')) != (char *) NULL)
2520 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2521 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2522 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2523 {
2524 if (*token == '!')
2525 option_types=option_types &~ option_info[i].type;
2526 else
2527 option_types=option_types | option_info[i].type;
2528 break;
2529 }
2530 }
2531 if (option_info[i].mnemonic == (char *) NULL)
2532 return(-1);
2533 if (list == MagickFalse)
2534 break;
2535 }
2536 return(option_types);
2537}
2538
2539/*
2540%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2541% %
2542% %
2543% %
cristy953c4bd2012-02-24 01:04:04 +00002544% P a r s e P i x e l C h a n n e l O p t i o n %
2545% %
2546% %
2547% %
2548%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2549%
2550% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2551% channel type(s).
2552%
2553% The format of the ParsePixelChannelOption method is:
2554%
2555% ssize_t ParsePixelChannelOption(const char *channels)
2556%
2557% A description of each parameter follows:
2558%
cristyd04e7bf2012-03-03 19:19:12 +00002559% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002560%
2561*/
2562MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2563{
cristyd04e7bf2012-03-03 19:19:12 +00002564 char
cristya15140f2012-03-04 01:21:15 +00002565 *q,
2566 token[MaxTextExtent];
cristy953c4bd2012-02-24 01:04:04 +00002567
2568 ssize_t
2569 channel;
2570
cristya15140f2012-03-04 01:21:15 +00002571 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002572 if ((*token == ';') || (*token == '|'))
2573 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002574 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002575 if (channel >= 0)
2576 return(channel);
cristya15140f2012-03-04 01:21:15 +00002577 q=(char *) token;
2578 channel=InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002579 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002580 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002581 return(channel);
2582}
2583
2584/*
2585%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2586% %
2587% %
2588% %
cristy3ed852e2009-09-05 21:47:34 +00002589% R e m o v e I m a g e O p t i o n %
2590% %
2591% %
2592% %
2593%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2594%
2595% RemoveImageOption() removes an option from the image and returns its value.
2596%
2597% The format of the RemoveImageOption method is:
2598%
2599% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2600%
2601% A description of each parameter follows:
2602%
2603% o image_info: the image info.
2604%
2605% o option: the image option.
2606%
2607*/
2608MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2609{
2610 char
2611 *value;
2612
2613 assert(image_info != (ImageInfo *) NULL);
2614 assert(image_info->signature == MagickSignature);
2615 if (image_info->debug != MagickFalse)
2616 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2617 image_info->filename);
2618 if (image_info->options == (void *) NULL)
2619 return((char *) NULL);
2620 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2621 image_info->options,option);
2622 return(value);
2623}
2624
2625/*
2626%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2627% %
2628% %
2629% %
2630% R e s e t I m a g e O p t i o n %
2631% %
2632% %
2633% %
2634%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2635%
2636% ResetImageOptions() resets the image_info option. That is, it deletes
2637% all options associated with the image_info structure.
2638%
2639% The format of the ResetImageOptions method is:
2640%
2641% ResetImageOptions(ImageInfo *image_info)
2642%
2643% A description of each parameter follows:
2644%
2645% o image_info: the image info.
2646%
2647*/
2648MagickExport void ResetImageOptions(const ImageInfo *image_info)
2649{
2650 assert(image_info != (ImageInfo *) NULL);
2651 assert(image_info->signature == MagickSignature);
2652 if (image_info->debug != MagickFalse)
2653 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2654 image_info->filename);
2655 if (image_info->options == (void *) NULL)
2656 return;
2657 ResetSplayTree((SplayTreeInfo *) image_info->options);
2658}
2659
2660/*
2661%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2662% %
2663% %
2664% %
2665% R e s e t I m a g e O p t i o n I t e r a t o r %
2666% %
2667% %
2668% %
2669%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2670%
2671% ResetImageOptionIterator() resets the image_info values iterator. Use it
2672% in conjunction with GetNextImageOption() to iterate over all the values
2673% associated with an image option.
2674%
2675% The format of the ResetImageOptionIterator method is:
2676%
2677% ResetImageOptionIterator(ImageInfo *image_info)
2678%
2679% A description of each parameter follows:
2680%
2681% o image_info: the image info.
2682%
2683*/
2684MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2685{
2686 assert(image_info != (ImageInfo *) NULL);
2687 assert(image_info->signature == MagickSignature);
2688 if (image_info->debug != MagickFalse)
2689 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2690 image_info->filename);
2691 if (image_info->options == (void *) NULL)
2692 return;
2693 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2694}
2695
2696/*
2697%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2698% %
2699% %
2700% %
2701% S e t I m a g e O p t i o n %
2702% %
2703% %
2704% %
2705%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2706%
2707% SetImageOption() associates an value with an image option.
2708%
2709% The format of the SetImageOption method is:
2710%
2711% MagickBooleanType SetImageOption(ImageInfo *image_info,
2712% const char *option,const char *value)
2713%
2714% A description of each parameter follows:
2715%
2716% o image_info: the image info.
2717%
2718% o option: the image option.
2719%
2720% o values: the image option values.
2721%
2722*/
2723MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2724 const char *option,const char *value)
2725{
cristy3ed852e2009-09-05 21:47:34 +00002726 assert(image_info != (ImageInfo *) NULL);
2727 assert(image_info->signature == MagickSignature);
2728 if (image_info->debug != MagickFalse)
2729 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2730 image_info->filename);
anthony7df2b832011-10-06 11:55:25 +00002731
anthony7bb7aee2012-05-15 00:09:16 +00002732 /* FUTURE: This should not be here! - but others might */
cristy3ed852e2009-09-05 21:47:34 +00002733 if (LocaleCompare(option,"size") == 0)
2734 (void) CloneString(&image_info->size,value);
anthony7df2b832011-10-06 11:55:25 +00002735
anthony72feaa62012-01-17 06:46:23 +00002736 /* create tree if needed - specify how key,values are to be freed */
cristy3ed852e2009-09-05 21:47:34 +00002737 if (image_info->options == (void *) NULL)
2738 image_info->options=NewSplayTree(CompareSplayTreeString,
2739 RelinquishMagickMemory,RelinquishMagickMemory);
anthony7df2b832011-10-06 11:55:25 +00002740
anthonyd181ea02011-10-12 07:44:13 +00002741 /* Delete Option if NULL */
2742 if (value == (const char *) NULL)
2743 return(DeleteImageOption(image_info,option));
2744
anthony7bb7aee2012-05-15 00:09:16 +00002745 /* add option to splay-tree */
cristye3f77792011-10-07 00:09:09 +00002746 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2747 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002748}