blob: 53b82d04ce91fe0d4736b950ac1e2c0a3305af93 [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 %
cristyde984cd2013-12-01 14:49:27 +000016% Cristy %
cristy3ed852e2009-09-05 21:47:34 +000017% March 2000 %
18% %
19% %
cristyfe676ee2013-11-18 13:03:38 +000020% Copyright 1999-2014 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"
cristy790190d2013-10-04 00:51:51 +000054#include "MagickCore/fourier.h"
cristy4c08aed2011-07-01 19:47:50 +000055#include "MagickCore/fx.h"
56#include "MagickCore/gem.h"
57#include "MagickCore/geometry.h"
58#include "MagickCore/image.h"
59#include "MagickCore/image-private.h"
60#include "MagickCore/layer.h"
61#include "MagickCore/mime-private.h"
62#include "MagickCore/memory_.h"
63#include "MagickCore/monitor.h"
64#include "MagickCore/montage.h"
65#include "MagickCore/morphology.h"
66#include "MagickCore/option.h"
cristy71ffec42014-06-25 12:52:49 +000067#include "MagickCore/option-private.h"
cristyac73d1f2013-03-12 00:51:09 +000068#include "MagickCore/pixel.h"
cristy4c08aed2011-07-01 19:47:50 +000069#include "MagickCore/policy.h"
70#include "MagickCore/property.h"
71#include "MagickCore/quantize.h"
72#include "MagickCore/quantum.h"
73#include "MagickCore/resample.h"
74#include "MagickCore/resource_.h"
75#include "MagickCore/splay-tree.h"
76#include "MagickCore/statistic.h"
77#include "MagickCore/string_.h"
78#include "MagickCore/token.h"
79#include "MagickCore/utility.h"
cristy3ed852e2009-09-05 21:47:34 +000080
81/*
82 ImageMagick options.
83*/
84static const OptionInfo
85 AlignOptions[] =
86 {
cristy042ee782011-04-22 18:48:30 +000087 { "Undefined", UndefinedAlign, UndefinedOptionFlag, MagickTrue },
88 { "Center", CenterAlign, UndefinedOptionFlag, MagickFalse },
89 { "End", RightAlign, UndefinedOptionFlag, MagickFalse },
90 { "Left", LeftAlign, UndefinedOptionFlag, MagickFalse },
91 { "Middle", CenterAlign, UndefinedOptionFlag, MagickFalse },
92 { "Right", RightAlign, UndefinedOptionFlag, MagickFalse },
93 { "Start", LeftAlign, UndefinedOptionFlag, MagickFalse },
94 { (char *) NULL, UndefinedAlign, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +000095 },
cristy288a3532012-08-28 00:19:44 +000096 AlphaChannelOptions[] =
cristy3ed852e2009-09-05 21:47:34 +000097 {
cristy042ee782011-04-22 18:48:30 +000098 { "Undefined", UndefinedAlphaChannel, UndefinedOptionFlag, MagickTrue },
99 { "Activate", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
100 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
101 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
104 { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
105 { "On", ActivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
106 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy61808382012-01-30 01:24:49 +0000107 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000108 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
109 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000110 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000111 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
112 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000113 },
114 BooleanOptions[] =
115 {
anthony72feaa62012-01-17 06:46:23 +0000116 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
117 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
118 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
119 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
120 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000121 },
cristy947cef22013-01-17 14:16:40 +0000122 CacheOptions[] =
123 {
124 { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
125 { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
126 { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
127 { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
128 { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
129 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
130 },
cristy3ed852e2009-09-05 21:47:34 +0000131 ChannelOptions[] =
132 {
cristy042ee782011-04-22 18:48:30 +0000133 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000134 /* special */
cristy9a9230e2011-04-26 14:56:14 +0000135 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000136 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
137 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
138 /* individual channel */
139 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy953c4bd2012-02-24 01:04:04 +0000140 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000141 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000142 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000143 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000144 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000145 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000146 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000147 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000148 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000149 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000150 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000151 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
152 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000153 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
154 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000155 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000156 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000157 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000158 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
159 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
160 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000161 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000162 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000163 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000164 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000165 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000166 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000167 },
168 ClassOptions[] =
169 {
cristy042ee782011-04-22 18:48:30 +0000170 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
171 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
172 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
173 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000174 },
175 ClipPathOptions[] =
176 {
cristy042ee782011-04-22 18:48:30 +0000177 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
178 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
179 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
180 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
181 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000182 },
183 CommandOptions[] =
184 {
cristy62841852014-09-12 15:24:39 +0000185 /*
186 Must be ordered lexigraphically.
187 */
cristy6e648952014-09-16 23:28:18 +0000188 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
189 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
190 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
191 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
192 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
193 { "-format", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
194 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
195 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
196 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
197 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
198 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
199 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
200 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
201 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
202 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
203 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
204 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
205 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
206 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
207 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000208 { "(", 0L, NoImageOperatorFlag, MagickTrue },
209 { ")", 0L, NoImageOperatorFlag, MagickTrue },
210 { "{", 0L, NoImageOperatorFlag, MagickTrue },
211 { "}", 0L, NoImageOperatorFlag, MagickTrue },
212 { "--", 1L, NoImageOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000213 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000214 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000215 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000216 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000217 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000218 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000219 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000220 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000221 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
222 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony31f1bf72012-01-30 12:37:22 +0000223 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000224 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000225 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000226 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000227 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000228 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000229 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000230 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000231 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
anthony92c93bd2012-03-19 14:02:47 +0000232 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000233 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
234 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000235 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000236 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000237 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000238 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000239 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000240 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000241 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000242 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000243 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
244 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000245 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
anthony9a6469e2011-05-04 11:07:31 +0000246 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000247 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
248 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000249 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000250 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000251 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000252 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000253 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
254 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000255 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
256 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000257 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000258 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000259 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000260 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000261 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
262 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000263 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
264 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000265 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
266 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000267 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000268 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000269 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
270 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
cristy2fc10e52014-04-26 14:13:53 +0000271 { "+canny", 1L, DeprecateOptionFlag, MagickTrue },
cristybd7d96a2014-04-19 20:27:43 +0000272 { "-canny", 1L, SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000273 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
274 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000275 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000276 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonydf9471d2012-03-22 03:53:05 +0000277 { "+channel", 0L, ImageInfoOptionFlag, MagickFalse },
278 { "-channel", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000279 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyf57e5482013-02-17 22:11:27 +0000280 { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
281 { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000282 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000283 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000284 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000285 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000286 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000287 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000288 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
289 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000290 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000291 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000292 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
293 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000294 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000295 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000296 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000297 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000298 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000299 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000300 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
301 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000302 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
303 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000304 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000305 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
306 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
307 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony5a4ff372013-05-01 04:48:57 +0000308 { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000309 { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000310 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
311 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
cristya111cac2013-08-20 00:30:49 +0000312 { "+compare", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
313 { "-compare", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristy34919ed2013-10-06 15:42:40 +0000314 { "+complex", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy1141c852013-10-04 15:17:30 +0000315 { "-complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000316 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
317 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000318 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000319 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000320 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
321 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000322 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
anthonyebb73a22012-03-22 14:25:52 +0000323 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000324 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000325 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000326 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000327 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000328 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000329 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000330 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000331 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000332 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000333 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000334 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
335 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000336 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000337 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000338 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000339 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000340 { "-define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000341 { "+define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000342 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
343 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000344 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
345 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000346 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000347 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000348 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
349 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000350 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
351 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000352 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
353 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000354 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000355 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000356 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
357 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000358 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
359 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000360 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000361 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000362 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
363 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000364 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
365 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000366 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
367 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000368 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000369 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000370 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
371 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000372 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000373 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
374 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
375 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony9a6469e2011-05-04 11:07:31 +0000376 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000377 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000378 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000379 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000380 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000381 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000382 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000383 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000384 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000385 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000386 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
387 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000388 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000389 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000390 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000391 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000392 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000393 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000394 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000395 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000396 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000397 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000398 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000399 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
400 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000401 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000402 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000403 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
404 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000405 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000406 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000407 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
408 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000409 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
410 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000411 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000412 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000413 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000414 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000415 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000416 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000417 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000418 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000419 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
420 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000421 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
422 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000423 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000424 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000425 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000426 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000427 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
428 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000429 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000430 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000431 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000432 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000433 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000434 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000435 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000436 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
437 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
438 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000439 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
440 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristye0b9b8f2013-03-28 12:39:39 +0000441 { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000442 { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000443 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
444 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000445 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000446 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000447 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
448 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristy2fc10e52014-04-26 14:13:53 +0000449 { "+hough-lines", 1L, DeprecateOptionFlag, MagickTrue },
cristybd7d96a2014-04-19 20:27:43 +0000450 { "-hough-lines", 1L, SimpleOperatorFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000451 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
452 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000453 { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000454 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000455 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000456 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000457 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000458 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000459 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000460 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000461 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000462 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
463 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
464 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya14c5122013-03-15 10:42:52 +0000465 { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
466 { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000467 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
468 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
469 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
470 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000471 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
472 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000473 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
474 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000475 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000476 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000477 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
478 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000479 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
480 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristy3b207f82014-09-27 14:21:20 +0000481 { "+kuwahara", 0L, DeprecateOptionFlag, MagickTrue },
482 { "-kuwahara", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000483 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
484 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000485 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000486 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000487 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000488 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000489 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000490 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000491 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000492 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000493 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000494 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000495 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000496 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000497 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000498 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000499 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000500 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000501 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000502 { "-log", 1L, GlobalOptionFlag, MagickFalse },
503 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
504 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000505 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
506 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristy7220ee42013-04-14 01:30:34 +0000507 { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
508 { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000509 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
510 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000511 { "+mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
512 { "-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000513 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000514 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000515 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
516 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000517 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000518 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy2fc10e52014-04-26 14:13:53 +0000519 { "+mean-shift", 1L, DeprecateOptionFlag, MagickTrue },
520 { "-mean-shift", 1L, SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000521 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000522 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
cristy6c8baa72013-08-20 00:39:06 +0000523 { "+metric", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
524 { "-metric", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000525 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000526 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000527 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000528 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000529 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000530 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000531 { "-moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
532 { "+moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000533 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000534 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000535 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000536 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000537 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000538 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000539 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000540 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000541 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000542 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000543 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000544 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000545 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
546 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000547 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000548 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000549 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000550 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000551 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000552 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000553 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000554 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000555 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000556 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000557 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000558 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
559 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000560 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
561 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000562 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000563 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000564 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
565 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
566 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
567 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000568 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000569 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000570 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
571 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000572 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
573 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
cristyf56e6ad2012-11-11 19:29:38 +0000574 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
575 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000576 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000577 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000578 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
579 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
580 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
581 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000582 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000583 { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000584 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000585 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
586 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000587 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000588 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
589 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000590 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
591 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000592 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000593 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000594 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000595 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000596 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000597 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000598 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000599 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
600 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000601 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
602 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000603 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
604 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000605 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
606 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000607 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000608 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000609 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000610 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000611 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000612 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000613 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000614 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000615 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000616 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000617 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000618 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000619 { "-rotational-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000620 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000621 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000622 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
623 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000624 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000625 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
anthony0da1e9c2012-11-17 05:28:22 +0000626 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
627 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
cristyb01e49e2014-09-09 22:59:01 +0000628 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
629 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000630 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000631 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000632 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000633 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000634 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
635 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000636 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
637 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
638 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
639 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000640 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000641 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
642 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000643 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000644 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000645 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000646 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000647 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000648 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000649 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000650 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000651 { "+set", 1L, NoImageOperatorFlag, MagickFalse },
anthony0da1e9c2012-11-17 05:28:22 +0000652 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000653 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000654 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000655 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000656 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000657 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
658 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000659 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000660 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000661 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000662 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000663 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000664 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000665 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000666 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000667 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
668 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
cristy62e52182013-03-15 14:26:17 +0000669 { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
670 { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000671 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000672 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000673 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000674 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000675 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
676 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000677 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000678 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000679 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000680 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000681 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000682 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000683 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000684 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000685 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000686 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000687 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
688 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000689 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000690 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000691 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000692 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000693 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000694 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000695 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
696 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000697 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000698 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000699 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
700 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000701 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000702 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
703 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000704 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
705 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000706 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000707 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000708 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000709 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000710 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000711 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000712 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
713 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000714 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000715 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000716 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
717 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000718 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000719 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000720 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
721 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000722 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
723 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000724 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000725 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000726 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
727 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000728 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000729 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000730 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000731 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000732 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000733 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000734 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000735 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000736 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000737 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000738 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000739 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000740 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000741 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
742 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
743 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000744 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000745 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000746 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000747 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000748 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000749 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000750 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
751 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000752 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000753 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000754 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
755 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
756 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
757 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000758 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000759 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000760 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000761 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000762 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
763 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000764 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000765 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000766 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
767 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
768 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
769 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000770 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000771 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000772 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000773 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000774 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
775 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000776 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000777 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000778 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
779 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
780 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
781 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000782 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000783 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000784 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000785 },
786 ComposeOptions[] =
787 {
cristy042ee782011-04-22 18:48:30 +0000788 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
789 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
790 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
791 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
792 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
793 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
794 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
795 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
796 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
797 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000798 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000799 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
800 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000805 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
809 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
810 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
816 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000820 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy99fc2172014-06-26 10:30:53 +0000822 { "HardMix", HardMixCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000823 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000825 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000826 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
827 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
828 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
829 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
830 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
831 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
832 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
833 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
834 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
835 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
836 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
837 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
838 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
839 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
840 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
841 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
842 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
843 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
844 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
845 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
846 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
847 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
848 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
849 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
850 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
851 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
852 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
853 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
854 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000855 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
856 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000857 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
858 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000859 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000860 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000861 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000862 },
863 CompressOptions[] =
864 {
cristy042ee782011-04-22 18:48:30 +0000865 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
866 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
867 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
868 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
869 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
870 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
871 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
872 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
873 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000874 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
875 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000876 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
877 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
878 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
879 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
880 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
881 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
882 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
883 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
884 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
885 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
886 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
887 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
888 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
889 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000890 },
891 ColorspaceOptions[] =
892 {
cristy042ee782011-04-22 18:48:30 +0000893 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000894 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000895 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
896 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
897 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
cristy722fc0c2012-08-04 23:15:43 +0000898 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
cristy710cbd42013-05-02 21:39:35 +0000899 { "HCLp", HCLpColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000900 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
cristyaf64eb22013-05-02 14:07:10 +0000901 { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000902 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
cristy246c3132013-05-02 16:35:53 +0000903 { "HSV", HSVColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000904 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
905 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy1f099312012-08-29 17:22:14 +0000906 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
cristydf42b172013-04-05 13:35:37 +0000907 { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
908 { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy09d746f2012-08-29 17:54:59 +0000909 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000910 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
cristycb82c8e2012-08-01 12:54:37 +0000911 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000912 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000913 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000914 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
915 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy34632332013-05-03 10:21:05 +0000916 { "scRGB", scRGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000917 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
918 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
919 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
920 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristyc282d1b2013-05-06 23:37:48 +0000921 { "YDbDr", YDbDrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000922 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
923 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
924 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
925 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
926 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000927 },
cristy790190d2013-10-04 00:51:51 +0000928 ComplexOptions[] =
929 {
930 { "Undefined", UndefinedComplexOperator, UndefinedOptionFlag, MagickTrue },
cristy19f78862013-10-05 22:21:46 +0000931 { "Add", AddComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000932 { "Conjugate", ConjugateComplexOperator, UndefinedOptionFlag, MagickFalse },
933 { "Divide", DivideComplexOperator, UndefinedOptionFlag, MagickFalse },
cristyf46941c2013-10-06 22:25:41 +0000934 { "MagnitudePhase", MagnitudePhaseComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000935 { "Multiply", MultiplyComplexOperator, UndefinedOptionFlag, MagickFalse },
cristyf46941c2013-10-06 22:25:41 +0000936 { "RealImaginary", RealImaginaryComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy19f78862013-10-05 22:21:46 +0000937 { "Subtract", SubtractComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000938 { (char *) NULL, UndefinedComplexOperator, UndefinedOptionFlag, MagickFalse }
939 },
cristy3ed852e2009-09-05 21:47:34 +0000940 DataTypeOptions[] =
941 {
cristy042ee782011-04-22 18:48:30 +0000942 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
943 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
944 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
945 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
946 { "String", StringData, UndefinedOptionFlag, MagickFalse },
947 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000948 },
949 DecorateOptions[] =
950 {
cristy042ee782011-04-22 18:48:30 +0000951 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
952 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
953 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
954 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
955 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
956 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000957 },
cristyc9b12952010-03-28 01:12:28 +0000958 DirectionOptions[] =
959 {
cristy042ee782011-04-22 18:48:30 +0000960 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
961 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
962 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
963 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000964 },
cristy3ed852e2009-09-05 21:47:34 +0000965 DisposeOptions[] =
966 {
cristy042ee782011-04-22 18:48:30 +0000967 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickTrue },
968 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
969 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
970 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
971 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
972 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
973 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
974 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
975 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
976 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000977 },
978 DistortOptions[] =
979 {
cristy042ee782011-04-22 18:48:30 +0000980 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
981 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
982 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
983 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
984 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
985 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
986 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
987 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
988 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
989 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
990 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
991 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
992 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
993 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +0000994 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
995 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000996 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
997 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
998 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
999 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001000 },
1001 DitherOptions[] =
1002 {
cristy042ee782011-04-22 18:48:30 +00001003 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
1004 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
1005 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
1006 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
1007 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001008 },
1009 EndianOptions[] =
1010 {
cristy042ee782011-04-22 18:48:30 +00001011 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1012 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
1013 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
1014 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001015 },
1016 EvaluateOptions[] =
1017 {
cristy042ee782011-04-22 18:48:30 +00001018 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
1019 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1020 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1021 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1022 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1023 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1024 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1025 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1026 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1027 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1028 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1029 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1030 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1031 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1032 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1033 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1034 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1035 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1036 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1037 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1038 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1039 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1040 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1041 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1042 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy7c4c78f2014-06-15 21:57:39 +00001043 { "RMS", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1044 { "RootMeanSquare", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001045 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1046 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1047 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1048 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +00001049 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001050 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1051 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1052 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1053 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1054 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1055 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001056 },
1057 FillRuleOptions[] =
1058 {
cristy042ee782011-04-22 18:48:30 +00001059 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1060 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1061 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1062 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001063 },
1064 FilterOptions[] =
1065 {
cristy042ee782011-04-22 18:48:30 +00001066 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1067 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1068 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1069 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1070 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1071 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001072 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001073 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1074 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1075 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001076 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1077 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001078 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1079 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1080 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1081 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1082 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001083 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1084 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
anthonyaa806422012-10-17 00:56:10 +00001085 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1086 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001087 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1088 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1089 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1090 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1091 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001092 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001093 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1094 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001095 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001096 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001097 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1098 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001099 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001100 },
1101 FunctionOptions[] =
1102 {
cristy042ee782011-04-22 18:48:30 +00001103 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1104 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1105 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1106 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1107 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1108 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001109 },
1110 GravityOptions[] =
1111 {
cristy042ee782011-04-22 18:48:30 +00001112 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1113 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1114 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1115 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1116 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1117 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1118 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1119 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1120 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1121 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1122 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1123 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001124 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001125 },
cristy3ed852e2009-09-05 21:47:34 +00001126 IntentOptions[] =
1127 {
cristy042ee782011-04-22 18:48:30 +00001128 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1129 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1130 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1131 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1132 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1133 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001134 },
1135 InterlaceOptions[] =
1136 {
cristy042ee782011-04-22 18:48:30 +00001137 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1138 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1139 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1140 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1141 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1142 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1143 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1144 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1145 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001146 },
1147 InterpolateOptions[] =
1148 {
cristy042ee782011-04-22 18:48:30 +00001149 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1150 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001151 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1152 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1153 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1154 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001155 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001156 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1157 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001158 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1159 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001160 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1161 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001162 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001163/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001164 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001165 },
anthony602ab9b2010-01-05 08:06:50 +00001166 KernelOptions[] =
1167 {
cristy042ee782011-04-22 18:48:30 +00001168 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1169 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1170 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1171 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1172 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1173 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1174 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
anthony40ca0b92012-08-02 13:23:28 +00001175 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001176 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1177 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1178 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1179 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1180 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1181 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1182 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1183 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1184 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1185 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1186 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1187 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1188 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1189 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1190 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1191 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1192 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1193 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1194 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001195 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1196 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1197 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1198 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1199 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1200 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1201 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1202 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1203 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1204 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001205 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001206 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001207 },
cristy3ed852e2009-09-05 21:47:34 +00001208 LayerOptions[] =
1209 {
cristy042ee782011-04-22 18:48:30 +00001210 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1211 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1212 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1213 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1214 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1215 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1216 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1217 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1218 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1219 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1220 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1221 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1222 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1223 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1224 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1225 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1226 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1227 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001228 },
1229 LineCapOptions[] =
1230 {
cristy042ee782011-04-22 18:48:30 +00001231 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1232 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1233 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1234 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1235 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001236 },
1237 LineJoinOptions[] =
1238 {
cristy042ee782011-04-22 18:48:30 +00001239 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1240 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1241 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1242 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1243 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001244 },
1245 ListOptions[] =
1246 {
cristy042ee782011-04-22 18:48:30 +00001247 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
cristy288a3532012-08-28 00:19:44 +00001248 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001249 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
cristy947cef22013-01-17 14:16:40 +00001250 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001251 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1252 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1253 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1254 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1255 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1256 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1257 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +00001258 { "Complex", MagickComplexOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001259 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1260 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1261 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1262 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1263 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1264 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1265 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1266 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1267 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1268 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1269 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1270 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1271 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1272 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1273 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1274 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1275 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1276 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1277 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristyf2104462013-03-13 16:13:08 +00001278 { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001279 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1280 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1281 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1282 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1283 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1284 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1285 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1286 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1287 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1288 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1289 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1290 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1291 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1292 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1293 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1294 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1295 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1296 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1297 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1298 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001299 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001300 { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy18fd4432013-03-22 01:26:09 +00001301 { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001302 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001303 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1304 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1305 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1306 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1307 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1308 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1309 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1310 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1311 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1312 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1313 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1314 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1315 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1316 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1317 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1318 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1319 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1320 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1321 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001322 },
1323 LogEventOptions[] =
1324 {
cristy042ee782011-04-22 18:48:30 +00001325 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1326 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001327 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001328 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1329 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1330 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1331 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +00001332 { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001333 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1334 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1335 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1336 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1337 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1338 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1339 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001340 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001341 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1342 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1343 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1344 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1345 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1346 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1347 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1348 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001349 },
1350 MetricOptions[] =
1351 {
cristya6efb492013-07-10 23:57:14 +00001352 { "Undefined", UndefinedErrorMetric, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001353 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1354 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1355 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy03fa69f2014-01-08 18:36:49 +00001356 { "MEPP", MeanErrorPerPixelErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001357 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1358 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1359 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
cristybed8f952014-01-08 18:26:15 +00001360 { "PHASh", PerceptualHashErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy03d6f862014-01-08 18:34:48 +00001361 { "PSNR", PeakSignalToNoiseRatioErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001362 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
cristya6efb492013-07-10 23:57:14 +00001363 { (char *) NULL, UndefinedErrorMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001364 },
1365 MethodOptions[] =
1366 {
cristy042ee782011-04-22 18:48:30 +00001367 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1368 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1369 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1370 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1371 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1372 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1373 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001374 },
1375 ModeOptions[] =
1376 {
cristy042ee782011-04-22 18:48:30 +00001377 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1378 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1379 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1380 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1381 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001382 },
anthony602ab9b2010-01-05 08:06:50 +00001383 MorphologyOptions[] =
1384 {
cristy042ee782011-04-22 18:48:30 +00001385 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1386 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1387 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1388 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1389 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1390 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1391 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1392 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1393 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1394 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1395 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1396 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1397 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1398 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1399 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1400 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1401 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1402 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1403 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1404 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1405 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001406 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1407 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1408 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1409 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1410 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001411 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1412 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001413 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1414 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001415 },
cristy3ed852e2009-09-05 21:47:34 +00001416 NoiseOptions[] =
1417 {
cristy042ee782011-04-22 18:48:30 +00001418 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1419 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1420 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1421 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1422 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1423 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1424 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1425 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1426 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001427 },
1428 OrientationOptions[] =
1429 {
cristy042ee782011-04-22 18:48:30 +00001430 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1431 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1432 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1433 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1434 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1435 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1436 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1437 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1438 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1439 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001440 },
cristy6dcb9b82011-10-23 23:21:25 +00001441 PixelChannelOptions[] =
1442 {
1443 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001444 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001445 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001446 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001447 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001448 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1449 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1450 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1451 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001452 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001453 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1454 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1455 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001456 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001457 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1458 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1459 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001460 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1461 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001462 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001463 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001464 { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001465 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1466 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001467 { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001468 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001469 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1470 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1471 },
cristyac73d1f2013-03-12 00:51:09 +00001472 PixelIntensityOptions[] =
1473 {
1474 { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristy13609b42013-10-30 21:36:37 +00001475 { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1476 { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1477 { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristye801b522014-06-30 18:05:50 +00001478 { "Mean", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristy13609b42013-10-30 21:36:37 +00001479 { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1480 { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1481 { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1482 { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1483 { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1484 { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001485 { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1486 },
cristy18fd4432013-03-22 01:26:09 +00001487 PixelMaskOptions[] =
1488 {
1489 { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1490 { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1491 { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1492 { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1493 { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1494 { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1495 },
cristy6dcb9b82011-10-23 23:21:25 +00001496 PixelTraitOptions[] =
1497 {
1498 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1499 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1500 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1501 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1502 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1503 },
cristy3ed852e2009-09-05 21:47:34 +00001504 PolicyDomainOptions[] =
1505 {
cristy042ee782011-04-22 18:48:30 +00001506 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1507 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1508 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1509 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1510 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1511 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1512 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1513 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001514 },
1515 PolicyRightsOptions[] =
1516 {
cristy042ee782011-04-22 18:48:30 +00001517 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1518 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1519 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1520 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1521 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1522 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001523 },
1524 PreviewOptions[] =
1525 {
cristy042ee782011-04-22 18:48:30 +00001526 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1527 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1528 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1529 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1530 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1531 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1532 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1533 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1534 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1535 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1536 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1537 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1538 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1539 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1540 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1541 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1542 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1543 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1544 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1545 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1546 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1547 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1548 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1549 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1550 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1551 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1552 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1553 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1554 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1555 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1556 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001557 },
1558 PrimitiveOptions[] =
1559 {
cristy042ee782011-04-22 18:48:30 +00001560 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
1561 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1562 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1563 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1564 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1565 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1566 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1567 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
1568 { "Matte", MattePrimitive, UndefinedOptionFlag, MagickFalse },
1569 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1570 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1571 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1572 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1573 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1574 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1575 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1576 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001577 },
1578 QuantumFormatOptions[] =
1579 {
cristy042ee782011-04-22 18:48:30 +00001580 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1581 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1582 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1583 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1584 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001585 },
1586 ResolutionOptions[] =
1587 {
cristy042ee782011-04-22 18:48:30 +00001588 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1589 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1590 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1591 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001592 },
1593 ResourceOptions[] =
1594 {
cristy042ee782011-04-22 18:48:30 +00001595 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1596 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1597 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1598 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
1599 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1600 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1601 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1602 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
1603 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001604 },
1605 SparseColorOptions[] =
1606 {
cristy042ee782011-04-22 18:48:30 +00001607 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1608 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1609 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001610 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001611 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1612 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1613 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001614 },
cristy0834d642011-03-18 18:26:08 +00001615 StatisticOptions[] =
1616 {
cristy042ee782011-04-22 18:48:30 +00001617 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1618 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1619 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1620 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1621 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1622 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1623 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001624 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy180908c2014-06-15 13:01:43 +00001625 { "RootMeanSquare", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
1626 { "RMS", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001627 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1628 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001629 },
cristy3ed852e2009-09-05 21:47:34 +00001630 StorageOptions[] =
1631 {
cristy042ee782011-04-22 18:48:30 +00001632 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1633 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1634 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1635 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001636 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001637 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001638 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1639 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1640 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001641 },
1642 StretchOptions[] =
1643 {
cristy042ee782011-04-22 18:48:30 +00001644 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1645 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1646 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1647 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1648 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1649 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1650 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1651 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1652 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1653 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1654 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1655 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001656 },
1657 StyleOptions[] =
1658 {
cristy042ee782011-04-22 18:48:30 +00001659 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1660 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1661 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1662 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1663 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1664 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001665 },
1666 TypeOptions[] =
1667 {
cristy042ee782011-04-22 18:48:30 +00001668 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1669 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1670 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001671 { "ColorSeparationAlpha", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001672 { "ColorSeparationMatte", ColorSeparationMatteType, UndefinedOptionFlag, MagickFalse },
1673 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001674 { "GrayscaleAlpha", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001675 { "GrayscaleMatte", GrayscaleMatteType, UndefinedOptionFlag, MagickFalse },
1676 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1677 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001678 { "PaletteBilevelAlpha", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001679 { "PaletteBilevelMatte", PaletteBilevelMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001680 { "PaletteAlpha", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001681 { "PaletteMatte", PaletteMatteType, UndefinedOptionFlag, MagickFalse },
anthonyc69008c2012-05-07 11:45:32 +00001682 { "TrueColorAlpha", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001683 { "TrueColorMatte", TrueColorMatteType, UndefinedOptionFlag, MagickFalse },
1684 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1685 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001686 },
1687 ValidateOptions[] =
1688 {
cristy042ee782011-04-22 18:48:30 +00001689 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1690 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
cristy80e870e2013-05-07 12:23:02 +00001691 { "Colorspace", ColorspaceValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001692 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1693 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1694 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
cristy247eebde2013-06-13 01:01:43 +00001695 { "FormatsDisk", FormatsDiskValidate, UndefinedOptionFlag, MagickFalse },
1696 { "FormatsMap", FormatsMapValidate, UndefinedOptionFlag, MagickFalse },
1697 { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001698 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1699 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1700 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1701 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1702 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1703 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001704 },
1705 VirtualPixelOptions[] =
1706 {
cristy042ee782011-04-22 18:48:30 +00001707 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1708 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1709 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001710 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001711 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1712 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1713 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1714 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1715 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1716 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1717 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001718 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001719 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1720 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1721 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1722 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1723 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1724 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1725 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001726 };
anthony686b1a32012-02-15 14:50:53 +00001727
cristy3ed852e2009-09-05 21:47:34 +00001728/*
1729%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1730% %
1731% %
1732% %
1733% C l o n e I m a g e O p t i o n s %
1734% %
1735% %
1736% %
1737%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1738%
anthony40ca0b92012-08-02 13:23:28 +00001739% CloneImageOptions() clones all global image options, to another image_info
cristy3ed852e2009-09-05 21:47:34 +00001740%
1741% The format of the CloneImageOptions method is:
1742%
1743% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1744% const ImageInfo *clone_info)
1745%
1746% A description of each parameter follows:
1747%
anthony40ca0b92012-08-02 13:23:28 +00001748% o image_info: the image info to recieve the cloned options.
cristy3ed852e2009-09-05 21:47:34 +00001749%
anthony40ca0b92012-08-02 13:23:28 +00001750% o clone_info: the source image info for options to clone.
cristy3ed852e2009-09-05 21:47:34 +00001751%
1752*/
1753MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1754 const ImageInfo *clone_info)
1755{
1756 assert(image_info != (ImageInfo *) NULL);
1757 assert(image_info->signature == MagickSignature);
1758 if (image_info->debug != MagickFalse)
1759 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1760 image_info->filename);
1761 assert(clone_info != (const ImageInfo *) NULL);
1762 assert(clone_info->signature == MagickSignature);
1763 if (clone_info->options != (void *) NULL)
cristy07742872013-07-19 13:43:08 +00001764 {
1765 if (image_info->options != (void *) NULL)
1766 DestroyImageOptions(image_info);
1767 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1768 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1769 }
cristy3ed852e2009-09-05 21:47:34 +00001770 return(MagickTrue);
1771}
1772
1773/*
1774%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1775% %
1776% %
1777% %
1778% D e f i n e I m a g e O p t i o n %
1779% %
1780% %
1781% %
1782%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1783%
anthony8ea79832011-10-05 10:08:39 +00001784% DefineImageOption() associates an assignment string of the form
anthony40ca0b92012-08-02 13:23:28 +00001785% "key=value" with a global image option. It is equivelent to
1786% SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001787%
1788% The format of the DefineImageOption method is:
1789%
1790% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1791% const char *option)
1792%
1793% A description of each parameter follows:
1794%
1795% o image_info: the image info.
1796%
anthony8ea79832011-10-05 10:08:39 +00001797% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001798%
1799*/
1800MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1801 const char *option)
1802{
1803 char
1804 key[MaxTextExtent],
1805 value[MaxTextExtent];
1806
1807 register char
1808 *p;
1809
1810 assert(image_info != (ImageInfo *) NULL);
1811 assert(option != (const char *) NULL);
1812 (void) CopyMagickString(key,option,MaxTextExtent);
1813 for (p=key; *p != '\0'; p++)
1814 if (*p == '=')
1815 break;
1816 *value='\0';
1817 if (*p == '=')
1818 (void) CopyMagickString(value,p+1,MaxTextExtent);
1819 *p='\0';
1820 return(SetImageOption(image_info,key,value));
1821}
1822
1823/*
1824%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1825% %
1826% %
1827% %
1828% D e l e t e I m a g e O p t i o n %
1829% %
1830% %
1831% %
1832%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1833%
anthony40ca0b92012-08-02 13:23:28 +00001834% DeleteImageOption() deletes an key from the global image options.
cristy3ed852e2009-09-05 21:47:34 +00001835%
anthonyebb73a22012-03-22 14:25:52 +00001836% Returns MagickTrue is the option is found and deleted from the Options.
1837%
cristy3ed852e2009-09-05 21:47:34 +00001838% The format of the DeleteImageOption method is:
1839%
1840% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1841% const char *key)
1842%
1843% A description of each parameter follows:
1844%
1845% o image_info: the image info.
1846%
1847% o option: the image option.
1848%
1849*/
1850MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1851 const char *option)
1852{
1853 assert(image_info != (ImageInfo *) NULL);
1854 assert(image_info->signature == MagickSignature);
1855 if (image_info->debug != MagickFalse)
1856 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1857 image_info->filename);
1858 if (image_info->options == (void *) NULL)
1859 return(MagickFalse);
1860 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1861}
1862
1863/*
1864%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1865% %
1866% %
1867% %
1868% D e s t r o y I m a g e O p t i o n s %
1869% %
1870% %
1871% %
1872%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1873%
anthony40ca0b92012-08-02 13:23:28 +00001874% DestroyImageOptions() destroys all global options and associated memory
1875% attached to the given image_info image list.
cristy3ed852e2009-09-05 21:47:34 +00001876%
1877% The format of the DestroyDefines method is:
1878%
1879% void DestroyImageOptions(ImageInfo *image_info)
1880%
1881% A description of each parameter follows:
1882%
1883% o image_info: the image info.
1884%
1885*/
1886MagickExport void DestroyImageOptions(ImageInfo *image_info)
1887{
1888 assert(image_info != (ImageInfo *) NULL);
1889 assert(image_info->signature == MagickSignature);
1890 if (image_info->debug != MagickFalse)
1891 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1892 image_info->filename);
1893 if (image_info->options != (void *) NULL)
1894 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1895}
1896
1897/*
1898%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1899% %
1900% %
1901% %
1902% G e t I m a g e O p t i o n %
1903% %
1904% %
1905% %
1906%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1907%
anthony40ca0b92012-08-02 13:23:28 +00001908% GetImageOption() gets a value associated with the global image options.
1909%
1910% The returned string is a constant string in the tree and should NOT be
1911% freed by the caller.
cristy3ed852e2009-09-05 21:47:34 +00001912%
1913% The format of the GetImageOption method is:
1914%
1915% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001916% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001917%
1918% A description of each parameter follows:
1919%
1920% o image_info: the image info.
1921%
cristye3f77792011-10-07 00:09:09 +00001922% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001923%
1924*/
1925MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001926 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001927{
cristy3ed852e2009-09-05 21:47:34 +00001928 assert(image_info != (ImageInfo *) NULL);
1929 assert(image_info->signature == MagickSignature);
1930 if (image_info->debug != MagickFalse)
1931 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1932 image_info->filename);
1933 if (image_info->options == (void *) NULL)
1934 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001935 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1936 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001937}
1938
1939/*
1940%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1941% %
1942% %
1943% %
cristy042ee782011-04-22 18:48:30 +00001944% 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 +00001945% %
1946% %
1947% %
1948%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1949%
cristy042ee782011-04-22 18:48:30 +00001950% GetCommandOptionFlags() parses a string and returns an enumerated option
1951% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00001952%
cristy042ee782011-04-22 18:48:30 +00001953% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00001954%
cristy042ee782011-04-22 18:48:30 +00001955% ssize_t GetCommandOptionFlags(const CommandOption option,
1956% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00001957%
1958% A description of each parameter follows:
1959%
cristy042ee782011-04-22 18:48:30 +00001960% o option: Index to the option table to lookup
1961%
1962% o list: A option other than zero permits more than one option separated by
1963% a comma or pipe.
1964%
1965% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00001966%
1967*/
1968
cristyb01e49e2014-09-09 22:59:01 +00001969static const OptionInfo *GetOptionInfo(const CommandOption option)
1970{
1971 switch (option)
1972 {
1973 case MagickAlignOptions: return(AlignOptions);
1974 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
1975 case MagickBooleanOptions: return(BooleanOptions);
1976 case MagickCacheOptions: return(CacheOptions);
1977 case MagickChannelOptions: return(ChannelOptions);
1978 case MagickClassOptions: return(ClassOptions);
1979 case MagickClipPathOptions: return(ClipPathOptions);
1980 case MagickColorspaceOptions: return(ColorspaceOptions);
1981 case MagickCommandOptions: return(CommandOptions);
1982 case MagickComplexOptions: return(ComplexOptions);
1983 case MagickComposeOptions: return(ComposeOptions);
1984 case MagickCompressOptions: return(CompressOptions);
1985 case MagickDataTypeOptions: return(DataTypeOptions);
1986 case MagickDebugOptions: return(LogEventOptions);
1987 case MagickDecorateOptions: return(DecorateOptions);
1988 case MagickDirectionOptions: return(DirectionOptions);
1989 case MagickDisposeOptions: return(DisposeOptions);
1990 case MagickDistortOptions: return(DistortOptions);
1991 case MagickDitherOptions: return(DitherOptions);
1992 case MagickEndianOptions: return(EndianOptions);
1993 case MagickEvaluateOptions: return(EvaluateOptions);
1994 case MagickFillRuleOptions: return(FillRuleOptions);
1995 case MagickFilterOptions: return(FilterOptions);
1996 case MagickFunctionOptions: return(FunctionOptions);
1997 case MagickGravityOptions: return(GravityOptions);
1998 case MagickIntentOptions: return(IntentOptions);
1999 case MagickInterlaceOptions: return(InterlaceOptions);
2000 case MagickInterpolateOptions: return(InterpolateOptions);
2001 case MagickKernelOptions: return(KernelOptions);
2002 case MagickLayerOptions: return(LayerOptions);
2003 case MagickLineCapOptions: return(LineCapOptions);
2004 case MagickLineJoinOptions: return(LineJoinOptions);
2005 case MagickListOptions: return(ListOptions);
2006 case MagickLogEventOptions: return(LogEventOptions);
2007 case MagickMetricOptions: return(MetricOptions);
2008 case MagickMethodOptions: return(MethodOptions);
2009 case MagickModeOptions: return(ModeOptions);
2010 case MagickMorphologyOptions: return(MorphologyOptions);
2011 case MagickNoiseOptions: return(NoiseOptions);
2012 case MagickOrientationOptions: return(OrientationOptions);
2013 case MagickPixelChannelOptions: return(PixelChannelOptions);
2014 case MagickPixelIntensityOptions: return(PixelIntensityOptions);
2015 case MagickPixelMaskOptions: return(PixelMaskOptions);
2016 case MagickPixelTraitOptions: return(PixelTraitOptions);
2017 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
2018 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
2019 case MagickPreviewOptions: return(PreviewOptions);
2020 case MagickPrimitiveOptions: return(PrimitiveOptions);
2021 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
2022 case MagickResolutionOptions: return(ResolutionOptions);
2023 case MagickResourceOptions: return(ResourceOptions);
2024 case MagickSparseColorOptions: return(SparseColorOptions);
2025 case MagickStatisticOptions: return(StatisticOptions);
2026 case MagickStorageOptions: return(StorageOptions);
2027 case MagickStretchOptions: return(StretchOptions);
2028 case MagickStyleOptions: return(StyleOptions);
2029 case MagickTypeOptions: return(TypeOptions);
2030 case MagickValidateOptions: return(ValidateOptions);
2031 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
2032 default: break;
2033 }
2034 return((const OptionInfo *) NULL);
2035}
2036
cristy042ee782011-04-22 18:48:30 +00002037MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
2038 const MagickBooleanType list,const char *options)
2039{
2040 char
2041 token[MaxTextExtent];
2042
2043 const OptionInfo
cristy141ad9a2014-09-11 23:37:24 +00002044 *command_info,
cristy042ee782011-04-22 18:48:30 +00002045 *option_info;
2046
2047 int
2048 sentinel;
2049
2050 MagickBooleanType
2051 negate;
2052
2053 register char
2054 *q;
2055
2056 register const char
2057 *p;
2058
cristy141ad9a2014-09-11 23:37:24 +00002059 register ssize_t
2060 i;
2061
cristy042ee782011-04-22 18:48:30 +00002062 ssize_t
2063 option_types;
2064
2065 option_info=GetOptionInfo(option);
2066 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00002067 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00002068 option_types=0;
2069 sentinel=',';
2070 if (strchr(options,'|') != (char *) NULL)
2071 sentinel='|';
2072 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2073 {
2074 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2075 (*p != '\0'))
2076 p++;
2077 negate=(*p == '!') ? MagickTrue : MagickFalse;
2078 if (negate != MagickFalse)
2079 p++;
2080 q=token;
2081 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2082 (*p != '\0'))
2083 {
cristya0019202011-06-07 13:23:55 +00002084 if ((q-token) >= (MaxTextExtent-1))
cristy042ee782011-04-22 18:48:30 +00002085 break;
2086 *q++=(*p++);
2087 }
2088 *q='\0';
cristy62841852014-09-12 15:24:39 +00002089 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2090 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2091 break;
2092 command_info=option_info+i;
cristy141ad9a2014-09-11 23:37:24 +00002093 if ((command_info->mnemonic == (const char *) NULL) &&
2094 ((strchr(token+1,'-') != (char *) NULL) ||
2095 (strchr(token+1,'_') != (char *) NULL)))
2096 {
2097 while ((q=strchr(token+1,'-')) != (char *) NULL)
2098 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2099 while ((q=strchr(token+1,'_')) != (char *) NULL)
2100 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
cristy62841852014-09-12 15:24:39 +00002101 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2102 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2103 break;
2104 command_info=option_info+i;
cristy042ee782011-04-22 18:48:30 +00002105 }
cristy141ad9a2014-09-11 23:37:24 +00002106 if (command_info->mnemonic == (const char *) NULL)
2107 return(-1);
2108 if (negate != MagickFalse)
2109 option_types=option_types &~ command_info->flags;
2110 else
2111 option_types=option_types | command_info->flags;
cristy042ee782011-04-22 18:48:30 +00002112 if (list == MagickFalse)
2113 break;
2114 }
2115 return(option_types);
2116}
2117
2118/*
2119%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2120% %
2121% %
2122% %
anthony686b1a32012-02-15 14:50:53 +00002123% G e t C o m m a n d O p t i o n I n f o %
2124% %
2125% %
2126% %
2127%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2128%
cristyb01e49e2014-09-09 22:59:01 +00002129% GetCommandOptionInfo() returns a pointer to the matching OptionInfo entry
2130% for the "CommandOptions" table. It returns both the type (argument count)
2131% and flags (argument type).
anthony686b1a32012-02-15 14:50:53 +00002132%
2133% The format of the GetCommandOptionInfo method is:
2134%
cristy2de4a8b2014-09-10 22:48:09 +00002135% const char **GetCommandOptionInfo(const char *option)
anthony686b1a32012-02-15 14:50:53 +00002136%
2137% A description of each parameter follows:
2138%
cristyb01e49e2014-09-09 22:59:01 +00002139% o option: the option.
anthony686b1a32012-02-15 14:50:53 +00002140%
2141*/
cristyb01e49e2014-09-09 22:59:01 +00002142MagickExport const OptionInfo *GetCommandOptionInfo(const char *option)
anthony686b1a32012-02-15 14:50:53 +00002143{
cristy62841852014-09-12 15:24:39 +00002144 register ssize_t
2145 i;
anthony686b1a32012-02-15 14:50:53 +00002146
cristy62841852014-09-12 15:24:39 +00002147 for (i=0; CommandOptions[i].mnemonic != (char *) NULL; i++)
2148 if (LocaleCompare(option,CommandOptions[i].mnemonic) == 0)
2149 break;
2150 return(CommandOptions+i);
anthony686b1a32012-02-15 14:50:53 +00002151}
2152
2153/*
2154%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2155% %
2156% %
2157% %
cristy042ee782011-04-22 18:48:30 +00002158% G e t C o m m a n d O p t i o n s %
2159% %
2160% %
2161% %
2162%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2163%
cristyb1da2062014-09-10 12:51:49 +00002164% GetCommandOptions() returns a list of command options.
cristy042ee782011-04-22 18:48:30 +00002165%
2166% The format of the GetCommandOptions method is:
2167%
cristyb1da2062014-09-10 12:51:49 +00002168% const char **GetCommandOptions(const CommandOption option)
cristy042ee782011-04-22 18:48:30 +00002169%
2170% A description of each parameter follows:
2171%
cristyb1da2062014-09-10 12:51:49 +00002172% o option: the option.
cristy042ee782011-04-22 18:48:30 +00002173%
2174*/
cristyb1da2062014-09-10 12:51:49 +00002175MagickExport char **GetCommandOptions(const CommandOption option)
cristy3ed852e2009-09-05 21:47:34 +00002176{
2177 char
cristyb1da2062014-09-10 12:51:49 +00002178 **options;
cristy3ed852e2009-09-05 21:47:34 +00002179
2180 const OptionInfo
2181 *option_info;
2182
cristybb503372010-05-27 20:51:26 +00002183 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002184 i;
2185
cristyb1da2062014-09-10 12:51:49 +00002186 option_info=GetOptionInfo(option);
cristy3ed852e2009-09-05 21:47:34 +00002187 if (option_info == (const OptionInfo *) NULL)
2188 return((char **) NULL);
2189 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
cristyb1da2062014-09-10 12:51:49 +00002190 options=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*options));
2191 if (options == (char **) NULL)
cristy3ed852e2009-09-05 21:47:34 +00002192 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2193 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
cristyb1da2062014-09-10 12:51:49 +00002194 options[i]=AcquireString(option_info[i].mnemonic);
2195 options[i]=(char *) NULL;
2196 return(options);
cristy3ed852e2009-09-05 21:47:34 +00002197}
2198
2199/*
2200%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2201% %
2202% %
2203% %
2204% G e t N e x t I m a g e O p t i o n %
2205% %
2206% %
2207% %
2208%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2209%
anthony40ca0b92012-08-02 13:23:28 +00002210% GetNextImageOption() gets the next global option value.
cristy3ed852e2009-09-05 21:47:34 +00002211%
2212% The format of the GetNextImageOption method is:
2213%
2214% char *GetNextImageOption(const ImageInfo *image_info)
2215%
2216% A description of each parameter follows:
2217%
2218% o image_info: the image info.
2219%
2220*/
2221MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2222{
2223 assert(image_info != (ImageInfo *) NULL);
2224 assert(image_info->signature == MagickSignature);
2225 if (image_info->debug != MagickFalse)
2226 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2227 image_info->filename);
2228 if (image_info->options == (void *) NULL)
2229 return((char *) NULL);
2230 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2231}
2232
2233/*
2234%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2235% %
2236% %
2237% %
cristy042ee782011-04-22 18:48:30 +00002238% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002239% %
2240% %
2241% %
2242%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2243%
cristy042ee782011-04-22 18:48:30 +00002244% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002245% the first character that follows is alphanumeric.
2246%
cristy042ee782011-04-22 18:48:30 +00002247% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002248%
cristy042ee782011-04-22 18:48:30 +00002249% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002250%
2251% A description of each parameter follows:
2252%
2253% o option: the option.
2254%
2255*/
cristy042ee782011-04-22 18:48:30 +00002256MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002257{
2258 assert(option != (const char *) NULL);
2259 if ((*option != '-') && (*option != '+'))
2260 return(MagickFalse);
2261 if (strlen(option) == 1)
cristy2de4a8b2014-09-10 22:48:09 +00002262 return(IsMagickTrue((*option == '{') || (*option == '}') ||
cristy0dbbb452014-09-11 00:24:21 +00002263 (*option == '[') || (*option == ']') ));
cristy3ed852e2009-09-05 21:47:34 +00002264 option++;
anthonye5b39652012-04-21 05:37:29 +00002265 if (*option == '-')
2266 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002267 if (isalpha((int) ((unsigned char) *option)) == 0)
2268 return(MagickFalse);
2269 return(MagickTrue);
2270}
2271
2272/*
2273%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2274% %
2275% %
2276% %
cristy042ee782011-04-22 18:48:30 +00002277% 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 +00002278% %
2279% %
2280% %
2281%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2282%
cristy042ee782011-04-22 18:48:30 +00002283% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002284%
cristy042ee782011-04-22 18:48:30 +00002285% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002286%
cristy042ee782011-04-22 18:48:30 +00002287% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002288% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002289%
2290% A description of each parameter follows:
2291%
2292% o option: the option.
2293%
2294% o type: one or more values separated by commas.
2295%
2296*/
cristy042ee782011-04-22 18:48:30 +00002297MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002298 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002299{
2300 const OptionInfo
2301 *option_info;
2302
cristybb503372010-05-27 20:51:26 +00002303 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002304 i;
2305
2306 option_info=GetOptionInfo(option);
2307 if (option_info == (const OptionInfo *) NULL)
2308 return((const char *) NULL);
2309 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2310 if (type == option_info[i].type)
2311 break;
2312 if (option_info[i].mnemonic == (const char *) NULL)
2313 return("undefined");
2314 return(option_info[i].mnemonic);
2315}
2316
2317/*
2318%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2319% %
2320% %
2321% %
cristy71ffec42014-06-25 12:52:49 +00002322% I s O p t i o n M e m b e r %
2323% %
2324% %
2325% %
2326%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2327%
2328% IsOptionMember() returns MagickTrue if the option is a member of the options
2329% list (e.g. ICC is a member of xmp,icc,iptc).
2330%
2331% The format of the IsOptionMember function is:
2332%
2333% MagickBooleanType IsOptionMember(const char *option,
2334% const char *options)
2335%
2336% A description of each parameter follows:
2337%
2338% o option: an option or option expression (e.g. ICC or *).
2339%
2340% o options: one or more options separated by commas.
2341%
cristy71ffec42014-06-25 12:52:49 +00002342*/
cristy0f975d12014-06-25 18:44:04 +00002343MagickExport MagickBooleanType IsOptionMember(const char *option,
cristy71ffec42014-06-25 12:52:49 +00002344 const char *options)
2345{
2346 char
2347 **option_list,
2348 *string;
2349
2350 int
2351 number_options;
2352
cristy53b6cc32014-06-25 13:13:33 +00002353 MagickBooleanType
2354 member;
2355
cristy71ffec42014-06-25 12:52:49 +00002356 register ssize_t
2357 i;
2358
2359 /*
2360 Is option a member of the options list?
2361 */
cristy53b6cc32014-06-25 13:13:33 +00002362 if (options == (const char *) NULL)
2363 return(MagickFalse);
cristy71ffec42014-06-25 12:52:49 +00002364 string=ConstantString(options);
2365 (void) SubstituteString(&string,","," ");
2366 option_list=StringToArgv(string,&number_options);
2367 string=DestroyString(string);
2368 if (option_list == (char **) NULL)
2369 return(MagickFalse);
cristy53b6cc32014-06-25 13:13:33 +00002370 member=MagickFalse;
cristy71ffec42014-06-25 12:52:49 +00002371 for (i=1; i < (ssize_t) number_options; i++)
2372 {
2373 if ((*option_list[i] == '!') &&
2374 (LocaleCompare(option,option_list[i]+1) == 0))
cristy53b6cc32014-06-25 13:13:33 +00002375 break;
cristy71ffec42014-06-25 12:52:49 +00002376 if (GlobExpression(option,option_list[i],MagickTrue) != MagickFalse)
cristy53b6cc32014-06-25 13:13:33 +00002377 {
2378 member=MagickTrue;
2379 break;
2380 }
2381 option_list[i]=DestroyString(option_list[i]);
cristy71ffec42014-06-25 12:52:49 +00002382 }
cristy53b6cc32014-06-25 13:13:33 +00002383 for ( ; i < (ssize_t) number_options; i++)
2384 option_list[i]=DestroyString(option_list[i]);
2385 option_list=(char **) RelinquishMagickMemory(option_list);
2386 return(member);
cristy71ffec42014-06-25 12:52:49 +00002387}
2388
2389/*
2390%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2391% %
2392% %
2393% %
cristy042ee782011-04-22 18:48:30 +00002394% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002395% %
2396% %
2397% %
2398%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2399%
cristy042ee782011-04-22 18:48:30 +00002400% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002401%
cristy042ee782011-04-22 18:48:30 +00002402% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002403%
cristy2b9582a2011-07-04 17:38:56 +00002404% MagickBooleanType ListCommandOptions(FILE *file,
2405% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002406%
2407% A description of each parameter follows:
2408%
2409% o file: list options to this file handle.
2410%
2411% o option: list these options.
2412%
2413% o exception: return any errors or warnings in this structure.
2414%
2415*/
cristy042ee782011-04-22 18:48:30 +00002416MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2417 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002418{
2419 const OptionInfo
2420 *option_info;
2421
cristybb503372010-05-27 20:51:26 +00002422 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002423 i;
2424
2425 if (file == (FILE *) NULL)
2426 file=stdout;
2427 option_info=GetOptionInfo(option);
2428 if (option_info == (const OptionInfo *) NULL)
2429 return(MagickFalse);
2430 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2431 {
2432 if (option_info[i].stealth != MagickFalse)
2433 continue;
cristyb51dff52011-05-19 16:55:47 +00002434 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002435 }
2436 return(MagickTrue);
2437}
2438
2439/*
2440%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2441% %
2442% %
2443% %
2444% P a r s e C h a n n e l O p t i o n %
2445% %
2446% %
2447% %
2448%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2449%
2450% ParseChannelOption() parses a string and returns an enumerated channel
2451% type(s).
2452%
2453% The format of the ParseChannelOption method is:
2454%
cristybb503372010-05-27 20:51:26 +00002455% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002456%
2457% A description of each parameter follows:
2458%
2459% o options: One or more values separated by commas.
2460%
2461*/
cristybb503372010-05-27 20:51:26 +00002462MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002463{
cristybb503372010-05-27 20:51:26 +00002464 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002465 i;
2466
cristyb9902b72010-10-05 18:21:50 +00002467 ssize_t
2468 channel;
2469
cristy042ee782011-04-22 18:48:30 +00002470 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002471 if (channel >= 0)
2472 return(channel);
2473 channel=0;
cristybb503372010-05-27 20:51:26 +00002474 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002475 {
2476 switch (channels[i])
2477 {
2478 case 'A':
2479 case 'a':
2480 {
cristy953c4bd2012-02-24 01:04:04 +00002481 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002482 break;
2483 }
2484 case 'B':
2485 case 'b':
2486 {
2487 channel|=BlueChannel;
2488 break;
2489 }
2490 case 'C':
2491 case 'c':
2492 {
2493 channel|=CyanChannel;
2494 break;
2495 }
2496 case 'g':
2497 case 'G':
2498 {
2499 channel|=GreenChannel;
2500 break;
2501 }
cristy3ed852e2009-09-05 21:47:34 +00002502 case 'K':
2503 case 'k':
2504 {
2505 channel|=BlackChannel;
2506 break;
2507 }
2508 case 'M':
2509 case 'm':
2510 {
2511 channel|=MagentaChannel;
2512 break;
2513 }
2514 case 'o':
2515 case 'O':
2516 {
anthony30b912a2012-03-22 01:20:28 +00002517 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002518 break;
2519 }
2520 case 'R':
2521 case 'r':
2522 {
2523 channel|=RedChannel;
2524 break;
2525 }
2526 case 'Y':
2527 case 'y':
2528 {
2529 channel|=YellowChannel;
2530 break;
2531 }
2532 case ',':
2533 {
cristybb503372010-05-27 20:51:26 +00002534 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002535 type;
2536
2537 /*
2538 Gather the additional channel flags and merge with shorthand.
2539 */
cristy042ee782011-04-22 18:48:30 +00002540 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002541 if (type < 0)
2542 return(type);
2543 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002544 return(channel);
2545 }
2546 default:
2547 return(-1);
2548 }
2549 }
2550 return(channel);
2551}
2552
2553/*
2554%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2555% %
2556% %
2557% %
cristy042ee782011-04-22 18:48:30 +00002558% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002559% %
2560% %
2561% %
2562%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2563%
cristy042ee782011-04-22 18:48:30 +00002564% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002565% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002566%
cristy042ee782011-04-22 18:48:30 +00002567% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002568%
cristy0dbbb452014-09-11 00:24:21 +00002569% ssize_t ParseCommandOption(const CommandOption option,
cristy3ed852e2009-09-05 21:47:34 +00002570% const MagickBooleanType list,const char *options)
2571%
2572% A description of each parameter follows:
2573%
cristy0dbbb452014-09-11 00:24:21 +00002574% o option: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002575%
2576% o list: A option other than zero permits more than one option separated by
2577% a comma or pipe.
2578%
2579% o options: One or more options separated by commas.
2580%
2581*/
cristy0dbbb452014-09-11 00:24:21 +00002582MagickExport ssize_t ParseCommandOption(const CommandOption option,
cristy3ed852e2009-09-05 21:47:34 +00002583 const MagickBooleanType list,const char *options)
2584{
2585 char
2586 token[MaxTextExtent];
2587
2588 const OptionInfo
cristy141ad9a2014-09-11 23:37:24 +00002589 *command_info,
cristy3ed852e2009-09-05 21:47:34 +00002590 *option_info;
2591
2592 int
2593 sentinel;
2594
cristy3ed852e2009-09-05 21:47:34 +00002595 MagickBooleanType
2596 negate;
2597
2598 register char
2599 *q;
2600
2601 register const char
2602 *p;
2603
cristy141ad9a2014-09-11 23:37:24 +00002604 register ssize_t
2605 i;
2606
cristyb9902b72010-10-05 18:21:50 +00002607 ssize_t
2608 option_types;
2609
cristy0dbbb452014-09-11 00:24:21 +00002610 option_info=GetOptionInfo(option);
cristy3ed852e2009-09-05 21:47:34 +00002611 if (option_info == (const OptionInfo *) NULL)
2612 return(-1);
2613 option_types=0;
2614 sentinel=',';
2615 if (strchr(options,'|') != (char *) NULL)
2616 sentinel='|';
2617 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2618 {
2619 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2620 (*p != '\0'))
2621 p++;
2622 negate=(*p == '!') ? MagickTrue : MagickFalse;
2623 if (negate != MagickFalse)
2624 p++;
2625 q=token;
2626 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2627 (*p != '\0'))
2628 {
cristya0019202011-06-07 13:23:55 +00002629 if ((q-token) >= (MaxTextExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002630 break;
2631 *q++=(*p++);
2632 }
2633 *q='\0';
cristy62841852014-09-12 15:24:39 +00002634 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2635 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2636 break;
2637 command_info=option_info+i;
cristy141ad9a2014-09-11 23:37:24 +00002638 if ((command_info->mnemonic == (const char *) NULL) &&
2639 ((strchr(token+1,'-') != (char *) NULL) ||
2640 (strchr(token+1,'_') != (char *) NULL)))
2641 {
2642 while ((q=strchr(token+1,'-')) != (char *) NULL)
2643 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
2644 while ((q=strchr(token+1,'_')) != (char *) NULL)
2645 (void) CopyMagickString(q,q+1,MaxTextExtent-strlen(q));
cristy62841852014-09-12 15:24:39 +00002646 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2647 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2648 break;
2649 command_info=option_info+i;
cristy141ad9a2014-09-11 23:37:24 +00002650 }
2651 if (command_info->mnemonic == (const char *) NULL)
2652 return(-1);
2653 if (negate != MagickFalse)
2654 option_types=option_types &~ command_info->type;
2655 else
2656 option_types=option_types | command_info->type;
cristy3ed852e2009-09-05 21:47:34 +00002657 if (list == MagickFalse)
2658 break;
2659 }
2660 return(option_types);
2661}
2662
2663/*
2664%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2665% %
2666% %
2667% %
cristy953c4bd2012-02-24 01:04:04 +00002668% P a r s e P i x e l C h a n n e l O p t i o n %
2669% %
2670% %
2671% %
2672%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2673%
2674% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2675% channel type(s).
2676%
2677% The format of the ParsePixelChannelOption method is:
2678%
2679% ssize_t ParsePixelChannelOption(const char *channels)
2680%
2681% A description of each parameter follows:
2682%
cristyd04e7bf2012-03-03 19:19:12 +00002683% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002684%
2685*/
2686MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2687{
cristyd04e7bf2012-03-03 19:19:12 +00002688 char
cristya15140f2012-03-04 01:21:15 +00002689 *q,
2690 token[MaxTextExtent];
cristy953c4bd2012-02-24 01:04:04 +00002691
2692 ssize_t
2693 channel;
2694
cristya15140f2012-03-04 01:21:15 +00002695 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002696 if ((*token == ';') || (*token == '|'))
2697 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002698 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002699 if (channel >= 0)
2700 return(channel);
cristya15140f2012-03-04 01:21:15 +00002701 q=(char *) token;
cristyb01e49e2014-09-09 22:59:01 +00002702 channel=(ssize_t) InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002703 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002704 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002705 return(channel);
2706}
2707
2708/*
2709%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2710% %
2711% %
2712% %
cristy3ed852e2009-09-05 21:47:34 +00002713% R e m o v e I m a g e O p t i o n %
2714% %
2715% %
2716% %
2717%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2718%
2719% RemoveImageOption() removes an option from the image and returns its value.
2720%
anthony40ca0b92012-08-02 13:23:28 +00002721% In this case the ConstantString() value returned should be freed by the
2722% caller when finished.
2723%
cristy3ed852e2009-09-05 21:47:34 +00002724% The format of the RemoveImageOption method is:
2725%
2726% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2727%
2728% A description of each parameter follows:
2729%
2730% o image_info: the image info.
2731%
2732% o option: the image option.
2733%
2734*/
2735MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2736{
2737 char
2738 *value;
2739
2740 assert(image_info != (ImageInfo *) NULL);
2741 assert(image_info->signature == MagickSignature);
2742 if (image_info->debug != MagickFalse)
2743 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2744 image_info->filename);
2745 if (image_info->options == (void *) NULL)
2746 return((char *) NULL);
2747 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2748 image_info->options,option);
2749 return(value);
2750}
2751
2752/*
2753%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2754% %
2755% %
2756% %
2757% R e s e t I m a g e O p t i o n %
2758% %
2759% %
2760% %
2761%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2762%
2763% ResetImageOptions() resets the image_info option. That is, it deletes
anthony40ca0b92012-08-02 13:23:28 +00002764% all global options associated with the image_info structure.
cristy3ed852e2009-09-05 21:47:34 +00002765%
2766% The format of the ResetImageOptions method is:
2767%
2768% ResetImageOptions(ImageInfo *image_info)
2769%
2770% A description of each parameter follows:
2771%
2772% o image_info: the image info.
2773%
2774*/
2775MagickExport void ResetImageOptions(const ImageInfo *image_info)
2776{
2777 assert(image_info != (ImageInfo *) NULL);
2778 assert(image_info->signature == MagickSignature);
2779 if (image_info->debug != MagickFalse)
2780 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2781 image_info->filename);
2782 if (image_info->options == (void *) NULL)
2783 return;
2784 ResetSplayTree((SplayTreeInfo *) image_info->options);
2785}
2786
2787/*
2788%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2789% %
2790% %
2791% %
2792% R e s e t I m a g e O p t i o n I t e r a t o r %
2793% %
2794% %
2795% %
2796%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2797%
2798% ResetImageOptionIterator() resets the image_info values iterator. Use it
2799% in conjunction with GetNextImageOption() to iterate over all the values
2800% associated with an image option.
2801%
2802% The format of the ResetImageOptionIterator method is:
2803%
2804% ResetImageOptionIterator(ImageInfo *image_info)
2805%
2806% A description of each parameter follows:
2807%
2808% o image_info: the image info.
2809%
2810*/
2811MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2812{
2813 assert(image_info != (ImageInfo *) NULL);
2814 assert(image_info->signature == MagickSignature);
2815 if (image_info->debug != MagickFalse)
2816 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2817 image_info->filename);
2818 if (image_info->options == (void *) NULL)
2819 return;
2820 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2821}
2822
2823/*
2824%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2825% %
2826% %
2827% %
2828% S e t I m a g e O p t i o n %
2829% %
2830% %
2831% %
2832%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2833%
2834% SetImageOption() associates an value with an image option.
2835%
2836% The format of the SetImageOption method is:
2837%
2838% MagickBooleanType SetImageOption(ImageInfo *image_info,
2839% const char *option,const char *value)
2840%
2841% A description of each parameter follows:
2842%
2843% o image_info: the image info.
2844%
2845% o option: the image option.
2846%
2847% o values: the image option values.
2848%
2849*/
2850MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2851 const char *option,const char *value)
2852{
cristy3ed852e2009-09-05 21:47:34 +00002853 assert(image_info != (ImageInfo *) NULL);
2854 assert(image_info->signature == MagickSignature);
2855 if (image_info->debug != MagickFalse)
2856 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2857 image_info->filename);
cristyc96a1ba2013-03-28 13:05:04 +00002858 /*
2859 Specific global option settings.
2860 */
anthonya322a832013-04-27 06:28:03 +00002861 if (LocaleCompare(option,"size") == 0) {
cristy3ed852e2009-09-05 21:47:34 +00002862 (void) CloneString(&image_info->size,value);
anthonya322a832013-04-27 06:28:03 +00002863 return(MagickTrue);
2864 }
cristyc96a1ba2013-03-28 13:05:04 +00002865 /*
2866 Create tree if needed - specify how key,values are to be freed.
2867 */
cristy3ed852e2009-09-05 21:47:34 +00002868 if (image_info->options == (void *) NULL)
2869 image_info->options=NewSplayTree(CompareSplayTreeString,
2870 RelinquishMagickMemory,RelinquishMagickMemory);
cristyc96a1ba2013-03-28 13:05:04 +00002871 /*
2872 Delete Option if NULL -- empty string values are valid!
2873 */
anthonyd181ea02011-10-12 07:44:13 +00002874 if (value == (const char *) NULL)
2875 return(DeleteImageOption(image_info,option));
cristyc96a1ba2013-03-28 13:05:04 +00002876 /*
2877 Add option to splay-tree.
2878 */
cristye3f77792011-10-07 00:09:09 +00002879 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2880 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002881}