blob: 6815d7613ee6334a6c4085dca772edca8f9489e5 [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% %
cristyb56bb242014-11-25 17:12:48 +000020% Copyright 1999-2015 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 },
cristy7894d4a2014-09-29 12:43:59 +0000100 { "Associate", AssociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000101 { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
102 { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
103 { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristydd00eb32014-10-01 13:11:19 +0000104 { "Discrete", DiscreteAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy7894d4a2014-09-29 12:43:59 +0000105 { "Disassociate", DisassociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000106 { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy17f11b02014-12-20 19:37:04 +0000107 { "Off", OffAlphaChannel, UndefinedOptionFlag, MagickFalse },
108 { "On", OnAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000109 { "Opaque", OpaqueAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy61808382012-01-30 01:24:49 +0000110 { "Remove", RemoveAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000111 { "Set", SetAlphaChannel, UndefinedOptionFlag, MagickFalse },
112 { "Shape", ShapeAlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000113 { "Reset", SetAlphaChannel, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000114 { "Transparent", TransparentAlphaChannel, UndefinedOptionFlag, MagickFalse },
115 { (char *) NULL, UndefinedAlphaChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000116 },
117 BooleanOptions[] =
118 {
anthony72feaa62012-01-17 06:46:23 +0000119 { "False", MagickFalse, UndefinedOptionFlag, MagickFalse },
120 { "True", MagickTrue, UndefinedOptionFlag, MagickFalse },
121 { "0", MagickFalse, UndefinedOptionFlag, MagickFalse },
122 { "1", MagickTrue, UndefinedOptionFlag, MagickFalse },
123 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000124 },
cristy947cef22013-01-17 14:16:40 +0000125 CacheOptions[] =
126 {
127 { "Disk", DiskCache, UndefinedOptionFlag, MagickFalse },
128 { "Distributed", DistributedCache, UndefinedOptionFlag, MagickFalse },
129 { "Map", MapCache, UndefinedOptionFlag, MagickFalse },
130 { "Memory", MemoryCache, UndefinedOptionFlag, MagickFalse },
131 { "Ping", PingCache, UndefinedOptionFlag, MagickFalse },
132 { (char *) NULL, MagickFalse, UndefinedOptionFlag, MagickFalse }
133 },
cristy3ed852e2009-09-05 21:47:34 +0000134 ChannelOptions[] =
135 {
cristy042ee782011-04-22 18:48:30 +0000136 { "Undefined", UndefinedChannel, UndefinedOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000137 /* special */
cristy9a9230e2011-04-26 14:56:14 +0000138 { "All", CompositeChannels, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000139 { "Sync", SyncChannels, UndefinedOptionFlag, MagickFalse },
140 { "Default", DefaultChannels, UndefinedOptionFlag, MagickFalse },
141 /* individual channel */
142 { "A", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy953c4bd2012-02-24 01:04:04 +0000143 { "Alpha", AlphaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000144 { "Black", BlackChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000145 { "B", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000146 { "Blue", BlueChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000147 { "C", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000148 { "Cyan", CyanChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000149 { "Gray", GrayChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000150 { "G", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000151 { "Green", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000152 { "H", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000153 { "Hue", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000154 { "K", BlackChannel, UndefinedOptionFlag, MagickFalse },
155 { "L", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000156 { "Lightness", BlueChannel, UndefinedOptionFlag, MagickFalse },
157 { "Luminance", BlueChannel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000158 { "Luminosity", BlueChannel, DeprecateOptionFlag, MagickTrue },
anthony30b912a2012-03-22 01:20:28 +0000159 { "M", MagentaChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000160 { "Magenta", MagentaChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000161 { "Matte", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
162 { "Opacity", AlphaChannel, DeprecateOptionFlag, MagickTrue },/*depreciate*/
163 { "R", RedChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000164 { "Red", RedChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000165 { "S", GreenChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000166 { "Saturation", GreenChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +0000167 { "Y", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000168 { "Yellow", YellowChannel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000169 { (char *) NULL, UndefinedChannel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000170 },
171 ClassOptions[] =
172 {
cristy042ee782011-04-22 18:48:30 +0000173 { "Undefined", UndefinedClass, UndefinedOptionFlag, MagickTrue },
174 { "DirectClass", DirectClass, UndefinedOptionFlag, MagickFalse },
175 { "PseudoClass", PseudoClass, UndefinedOptionFlag, MagickFalse },
176 { (char *) NULL, UndefinedClass, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000177 },
178 ClipPathOptions[] =
179 {
cristy042ee782011-04-22 18:48:30 +0000180 { "Undefined", UndefinedPathUnits, UndefinedOptionFlag, MagickTrue },
181 { "ObjectBoundingBox", ObjectBoundingBox, UndefinedOptionFlag, MagickFalse },
182 { "UserSpace", UserSpace, UndefinedOptionFlag, MagickFalse },
183 { "UserSpaceOnUse", UserSpaceOnUse, UndefinedOptionFlag, MagickFalse },
184 { (char *) NULL, UndefinedPathUnits, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000185 },
186 CommandOptions[] =
187 {
cristy62841852014-09-12 15:24:39 +0000188 /*
189 Must be ordered lexigraphically.
190 */
cristy6e648952014-09-16 23:28:18 +0000191 { "+alpha", 1L, DeprecateOptionFlag, MagickTrue },
192 { "-alpha", 1L, SimpleOperatorFlag, MagickFalse },
193 { "+background", 0L, ImageInfoOptionFlag, MagickFalse },
194 { "-background", 1L, ImageInfoOptionFlag, MagickFalse },
195 { "+format", 0L, ImageInfoOptionFlag, MagickFalse },
196 { "-format", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
197 { "-quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
198 { "+quiet", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
199 { "-regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
200 { "+regard-warnings", 0L, ImageInfoOptionFlag, MagickFalse },
201 { "+repage", 0L, SimpleOperatorFlag, MagickFalse },
202 { "-repage", 1L, SimpleOperatorFlag, MagickFalse },
203 { "+size", 0L, ImageInfoOptionFlag, MagickFalse },
204 { "-size", 1L, ImageInfoOptionFlag, MagickFalse },
205 { "+virtual-pixel", 0L, ImageInfoOptionFlag, MagickFalse },
206 { "-virtual-pixel", 1L, ImageInfoOptionFlag, MagickFalse },
207 { "+blur", 0L, DeprecateOptionFlag, MagickTrue },
208 { "-blur", 1L, SimpleOperatorFlag, MagickFalse },
209 { "+resize", 1L, DeprecateOptionFlag, MagickTrue },
210 { "-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000211 { "(", 0L, NoImageOperatorFlag, MagickTrue },
212 { ")", 0L, NoImageOperatorFlag, MagickTrue },
213 { "{", 0L, NoImageOperatorFlag, MagickTrue },
214 { "}", 0L, NoImageOperatorFlag, MagickTrue },
215 { "--", 1L, NoImageOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000216 { "+adaptive-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000217 { "-adaptive-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000218 { "+adaptive-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000219 { "-adaptive-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000220 { "+adaptive-sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000221 { "-adaptive-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000222 { "-adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000223 { "+adjoin", 0L, ImageInfoOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000224 { "+affine", 0L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
225 { "-affine", 1L, ReplacedOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony31f1bf72012-01-30 12:37:22 +0000226 { "+affinity", 0L, DeprecateOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000227 { "-affinity", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000228 { "+annotate", 0L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000229 { "-annotate", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000230 { "-antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000231 { "+antialias", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000232 { "-append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000233 { "+append", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000234 { "+attenuate", 0L, ImageInfoOptionFlag, MagickFalse },
anthony92c93bd2012-03-19 14:02:47 +0000235 { "-attenuate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000236 { "+authenticate", 0L, ImageInfoOptionFlag, MagickFalse },
237 { "-authenticate", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000238 { "+auto-gamma", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000239 { "-auto-gamma", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000240 { "+auto-level", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000241 { "-auto-level", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000242 { "+auto-orient", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000243 { "-auto-orient", 0L, SimpleOperatorFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000244 { "+average", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000245 { "-average", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000246 { "+backdrop", 0L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
247 { "-backdrop", 1L, NonMagickOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000248 { "+bench", 1L, DeprecateOptionFlag, MagickTrue },
anthony9a6469e2011-05-04 11:07:31 +0000249 { "-bench", 1L, GenesisOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000250 { "+bias", 0L, ImageInfoOptionFlag, MagickFalse },
251 { "-bias", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000252 { "-black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000253 { "+black-point-compensation", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000254 { "+black-threshold", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000255 { "-black-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000256 { "+blend", 0L, NonMagickOptionFlag, MagickFalse },
257 { "-blend", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000258 { "+blue-primary", 0L, ImageInfoOptionFlag, MagickFalse },
259 { "-blue-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000260 { "-blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000261 { "+blue-shift", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000262 { "+border", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000263 { "-border", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000264 { "+bordercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
265 { "-bordercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000266 { "+borderwidth", 0L, NonMagickOptionFlag, MagickFalse },
267 { "-borderwidth", 1L, NonMagickOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +0000268 { "+box", 0L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
269 { "-box", 1L, ReplacedOptionFlag | ImageInfoOptionFlag | DrawInfoOptionFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000270 { "+brightness-contrast", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000271 { "-brightness-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000272 { "+cache", 0L, GlobalOptionFlag, MagickFalse },
273 { "-cache", 1L, GlobalOptionFlag, MagickFalse },
cristy2fc10e52014-04-26 14:13:53 +0000274 { "+canny", 1L, DeprecateOptionFlag, MagickTrue },
cristybd7d96a2014-04-19 20:27:43 +0000275 { "-canny", 1L, SimpleOperatorFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000276 { "+caption", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
277 { "-caption", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000278 { "+cdl", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000279 { "-cdl", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
cristy17ada022014-11-07 22:12:23 +0000280 { "+channel", 0L, SimpleOperatorFlag, MagickFalse },
281 { "-channel", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000282 { "-channel-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyf57e5482013-02-17 22:11:27 +0000283 { "+charcoal", 1L, DeprecateOptionFlag, MagickTrue },
284 { "-charcoal", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000285 { "+chop", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000286 { "-chop", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000287 { "+clamp", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000288 { "-clamp", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000289 { "-clip", 0L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000290 { "+clip", 0L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000291 { "+clip-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
292 { "-clip-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000293 { "-clip-path", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000294 { "+clip-path", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000295 { "+clone", 0L, NoImageOperatorFlag, MagickFalse },
296 { "-clone", 1L, NoImageOperatorFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000297 { "+clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000298 { "-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000299 { "+coalesce", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000300 { "-coalesce", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000301 { "+colorize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000302 { "-colorize", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000303 { "+colormap", 0L, NonMagickOptionFlag, MagickFalse },
304 { "-colormap", 1L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000305 { "+color-matrix", 1L, DeprecateOptionFlag, MagickTrue },
306 { "-color-matrix", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000307 { "+colors", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000308 { "-colors", 1L, SimpleOperatorFlag, MagickFalse },
309 { "+colorspace", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
310 { "-colorspace", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony5a4ff372013-05-01 04:48:57 +0000311 { "-combine", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000312 { "+combine", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000313 { "+comment", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
314 { "-comment", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
cristya111cac2013-08-20 00:30:49 +0000315 { "+compare", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
316 { "-compare", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristy34919ed2013-10-06 15:42:40 +0000317 { "+complex", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy1141c852013-10-04 15:17:30 +0000318 { "-complex", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000319 { "+compose", 0L, ImageInfoOptionFlag, MagickFalse },
320 { "-compose", 1L, ImageInfoOptionFlag, MagickFalse },
anthony94012752012-03-06 04:14:34 +0000321 { "+composite", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000322 { "-composite", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000323 { "+compress", 0L, ImageInfoOptionFlag, MagickFalse },
324 { "-compress", 1L, ImageInfoOptionFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000325 { "+concurrent", 0L, DeprecateOptionFlag, MagickTrue },
anthonyebb73a22012-03-22 14:25:52 +0000326 { "-concurrent", 0L, GenesisOptionFlag, MagickFalse },
cristybb93b802014-10-25 13:32:45 +0000327 { "+connected-components", 1L, DeprecateOptionFlag, MagickTrue },
328 { "-connected-components", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000329 { "-contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000330 { "+contrast", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000331 { "+contrast-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000332 { "-contrast-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000333 { "+convolve", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000334 { "-convolve", 1L, SimpleOperatorFlag, MagickFalse },
cristy3476df82015-06-22 18:43:46 +0000335 { "+copy", 2L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
336 { "-copy", 2L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000337 { "+crop", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000338 { "-crop", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000339 { "+cycle", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000340 { "-cycle", 1L, SimpleOperatorFlag, MagickFalse },
anthony8226e722012-04-05 14:25:46 +0000341 { "+debug", 0L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
342 { "-debug", 1L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000343 { "+decipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000344 { "-decipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000345 { "+deconstruct", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000346 { "-deconstruct", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000347 { "-define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000348 { "+define", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000349 { "+delay", 0L, ImageInfoOptionFlag, MagickFalse },
350 { "-delay", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000351 { "+delete", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
352 { "-delete", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000353 { "+density", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000354 { "-density", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000355 { "+depth", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
356 { "-depth", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000357 { "+descend", 0L, NonMagickOptionFlag, MagickFalse },
358 { "-descend", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000359 { "+deskew", 0L, SimpleOperatorFlag, MagickFalse },
360 { "-deskew", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000361 { "+despeckle", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000362 { "-despeckle", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000363 { "+direction", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
364 { "-direction", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000365 { "+displace", 0L, NonMagickOptionFlag, MagickFalse },
366 { "-displace", 1L, NonMagickOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000367 { "-display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000368 { "+display", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000369 { "+dispose", 0L, ImageInfoOptionFlag, MagickFalse },
370 { "-dispose", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000371 { "+dissimilarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
372 { "-dissimilarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000373 { "+dissolve", 0L, NonMagickOptionFlag, MagickFalse },
374 { "-dissolve", 1L, NonMagickOptionFlag, MagickFalse },
anthony964d28e2012-05-17 23:39:46 +0000375 { "-distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000376 { "+distort", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000377 { "+dither", 0L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
378 { "-dither", 1L, ImageInfoOptionFlag | QuantizeInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000379 { "+draw", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000380 { "-draw", 1L, SimpleOperatorFlag, MagickFalse },
381 { "+duplicate", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
382 { "-duplicate", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony9a6469e2011-05-04 11:07:31 +0000383 { "-duration", 1L, GenesisOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000384 { "+duration", 1L, GenesisOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000385 { "+edge", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000386 { "-edge", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000387 { "+emboss", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000388 { "-emboss", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000389 { "+encipher", 1L, DeprecateOptionFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000390 { "-encipher", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000391 { "+encoding", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000392 { "-encoding", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000393 { "+endian", 0L, ImageInfoOptionFlag, MagickFalse },
394 { "-endian", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000395 { "+enhance", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000396 { "-enhance", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000397 { "+equalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000398 { "-equalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000399 { "+evaluate", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000400 { "-evaluate", 2L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000401 { "+evaluate-sequence", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000402 { "-evaluate-sequence", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000403 { "-exit", 0L, SpecialOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000404 { "+extent", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000405 { "-extent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000406 { "+extract", 0L, ImageInfoOptionFlag, MagickFalse },
407 { "-extract", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000408 { "+family", 0L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000409 { "-family", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000410 { "+features", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
411 { "-features", 1L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000412 { "-fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000413 { "+fft", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000414 { "+fill", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
415 { "-fill", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000416 { "+filter", 0L, ImageInfoOptionFlag, MagickFalse },
417 { "-filter", 1L, ImageInfoOptionFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000418 { "+flatten", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000419 { "-flatten", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000420 { "+flip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000421 { "-flip", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000422 { "-floodfill", 2L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000423 { "+floodfill", 2L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000424 { "+flop", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000425 { "-flop", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000426 { "+font", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
427 { "-font", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000428 { "+foreground", 0L, NonMagickOptionFlag, MagickFalse },
429 { "-foreground", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000430 { "+frame", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000431 { "-frame", 1L, SimpleOperatorFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000432 { "+function", 2L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000433 { "-function", 2L,SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000434 { "+fuzz", 0L, ImageInfoOptionFlag, MagickFalse },
435 { "-fuzz", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000436 { "+fx", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000437 { "-fx", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000438 { "-gamma", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000439 { "+gamma", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000440 { "+gaussian", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000441 { "-gaussian", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000442 { "+gaussian-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000443 { "-gaussian-blur", 1L, SimpleOperatorFlag, MagickFalse },
444 { "+geometry", 0L, SimpleOperatorFlag, MagickFalse },
445 { "-geometry", 1L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000446 { "+gravity", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
447 { "-gravity", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000448 { "+grayscale", 1L, SimpleOperatorFlag, MagickTrue },
cristy17ada022014-11-07 22:12:23 +0000449 { "-grayscale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000450 { "+green-primary", 0L, ImageInfoOptionFlag, MagickFalse },
451 { "-green-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000452 { "+hald-clut", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000453 { "-hald-clut", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000454 { "+highlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
455 { "-highlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristy2fc10e52014-04-26 14:13:53 +0000456 { "+hough-lines", 1L, DeprecateOptionFlag, MagickTrue },
cristybd7d96a2014-04-19 20:27:43 +0000457 { "-hough-lines", 1L, SimpleOperatorFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000458 { "+iconGeometry", 0L, NonMagickOptionFlag, MagickFalse },
459 { "-iconGeometry", 1L, NonMagickOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000460 { "-iconic", 0L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000461 { "+iconic", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000462 { "+identify", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000463 { "-identify", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000464 { "-ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000465 { "+ift", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000466 { "-immutable", 0L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000467 { "+immutable", 0L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000468 { "+implode", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000469 { "-implode", 1L, SimpleOperatorFlag, MagickFalse },
470 { "+insert", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
471 { "-insert", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristya14c5122013-03-15 10:42:52 +0000472 { "+intensity", 0L, ImageInfoOptionFlag, MagickFalse },
473 { "-intensity", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000474 { "+intent", 0L, ImageInfoOptionFlag, MagickFalse },
475 { "-intent", 1L, ImageInfoOptionFlag, MagickFalse },
476 { "+interlace", 0L, ImageInfoOptionFlag, MagickFalse },
477 { "-interlace", 1L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000478 { "+interline-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
479 { "-interline-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000480 { "+interpolate", 0L, ImageInfoOptionFlag, MagickFalse },
481 { "-interpolate", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyfd706f92012-01-19 04:22:02 +0000482 { "+interpolative-resize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000483 { "-interpolative-resize", 1L, SimpleOperatorFlag, MagickFalse },
anthony686b1a32012-02-15 14:50:53 +0000484 { "+interword-spacing", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
485 { "-interword-spacing", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000486 { "+kerning", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
487 { "-kerning", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristy3b207f82014-09-27 14:21:20 +0000488 { "+kuwahara", 0L, DeprecateOptionFlag, MagickTrue },
489 { "-kuwahara", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000490 { "+label", 0L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
491 { "-label", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000492 { "+lat", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000493 { "-lat", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000494 { "+layers", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000495 { "-layers", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000496 { "-level", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000497 { "+level", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000498 { "-level-colors", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000499 { "+level-colors", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000500 { "+limit", 0L, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000501 { "-limit", 2L, GlobalOptionFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000502 { "+linear-stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000503 { "-linear-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000504 { "+liquid-rescale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000505 { "-liquid-rescale", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000506 { "+list", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000507 { "-list", 1L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000508 { "+log", 0L, DeprecateOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000509 { "-log", 1L, GlobalOptionFlag, MagickFalse },
510 { "+loop", 0L, ImageInfoOptionFlag, MagickFalse },
511 { "-loop", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000512 { "+lowlight-color", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
513 { "-lowlight-color", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
cristy7220ee42013-04-14 01:30:34 +0000514 { "+magnify", 0L, DeprecateOptionFlag, MagickTrue },
515 { "-magnify", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000516 { "+map", 0L, ReplacedOptionFlag | ListOperatorFlag | FireOptionFlag, MagickTrue },
517 { "-map", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
cristy327030c2015-07-25 18:05:50 +0000518 { "+mask", 0L, DeprecateOptionFlag | NeverInterpretArgsFlag, MagickFalse },
519 { "-mask", 1L, DeprecateOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000520 { "-matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000521 { "+matte", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000522 { "+mattecolor", 0L, ImageInfoOptionFlag, MagickFalse },
523 { "-mattecolor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000524 { "-maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000525 { "+maximum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristy2fc10e52014-04-26 14:13:53 +0000526 { "+mean-shift", 1L, DeprecateOptionFlag, MagickTrue },
527 { "-mean-shift", 1L, SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000528 { "+median", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000529 { "-median", 1L, ReplacedOptionFlag | SimpleOperatorFlag | FireOptionFlag, MagickTrue },
cristy6c8baa72013-08-20 00:39:06 +0000530 { "+metric", 0L, DeprecateOptionFlag | FireOptionFlag, MagickFalse },
531 { "-metric", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000532 { "-minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000533 { "+minimum", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000534 { "+mode", 1L, NonMagickOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000535 { "-mode", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000536 { "+modulate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000537 { "-modulate", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000538 { "-moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
539 { "+moments", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000540 { "-monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000541 { "+monitor", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000542 { "+monochrome", 0L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000543 { "-monochrome", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000544 { "+morph", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000545 { "-morph", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000546 { "+morphology", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000547 { "-morphology", 2L, SimpleOperatorFlag, MagickFalse },
anthony31f1bf72012-01-30 12:37:22 +0000548 { "+mosaic", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000549 { "-mosaic", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000550 { "+motion-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000551 { "-motion-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000552 { "+name", 0L, NonMagickOptionFlag, MagickFalse },
553 { "-name", 1L, NonMagickOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000554 { "+negate", 0L, SimpleOperatorFlag, MagickFalse },
cristy17ada022014-11-07 22:12:23 +0000555 { "-negate", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000556 { "-noise", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000557 { "+noise", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000558 { "-noop", 0L, NoImageOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000559 { "+normalize", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000560 { "-normalize", 0L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000561 { "-opaque", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000562 { "+opaque", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000563 { "+ordered-dither", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000564 { "-ordered-dither", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000565 { "+orient", 0L, ImageInfoOptionFlag, MagickFalse },
566 { "-orient", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000567 { "+page", 0L, ImageInfoOptionFlag, MagickFalse },
568 { "-page", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000569 { "+paint", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000570 { "-paint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000571 { "+path", 0L, NonMagickOptionFlag, MagickFalse },
572 { "-path", 1L, NonMagickOptionFlag, MagickFalse },
573 { "+pause", 0L, NonMagickOptionFlag, MagickFalse },
574 { "-pause", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000575 { "-ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000576 { "+ping", 0L, ImageInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000577 { "+pointsize", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
578 { "-pointsize", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000579 { "+polaroid", 0L, SimpleOperatorFlag, MagickFalse },
580 { "-polaroid", 1L, SimpleOperatorFlag, MagickFalse },
cristyf56e6ad2012-11-11 19:29:38 +0000581 { "+poly", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
582 { "-poly", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000583 { "+posterize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000584 { "-posterize", 1L, SimpleOperatorFlag, MagickFalse },
anthonya3ef4ed2012-03-17 06:52:53 +0000585 { "+precision", 0L, ImageInfoOptionFlag, MagickFalse },
586 { "-precision", 1L, ImageInfoOptionFlag, MagickFalse },
587 { "+preview", 0L, DeprecateOptionFlag, MagickTrue },
588 { "-preview", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000589 { "+print", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthonya322a832013-04-27 06:28:03 +0000590 { "-print", 1L, NoImageOperatorFlag | AlwaysInterpretArgsFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000591 { "+process", 1L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000592 { "-process", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
593 { "+profile", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000594 { "-profile", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000595 { "+quality", 0L, ImageInfoOptionFlag, MagickFalse },
596 { "-quality", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000597 { "+quantize", 0L, QuantizeInfoOptionFlag, MagickFalse },
598 { "-quantize", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000599 { "-raise", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000600 { "+raise", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000601 { "+random-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000602 { "-random-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000603 { "-read", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
cristy327030c2015-07-25 18:05:50 +0000604 { "+read-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
605 { "-read-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000606 { "+recolor", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000607 { "-recolor", 1L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthonyde1a57f2011-05-02 09:45:30 +0000608 { "+red-primary", 0L, ImageInfoOptionFlag, MagickFalse },
609 { "-red-primary", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000610 { "+region", 0L, NoImageOperatorFlag, MagickFalse },
611 { "-region", 1L, NoImageOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000612 { "+remap", 0L, ListOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
613 { "-remap", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000614 { "+remote", 0L, NonMagickOptionFlag, MagickFalse },
615 { "-remote", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000616 { "-render", 0L, DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000617 { "+render", 0L, DrawInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000618 { "+resample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000619 { "-resample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyd111fda2012-04-13 03:07:40 +0000620 { "-respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000621 { "+respect-parenthesis", 0L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000622 { "+reverse", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000623 { "-reverse", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000624 { "+roll", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000625 { "-roll", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000626 { "+rotate", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000627 { "-rotate", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000628 { "-rotational-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000629 { "+sample", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000630 { "-sample", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000631 { "+sampling-factor", 0L, ImageInfoOptionFlag, MagickFalse },
632 { "-sampling-factor", 1L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000633 { "-sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000634 { "+sans0", 0L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'noop' */
anthony0da1e9c2012-11-17 05:28:22 +0000635 { "+sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
636 { "-sans1", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue }, /* equivelent to 'sans' */
cristyb01e49e2014-09-09 22:59:01 +0000637 { "-sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
638 { "+sans", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony4837ac22012-05-18 23:39:48 +0000639 { "-sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
cristyb01e49e2014-09-09 22:59:01 +0000640 { "+sans2", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickTrue },
anthony72feaa62012-01-17 06:46:23 +0000641 { "+scale", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000642 { "-scale", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000643 { "+scene", 0L, ImageInfoOptionFlag, MagickFalse },
644 { "-scene", 1L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000645 { "+scenes", 0L, NonMagickOptionFlag, MagickFalse },
646 { "-scenes", 1L, NonMagickOptionFlag, MagickFalse },
647 { "+screen", 0L, NonMagickOptionFlag, MagickFalse },
648 { "-screen", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000649 { "-script", 1L, SpecialOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000650 { "+seed", 0L, GlobalOptionFlag, MagickFalse },
651 { "-seed", 1L, GlobalOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000652 { "+segment", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000653 { "-segment", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000654 { "+selective-blur", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000655 { "-selective-blur", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000656 { "+separate", 0L, DeprecateOptionFlag | FireOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000657 { "-separate", 0L, SimpleOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000658 { "+sepia-tone", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000659 { "-sepia-tone", 1L, SimpleOperatorFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +0000660 { "+set", 1L, NoImageOperatorFlag, MagickFalse },
anthony0da1e9c2012-11-17 05:28:22 +0000661 { "-set", 2L, NoImageOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000662 { "+shade", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000663 { "-shade", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000664 { "+shadow", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000665 { "-shadow", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000666 { "+shared-memory", 0L, NonMagickOptionFlag, MagickFalse },
667 { "-shared-memory", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000668 { "+sharpen", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000669 { "-sharpen", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000670 { "+shave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000671 { "-shave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000672 { "+shear", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000673 { "-shear", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000674 { "-sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000675 { "+sigmoidal-contrast", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000676 { "+silent", 0L, NonMagickOptionFlag, MagickFalse },
677 { "-silent", 1L, NonMagickOptionFlag, MagickFalse },
cristy62e52182013-03-15 14:26:17 +0000678 { "+similarity-threshold", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
679 { "-similarity-threshold", 1L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000680 { "+sketch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000681 { "-sketch", 1L, SimpleOperatorFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000682 { "-smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000683 { "+smush", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000684 { "+snaps", 0L, NonMagickOptionFlag, MagickFalse },
685 { "-snaps", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000686 { "+solarize", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000687 { "-solarize", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000688 { "+sparse-color", 1L, DeprecateOptionFlag, MagickTrue },
anthony964d28e2012-05-17 23:39:46 +0000689 { "-sparse-color", 2L, SimpleOperatorFlag | AlwaysInterpretArgsFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000690 { "+splice", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000691 { "-splice", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000692 { "+spread", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000693 { "-spread", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000694 { "+statistic", 2L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000695 { "-statistic", 2L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000696 { "+stegano", 0L, NonMagickOptionFlag, MagickFalse },
697 { "-stegano", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000698 { "+stereo", 0L, DeprecateOptionFlag, MagickTrue },
anthony668f43a2012-02-20 14:55:32 +0000699 { "-stereo", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000700 { "+stretch", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000701 { "-stretch", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000702 { "+strip", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000703 { "-strip", 0L, SimpleOperatorFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000704 { "+stroke", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
705 { "-stroke", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000706 { "-strokewidth", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000707 { "+strokewidth", 1L, ImageInfoOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000708 { "+style", 0L, DrawInfoOptionFlag, MagickFalse },
709 { "-style", 1L, DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000710 { "-subimage", 0L, ListOperatorFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000711 { "-subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
712 { "+subimage-search", 0L, NonMagickOptionFlag | ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000713 { "+swap", 0L, ListOperatorFlag | FireOptionFlag, MagickFalse },
714 { "-swap", 1L, ListOperatorFlag | FireOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000715 { "+swirl", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000716 { "-swirl", 1L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000717 { "-synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000718 { "+synchronize", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000719 { "-taint", 0L, ImageInfoOptionFlag, MagickFalse },
cristyb01e49e2014-09-09 22:59:01 +0000720 { "+taint", 0L, ImageInfoOptionFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000721 { "+text-font", 0L, NonMagickOptionFlag, MagickFalse },
722 { "-text-font", 1L, NonMagickOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000723 { "+texture", 0L, ImageInfoOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000724 { "-texture", 1L, ImageInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000725 { "+threshold", 0L, SimpleOperatorFlag, MagickFalse },
726 { "-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000727 { "+thumbnail", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000728 { "-thumbnail", 1L, SimpleOperatorFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000729 { "+tile", 0L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
730 { "-tile", 1L, DrawInfoOptionFlag | NeverInterpretArgsFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000731 { "+tile-offset", 0L, ImageInfoOptionFlag, MagickFalse },
732 { "-tile-offset", 1L, ImageInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000733 { "-tint", 1L, SimpleOperatorFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000734 { "+tint", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000735 { "+title", 0L, NonMagickOptionFlag, MagickFalse },
736 { "-title", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000737 { "+transform", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000738 { "-transform", 0L, ReplacedOptionFlag | SimpleOperatorFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000739 { "-transparent", 1L, SimpleOperatorFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000740 { "+transparent", 1L, SimpleOperatorFlag, MagickFalse },
anthonyb1d483a2012-04-14 12:53:56 +0000741 { "+transparent-color", 0L, ImageInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000742 { "-transparent-color", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000743 { "+transpose", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000744 { "-transpose", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000745 { "+transverse", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000746 { "-transverse", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000747 { "+treedepth", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000748 { "-treedepth", 1L, QuantizeInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000749 { "+trim", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000750 { "-trim", 0L, SimpleOperatorFlag, MagickFalse },
751 { "+type", 0L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
752 { "-type", 1L, ImageInfoOptionFlag | SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000753 { "+undercolor", 0L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
cristya79a3482011-05-03 17:14:22 +0000754 { "-undercolor", 1L, ImageInfoOptionFlag | DrawInfoOptionFlag, MagickFalse },
anthony464f1c42012-04-22 08:51:01 +0000755 { "-unique", 0L, SimpleOperatorFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000756 { "+unique", 0L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000757 { "+unique-colors", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000758 { "-unique-colors", 0L, SimpleOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000759 { "+units", 0L, ImageInfoOptionFlag, MagickFalse },
760 { "-units", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000761 { "+unsharp", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000762 { "-unsharp", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000763 { "+update", 0L, NonMagickOptionFlag, MagickFalse },
764 { "-update", 1L, NonMagickOptionFlag, MagickFalse },
765 { "+use-pixmap", 0L, NonMagickOptionFlag, MagickFalse },
766 { "-use-pixmap", 1L, NonMagickOptionFlag, MagickFalse },
anthonyb0d52702011-05-02 03:34:24 +0000767 { "-verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000768 { "+verbose", 0L, ImageInfoOptionFlag, MagickFalse },
cristyc404ff62012-02-05 15:17:09 +0000769 { "+version", 0L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000770 { "-version", 0L, NoImageOperatorFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000771 { "+view", 0L, ImageInfoOptionFlag, MagickFalse },
772 { "-view", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000773 { "+vignette", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000774 { "-vignette", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000775 { "+visual", 0L, NonMagickOptionFlag, MagickFalse },
776 { "-visual", 1L, NonMagickOptionFlag, MagickFalse },
777 { "+watermark", 0L, NonMagickOptionFlag, MagickFalse },
778 { "-watermark", 1L, NonMagickOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000779 { "+wave", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000780 { "-wave", 1L, SimpleOperatorFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000781 { "+weight", 1L, DeprecateOptionFlag, MagickTrue },
anthonyb0d52702011-05-02 03:34:24 +0000782 { "-weight", 1L, DrawInfoOptionFlag, MagickFalse },
anthonyde1a57f2011-05-02 09:45:30 +0000783 { "+white-point", 0L, ImageInfoOptionFlag, MagickFalse },
784 { "-white-point", 1L, ImageInfoOptionFlag, MagickFalse },
anthony72feaa62012-01-17 06:46:23 +0000785 { "+white-threshold", 1L, DeprecateOptionFlag, MagickTrue },
anthony464f1c42012-04-22 08:51:01 +0000786 { "-white-threshold", 1L, SimpleOperatorFlag, MagickFalse },
anthony668f43a2012-02-20 14:55:32 +0000787 { "+window", 0L, NonMagickOptionFlag, MagickFalse },
788 { "-window", 1L, NonMagickOptionFlag, MagickFalse },
789 { "+window-group", 0L, NonMagickOptionFlag, MagickFalse },
790 { "-window-group", 1L, NonMagickOptionFlag, MagickFalse },
anthony4837ac22012-05-18 23:39:48 +0000791 { "-write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy62841852014-09-12 15:24:39 +0000792 { "+write", 1L, NoImageOperatorFlag | NeverInterpretArgsFlag | FireOptionFlag, MagickFalse },
cristy327030c2015-07-25 18:05:50 +0000793 { "+write-mask", 0L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
794 { "-write-mask", 1L, SimpleOperatorFlag | NeverInterpretArgsFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000795 { (char *) NULL, 0L, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000796 },
797 ComposeOptions[] =
798 {
cristy042ee782011-04-22 18:48:30 +0000799 { "Undefined", UndefinedCompositeOp, UndefinedOptionFlag, MagickTrue },
800 { "Atop", AtopCompositeOp, UndefinedOptionFlag, MagickFalse },
801 { "Blend", BlendCompositeOp, UndefinedOptionFlag, MagickFalse },
802 { "Blur", BlurCompositeOp, UndefinedOptionFlag, MagickFalse },
803 { "Bumpmap", BumpmapCompositeOp, UndefinedOptionFlag, MagickFalse },
804 { "ChangeMask", ChangeMaskCompositeOp, UndefinedOptionFlag, MagickFalse },
805 { "Clear", ClearCompositeOp, UndefinedOptionFlag, MagickFalse },
806 { "ColorBurn", ColorBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
807 { "ColorDodge", ColorDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
808 { "Colorize", ColorizeCompositeOp, UndefinedOptionFlag, MagickFalse },
cristye4a40472011-12-22 02:56:19 +0000809 { "CopyAlpha", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000810 { "CopyBlack", CopyBlackCompositeOp, UndefinedOptionFlag, MagickFalse },
811 { "CopyBlue", CopyBlueCompositeOp, UndefinedOptionFlag, MagickFalse },
812 { "CopyCyan", CopyCyanCompositeOp, UndefinedOptionFlag, MagickFalse },
813 { "CopyGreen", CopyGreenCompositeOp, UndefinedOptionFlag, MagickFalse },
814 { "Copy", CopyCompositeOp, UndefinedOptionFlag, MagickFalse },
815 { "CopyMagenta", CopyMagentaCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000816 { "CopyRed", CopyRedCompositeOp, UndefinedOptionFlag, MagickFalse },
817 { "CopyYellow", CopyYellowCompositeOp, UndefinedOptionFlag, MagickFalse },
818 { "Darken", DarkenCompositeOp, UndefinedOptionFlag, MagickFalse },
819 { "DarkenIntensity", DarkenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
820 { "DivideDst", DivideDstCompositeOp, UndefinedOptionFlag, MagickFalse },
821 { "DivideSrc", DivideSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
822 { "Dst", DstCompositeOp, UndefinedOptionFlag, MagickFalse },
823 { "Difference", DifferenceCompositeOp, UndefinedOptionFlag, MagickFalse },
824 { "Displace", DisplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
825 { "Dissolve", DissolveCompositeOp, UndefinedOptionFlag, MagickFalse },
826 { "Distort", DistortCompositeOp, UndefinedOptionFlag, MagickFalse },
827 { "DstAtop", DstAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
828 { "DstIn", DstInCompositeOp, UndefinedOptionFlag, MagickFalse },
829 { "DstOut", DstOutCompositeOp, UndefinedOptionFlag, MagickFalse },
830 { "DstOver", DstOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000831 { "Exclusion", ExclusionCompositeOp, UndefinedOptionFlag, MagickFalse },
832 { "HardLight", HardLightCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy99fc2172014-06-26 10:30:53 +0000833 { "HardMix", HardMixCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000834 { "Hue", HueCompositeOp, UndefinedOptionFlag, MagickFalse },
835 { "In", InCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy98621462011-12-31 22:31:11 +0000836 { "Intensity", IntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000837 { "Lighten", LightenCompositeOp, UndefinedOptionFlag, MagickFalse },
838 { "LightenIntensity", LightenIntensityCompositeOp, UndefinedOptionFlag, MagickFalse },
839 { "LinearBurn", LinearBurnCompositeOp, UndefinedOptionFlag, MagickFalse },
840 { "LinearDodge", LinearDodgeCompositeOp, UndefinedOptionFlag, MagickFalse },
841 { "LinearLight", LinearLightCompositeOp, UndefinedOptionFlag, MagickFalse },
842 { "Luminize", LuminizeCompositeOp, UndefinedOptionFlag, MagickFalse },
843 { "Mathematics", MathematicsCompositeOp, UndefinedOptionFlag, MagickFalse },
844 { "MinusDst", MinusDstCompositeOp, UndefinedOptionFlag, MagickFalse },
845 { "MinusSrc", MinusSrcCompositeOp, UndefinedOptionFlag, MagickFalse },
846 { "Modulate", ModulateCompositeOp, UndefinedOptionFlag, MagickFalse },
847 { "ModulusAdd", ModulusAddCompositeOp, UndefinedOptionFlag, MagickFalse },
848 { "ModulusSubtract", ModulusSubtractCompositeOp, UndefinedOptionFlag, MagickFalse },
849 { "Multiply", MultiplyCompositeOp, UndefinedOptionFlag, MagickFalse },
850 { "None", NoCompositeOp, UndefinedOptionFlag, MagickFalse },
851 { "Out", OutCompositeOp, UndefinedOptionFlag, MagickFalse },
852 { "Overlay", OverlayCompositeOp, UndefinedOptionFlag, MagickFalse },
853 { "Over", OverCompositeOp, UndefinedOptionFlag, MagickFalse },
854 { "PegtopLight", PegtopLightCompositeOp, UndefinedOptionFlag, MagickFalse },
855 { "PinLight", PinLightCompositeOp, UndefinedOptionFlag, MagickFalse },
856 { "Plus", PlusCompositeOp, UndefinedOptionFlag, MagickFalse },
857 { "Replace", ReplaceCompositeOp, UndefinedOptionFlag, MagickFalse },
858 { "Saturate", SaturateCompositeOp, UndefinedOptionFlag, MagickFalse },
859 { "Screen", ScreenCompositeOp, UndefinedOptionFlag, MagickFalse },
860 { "SoftLight", SoftLightCompositeOp, UndefinedOptionFlag, MagickFalse },
861 { "Src", SrcCompositeOp, UndefinedOptionFlag, MagickFalse },
862 { "SrcAtop", SrcAtopCompositeOp, UndefinedOptionFlag, MagickFalse },
863 { "SrcIn", SrcInCompositeOp, UndefinedOptionFlag, MagickFalse },
864 { "SrcOut", SrcOutCompositeOp, UndefinedOptionFlag, MagickFalse },
865 { "SrcOver", SrcOverCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000866 { "VividLight", VividLightCompositeOp, UndefinedOptionFlag, MagickFalse },
867 { "Xor", XorCompositeOp, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +0000868 { "Divide", DivideDstCompositeOp, DeprecateOptionFlag, MagickTrue },
869 { "Minus", MinusDstCompositeOp, DeprecateOptionFlag, MagickTrue },
cristyc280c872015-07-12 22:52:41 +0000870 { "Subtract", ModulusSubtractCompositeOp, DeprecateOptionFlag, MagickTrue },
871 { "Add", ModulusAddCompositeOp, DeprecateOptionFlag, MagickTrue },
cristy1df692a2011-04-23 17:09:35 +0000872 { "Threshold", ThresholdCompositeOp, DeprecateOptionFlag, MagickTrue },
anthonyea068a52012-04-09 05:46:25 +0000873 { "CopyOpacity", CopyAlphaCompositeOp, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +0000874 { (char *) NULL, UndefinedCompositeOp, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000875 },
876 CompressOptions[] =
877 {
cristy042ee782011-04-22 18:48:30 +0000878 { "Undefined", UndefinedCompression, UndefinedOptionFlag, MagickTrue },
879 { "B44", B44Compression, UndefinedOptionFlag, MagickFalse },
880 { "B44A", B44ACompression, UndefinedOptionFlag, MagickFalse },
881 { "BZip", BZipCompression, UndefinedOptionFlag, MagickFalse },
882 { "DXT1", DXT1Compression, UndefinedOptionFlag, MagickFalse },
883 { "DXT3", DXT3Compression, UndefinedOptionFlag, MagickFalse },
884 { "DXT5", DXT5Compression, UndefinedOptionFlag, MagickFalse },
885 { "Fax", FaxCompression, UndefinedOptionFlag, MagickFalse },
886 { "Group4", Group4Compression, UndefinedOptionFlag, MagickFalse },
cristy6d5e20f2011-04-25 13:48:54 +0000887 { "JBIG1", JBIG1Compression, UndefinedOptionFlag, MagickFalse },
888 { "JBIG2", JBIG2Compression, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000889 { "JPEG", JPEGCompression, UndefinedOptionFlag, MagickFalse },
890 { "JPEG2000", JPEG2000Compression, UndefinedOptionFlag, MagickFalse },
891 { "Lossless", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
892 { "LosslessJPEG", LosslessJPEGCompression, UndefinedOptionFlag, MagickFalse },
893 { "LZMA", LZMACompression, UndefinedOptionFlag, MagickFalse },
894 { "LZW", LZWCompression, UndefinedOptionFlag, MagickFalse },
895 { "None", NoCompression, UndefinedOptionFlag, MagickFalse },
896 { "Piz", PizCompression, UndefinedOptionFlag, MagickFalse },
897 { "Pxr24", Pxr24Compression, UndefinedOptionFlag, MagickFalse },
898 { "RLE", RLECompression, UndefinedOptionFlag, MagickFalse },
899 { "Zip", ZipCompression, UndefinedOptionFlag, MagickFalse },
900 { "RunlengthEncoded", RLECompression, UndefinedOptionFlag, MagickFalse },
901 { "ZipS", ZipSCompression, UndefinedOptionFlag, MagickFalse },
902 { (char *) NULL, UndefinedCompression, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000903 },
904 ColorspaceOptions[] =
905 {
cristy042ee782011-04-22 18:48:30 +0000906 { "Undefined", UndefinedColorspace, UndefinedOptionFlag, MagickTrue },
cristy978b6a32012-06-24 15:17:32 +0000907 { "CIELab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000908 { "CMY", CMYColorspace, UndefinedOptionFlag, MagickFalse },
909 { "CMYK", CMYKColorspace, UndefinedOptionFlag, MagickFalse },
910 { "Gray", GRAYColorspace, UndefinedOptionFlag, MagickFalse },
cristy722fc0c2012-08-04 23:15:43 +0000911 { "HCL", HCLColorspace, UndefinedOptionFlag, MagickFalse },
cristy710cbd42013-05-02 21:39:35 +0000912 { "HCLp", HCLpColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000913 { "HSB", HSBColorspace, UndefinedOptionFlag, MagickFalse },
cristyaf64eb22013-05-02 14:07:10 +0000914 { "HSI", HSIColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000915 { "HSL", HSLColorspace, UndefinedOptionFlag, MagickFalse },
cristy246c3132013-05-02 16:35:53 +0000916 { "HSV", HSVColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000917 { "HWB", HWBColorspace, UndefinedOptionFlag, MagickFalse },
918 { "Lab", LabColorspace, UndefinedOptionFlag, MagickFalse },
cristy1f099312012-08-29 17:22:14 +0000919 { "LCH", LCHColorspace, UndefinedOptionFlag, MagickFalse },
cristydf42b172013-04-05 13:35:37 +0000920 { "LCHab", LCHabColorspace, UndefinedOptionFlag, MagickFalse },
921 { "LCHuv", LCHuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy09d746f2012-08-29 17:54:59 +0000922 { "LMS", LMSColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000923 { "Log", LogColorspace, UndefinedOptionFlag, MagickFalse },
cristycb82c8e2012-08-01 12:54:37 +0000924 { "Luv", LuvColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000925 { "OHTA", OHTAColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000926 { "Rec601YCbCr", Rec601YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000927 { "Rec709YCbCr", Rec709YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
928 { "RGB", RGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy34632332013-05-03 10:21:05 +0000929 { "scRGB", scRGBColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000930 { "sRGB", sRGBColorspace, UndefinedOptionFlag, MagickFalse },
931 { "Transparent", TransparentColorspace, UndefinedOptionFlag, MagickFalse },
cristy7894d4a2014-09-29 12:43:59 +0000932 { "xyY", xyYColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000933 { "XYZ", XYZColorspace, UndefinedOptionFlag, MagickFalse },
934 { "YCbCr", YCbCrColorspace, UndefinedOptionFlag, MagickFalse },
cristyc282d1b2013-05-06 23:37:48 +0000935 { "YDbDr", YDbDrColorspace, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000936 { "YCC", YCCColorspace, UndefinedOptionFlag, MagickFalse },
937 { "YIQ", YIQColorspace, UndefinedOptionFlag, MagickFalse },
938 { "YPbPr", YPbPrColorspace, UndefinedOptionFlag, MagickFalse },
939 { "YUV", YUVColorspace, UndefinedOptionFlag, MagickFalse },
940 { (char *) NULL, UndefinedColorspace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000941 },
cristy790190d2013-10-04 00:51:51 +0000942 ComplexOptions[] =
943 {
944 { "Undefined", UndefinedComplexOperator, UndefinedOptionFlag, MagickTrue },
cristy19f78862013-10-05 22:21:46 +0000945 { "Add", AddComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000946 { "Conjugate", ConjugateComplexOperator, UndefinedOptionFlag, MagickFalse },
947 { "Divide", DivideComplexOperator, UndefinedOptionFlag, MagickFalse },
cristyf46941c2013-10-06 22:25:41 +0000948 { "MagnitudePhase", MagnitudePhaseComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000949 { "Multiply", MultiplyComplexOperator, UndefinedOptionFlag, MagickFalse },
cristyf46941c2013-10-06 22:25:41 +0000950 { "RealImaginary", RealImaginaryComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy19f78862013-10-05 22:21:46 +0000951 { "Subtract", SubtractComplexOperator, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +0000952 { (char *) NULL, UndefinedComplexOperator, UndefinedOptionFlag, MagickFalse }
953 },
cristy3ed852e2009-09-05 21:47:34 +0000954 DataTypeOptions[] =
955 {
cristy042ee782011-04-22 18:48:30 +0000956 { "Undefined", UndefinedData, UndefinedOptionFlag, MagickTrue },
957 { "Byte", ByteData, UndefinedOptionFlag, MagickFalse },
958 { "Long", LongData, UndefinedOptionFlag, MagickFalse },
959 { "Short", ShortData, UndefinedOptionFlag, MagickFalse },
960 { "String", StringData, UndefinedOptionFlag, MagickFalse },
961 { (char *) NULL, UndefinedData, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000962 },
963 DecorateOptions[] =
964 {
cristy042ee782011-04-22 18:48:30 +0000965 { "Undefined", UndefinedDecoration, UndefinedOptionFlag, MagickTrue },
966 { "LineThrough", LineThroughDecoration, UndefinedOptionFlag, MagickFalse },
967 { "None", NoDecoration, UndefinedOptionFlag, MagickFalse },
968 { "Overline", OverlineDecoration, UndefinedOptionFlag, MagickFalse },
969 { "Underline", UnderlineDecoration, UndefinedOptionFlag, MagickFalse },
970 { (char *) NULL, UndefinedDecoration, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000971 },
cristyc9b12952010-03-28 01:12:28 +0000972 DirectionOptions[] =
973 {
cristy042ee782011-04-22 18:48:30 +0000974 { "Undefined", UndefinedDirection, UndefinedOptionFlag, MagickTrue },
975 { "right-to-left", RightToLeftDirection, UndefinedOptionFlag, MagickFalse },
976 { "left-to-right", LeftToRightDirection, UndefinedOptionFlag, MagickFalse },
977 { (char *) NULL, UndefinedDirection, UndefinedOptionFlag, MagickFalse }
cristyc9b12952010-03-28 01:12:28 +0000978 },
cristy3ed852e2009-09-05 21:47:34 +0000979 DisposeOptions[] =
980 {
cristyc8b42a42014-12-17 14:37:53 +0000981 { "Undefined", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000982 { "Background", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
983 { "None", NoneDispose, UndefinedOptionFlag, MagickFalse },
984 { "Previous", PreviousDispose, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +0000985 { "0", UndefinedDispose, UndefinedOptionFlag, MagickFalse },
986 { "1", NoneDispose, UndefinedOptionFlag, MagickFalse },
987 { "2", BackgroundDispose, UndefinedOptionFlag, MagickFalse },
988 { "3", PreviousDispose, UndefinedOptionFlag, MagickFalse },
989 { (char *) NULL, UndefinedDispose, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +0000990 },
991 DistortOptions[] =
992 {
cristy042ee782011-04-22 18:48:30 +0000993 { "Affine", AffineDistortion, UndefinedOptionFlag, MagickFalse },
994 { "AffineProjection", AffineProjectionDistortion, UndefinedOptionFlag, MagickFalse },
995 { "ScaleRotateTranslate", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
996 { "SRT", ScaleRotateTranslateDistortion, UndefinedOptionFlag, MagickFalse },
997 { "Perspective", PerspectiveDistortion, UndefinedOptionFlag, MagickFalse },
998 { "PerspectiveProjection", PerspectiveProjectionDistortion, UndefinedOptionFlag, MagickFalse },
999 { "Bilinear", BilinearForwardDistortion, UndefinedOptionFlag, MagickTrue },
1000 { "BilinearForward", BilinearForwardDistortion, UndefinedOptionFlag, MagickFalse },
1001 { "BilinearReverse", BilinearReverseDistortion, UndefinedOptionFlag, MagickFalse },
1002 { "Polynomial", PolynomialDistortion, UndefinedOptionFlag, MagickFalse },
1003 { "Arc", ArcDistortion, UndefinedOptionFlag, MagickFalse },
1004 { "Polar", PolarDistortion, UndefinedOptionFlag, MagickFalse },
1005 { "DePolar", DePolarDistortion, UndefinedOptionFlag, MagickFalse },
1006 { "Barrel", BarrelDistortion, UndefinedOptionFlag, MagickFalse },
anthonye0d9bbd2011-06-15 01:05:57 +00001007 { "Cylinder2Plane", Cylinder2PlaneDistortion, UndefinedOptionFlag, MagickTrue },
1008 { "Plane2Cylinder", Plane2CylinderDistortion, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001009 { "BarrelInverse", BarrelInverseDistortion, UndefinedOptionFlag, MagickFalse },
1010 { "Shepards", ShepardsDistortion, UndefinedOptionFlag, MagickFalse },
1011 { "Resize", ResizeDistortion, UndefinedOptionFlag, MagickFalse },
1012 { (char *) NULL, UndefinedDistortion, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001013 },
1014 DitherOptions[] =
1015 {
cristy042ee782011-04-22 18:48:30 +00001016 { "Undefined", UndefinedDitherMethod, UndefinedOptionFlag, MagickTrue },
1017 { "None", NoDitherMethod, UndefinedOptionFlag, MagickFalse },
1018 { "FloydSteinberg", FloydSteinbergDitherMethod, UndefinedOptionFlag, MagickFalse },
1019 { "Riemersma", RiemersmaDitherMethod, UndefinedOptionFlag, MagickFalse },
1020 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001021 },
1022 EndianOptions[] =
1023 {
cristy042ee782011-04-22 18:48:30 +00001024 { "Undefined", UndefinedEndian, UndefinedOptionFlag, MagickTrue },
1025 { "LSB", LSBEndian, UndefinedOptionFlag, MagickFalse },
1026 { "MSB", MSBEndian, UndefinedOptionFlag, MagickFalse },
1027 { (char *) NULL, UndefinedEndian, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001028 },
1029 EvaluateOptions[] =
1030 {
cristy042ee782011-04-22 18:48:30 +00001031 { "Undefined", UndefinedEvaluateOperator, UndefinedOptionFlag, MagickTrue },
1032 { "Abs", AbsEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1033 { "Add", AddEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1034 { "AddModulus", AddModulusEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1035 { "And", AndEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1036 { "Cos", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1037 { "Cosine", CosineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1038 { "Divide", DivideEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1039 { "Exp", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1040 { "Exponential", ExponentialEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1041 { "GaussianNoise", GaussianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1042 { "ImpulseNoise", ImpulseNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1043 { "LaplacianNoise", LaplacianNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1044 { "LeftShift", LeftShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1045 { "Log", LogEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1046 { "Max", MaxEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1047 { "Mean", MeanEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1048 { "Median", MedianEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1049 { "Min", MinEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1050 { "MultiplicativeNoise", MultiplicativeNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1051 { "Multiply", MultiplyEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1052 { "Or", OrEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1053 { "PoissonNoise", PoissonNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1054 { "Pow", PowEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1055 { "RightShift", RightShiftEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy7c4c78f2014-06-15 21:57:39 +00001056 { "RMS", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1057 { "RootMeanSquare", RootMeanSquareEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001058 { "Set", SetEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1059 { "Sin", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1060 { "Sine", SineEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1061 { "Subtract", SubtractEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy12a3f8e2012-01-31 01:53:19 +00001062 { "Sum", SumEvaluateOperator, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001063 { "Threshold", ThresholdEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1064 { "ThresholdBlack", ThresholdBlackEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1065 { "ThresholdWhite", ThresholdWhiteEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1066 { "UniformNoise", UniformNoiseEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1067 { "Xor", XorEvaluateOperator, UndefinedOptionFlag, MagickFalse },
1068 { (char *) NULL, UndefinedEvaluateOperator, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001069 },
1070 FillRuleOptions[] =
1071 {
cristy042ee782011-04-22 18:48:30 +00001072 { "Undefined", UndefinedRule, UndefinedOptionFlag, MagickTrue },
1073 { "Evenodd", EvenOddRule, UndefinedOptionFlag, MagickFalse },
1074 { "NonZero", NonZeroRule, UndefinedOptionFlag, MagickFalse },
1075 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001076 },
1077 FilterOptions[] =
1078 {
cristy042ee782011-04-22 18:48:30 +00001079 { "Undefined", UndefinedFilter, UndefinedOptionFlag, MagickTrue },
1080 { "Bartlett", BartlettFilter, UndefinedOptionFlag, MagickFalse },
1081 { "Blackman", BlackmanFilter, UndefinedOptionFlag, MagickFalse },
1082 { "Bohman", BohmanFilter, UndefinedOptionFlag, MagickFalse },
1083 { "Box", BoxFilter, UndefinedOptionFlag, MagickFalse },
1084 { "Catrom", CatromFilter, UndefinedOptionFlag, MagickFalse },
anthony5d4a1702012-05-08 01:22:41 +00001085 { "Cosine", CosineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001086 { "Cubic", CubicFilter, UndefinedOptionFlag, MagickFalse },
1087 { "Gaussian", GaussianFilter, UndefinedOptionFlag, MagickFalse },
1088 { "Hamming", HammingFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001089 { "Hann", HannFilter, UndefinedOptionFlag, MagickFalse },
1090 { "Hanning", HannFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001091 { "Hermite", HermiteFilter, UndefinedOptionFlag, MagickFalse },
1092 { "Jinc", JincFilter, UndefinedOptionFlag, MagickFalse },
1093 { "Kaiser", KaiserFilter, UndefinedOptionFlag, MagickFalse },
1094 { "Lagrange", LagrangeFilter, UndefinedOptionFlag, MagickFalse },
1095 { "Lanczos", LanczosFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001096 { "Lanczos2", Lanczos2Filter, UndefinedOptionFlag, MagickFalse },
1097 { "Lanczos2Sharp", Lanczos2SharpFilter, UndefinedOptionFlag, MagickFalse },
anthonyaa806422012-10-17 00:56:10 +00001098 { "LanczosRadius", LanczosRadiusFilter, UndefinedOptionFlag, MagickFalse },
1099 { "LanczosSharp", LanczosSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001100 { "Mitchell", MitchellFilter, UndefinedOptionFlag, MagickFalse },
1101 { "Parzen", ParzenFilter, UndefinedOptionFlag, MagickFalse },
1102 { "Point", PointFilter, UndefinedOptionFlag, MagickFalse },
1103 { "Quadratic", QuadraticFilter, UndefinedOptionFlag, MagickFalse },
1104 { "Robidoux", RobidouxFilter, UndefinedOptionFlag, MagickFalse },
anthony45531092012-04-23 00:33:53 +00001105 { "RobidouxSharp", RobidouxSharpFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001106 { "Sinc", SincFilter, UndefinedOptionFlag, MagickFalse },
1107 { "SincFast", SincFastFilter, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001108 { "Spline", SplineFilter, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001109 { "Triangle", TriangleFilter, UndefinedOptionFlag, MagickFalse },
anthonyf60ffd72012-08-20 03:25:30 +00001110 { "Welch", WelchFilter, UndefinedOptionFlag, MagickFalse },
1111 { "Welsh", WelchFilter, UndefinedOptionFlag, MagickTrue }, /*misspell*/
cristy042ee782011-04-22 18:48:30 +00001112 { (char *) NULL, UndefinedFilter, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001113 },
1114 FunctionOptions[] =
1115 {
cristy042ee782011-04-22 18:48:30 +00001116 { "Undefined", UndefinedFunction, UndefinedOptionFlag, MagickTrue },
1117 { "Polynomial", PolynomialFunction, UndefinedOptionFlag, MagickFalse },
1118 { "Sinusoid", SinusoidFunction, UndefinedOptionFlag, MagickFalse },
1119 { "ArcSin", ArcsinFunction, UndefinedOptionFlag, MagickFalse },
1120 { "ArcTan", ArctanFunction, UndefinedOptionFlag, MagickFalse },
1121 { (char *) NULL, UndefinedFunction, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001122 },
dirk84c7c042015-07-12 13:01:35 +00001123 GradientOptions[] =
1124 {
1125 { "Undefined", UndefinedGradient, UndefinedOptionFlag, MagickTrue },
1126 { "Linear", LinearGradient, UndefinedOptionFlag, MagickFalse },
1127 { "Radial", RadialGradient, UndefinedOptionFlag, MagickFalse },
1128 { (char *) NULL, UndefinedRule, UndefinedOptionFlag, MagickFalse }
1129 },
cristy3ed852e2009-09-05 21:47:34 +00001130 GravityOptions[] =
1131 {
cristy042ee782011-04-22 18:48:30 +00001132 { "Undefined", UndefinedGravity, UndefinedOptionFlag, MagickTrue },
1133 { "None", UndefinedGravity, UndefinedOptionFlag, MagickFalse },
1134 { "Center", CenterGravity, UndefinedOptionFlag, MagickFalse },
1135 { "East", EastGravity, UndefinedOptionFlag, MagickFalse },
1136 { "Forget", ForgetGravity, UndefinedOptionFlag, MagickFalse },
1137 { "NorthEast", NorthEastGravity, UndefinedOptionFlag, MagickFalse },
1138 { "North", NorthGravity, UndefinedOptionFlag, MagickFalse },
1139 { "NorthWest", NorthWestGravity, UndefinedOptionFlag, MagickFalse },
1140 { "SouthEast", SouthEastGravity, UndefinedOptionFlag, MagickFalse },
1141 { "South", SouthGravity, UndefinedOptionFlag, MagickFalse },
1142 { "SouthWest", SouthWestGravity, UndefinedOptionFlag, MagickFalse },
1143 { "West", WestGravity, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001144 { (char *) NULL, UndefinedGravity, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001145 },
cristy3ed852e2009-09-05 21:47:34 +00001146 IntentOptions[] =
1147 {
cristy042ee782011-04-22 18:48:30 +00001148 { "Undefined", UndefinedIntent, UndefinedOptionFlag, MagickTrue },
1149 { "Absolute", AbsoluteIntent, UndefinedOptionFlag, MagickFalse },
1150 { "Perceptual", PerceptualIntent, UndefinedOptionFlag, MagickFalse },
1151 { "Relative", RelativeIntent, UndefinedOptionFlag, MagickFalse },
1152 { "Saturation", SaturationIntent, UndefinedOptionFlag, MagickFalse },
1153 { (char *) NULL, UndefinedIntent, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001154 },
1155 InterlaceOptions[] =
1156 {
cristy042ee782011-04-22 18:48:30 +00001157 { "Undefined", UndefinedInterlace, UndefinedOptionFlag, MagickTrue },
1158 { "Line", LineInterlace, UndefinedOptionFlag, MagickFalse },
1159 { "None", NoInterlace, UndefinedOptionFlag, MagickFalse },
1160 { "Plane", PlaneInterlace, UndefinedOptionFlag, MagickFalse },
1161 { "Partition", PartitionInterlace, UndefinedOptionFlag, MagickFalse },
1162 { "GIF", GIFInterlace, UndefinedOptionFlag, MagickFalse },
1163 { "JPEG", JPEGInterlace, UndefinedOptionFlag, MagickFalse },
1164 { "PNG", PNGInterlace, UndefinedOptionFlag, MagickFalse },
1165 { (char *) NULL, UndefinedInterlace, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001166 },
1167 InterpolateOptions[] =
1168 {
cristy042ee782011-04-22 18:48:30 +00001169 { "Undefined", UndefinedInterpolatePixel, UndefinedOptionFlag, MagickTrue },
1170 { "Average", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001171 { "Average4", AverageInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1172 { "Average9", Average9InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1173 { "Average16", Average16InterpolatePixel, UndefinedOptionFlag, MagickFalse },
1174 { "Background", BackgroundInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001175 { "Bilinear", BilinearInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001176 { "Blend", BlendInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1177 { "Catrom", CatromInterpolatePixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001178 { "Integer", IntegerInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1179 { "Mesh", MeshInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001180 { "Nearest", NearestInterpolatePixel, UndefinedOptionFlag, MagickFalse },
1181 { "NearestNeighbor", NearestInterpolatePixel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001182 { "Spline", SplineInterpolatePixel, UndefinedOptionFlag, MagickFalse },
anthonycf4e33d2012-06-08 07:33:23 +00001183/* { "Filter", FilterInterpolatePixel, UndefinedOptionFlag, MagickFalse }, */
cristy042ee782011-04-22 18:48:30 +00001184 { (char *) NULL, UndefinedInterpolatePixel, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001185 },
anthony602ab9b2010-01-05 08:06:50 +00001186 KernelOptions[] =
1187 {
cristy042ee782011-04-22 18:48:30 +00001188 { "Undefined", UndefinedKernel, UndefinedOptionFlag, MagickTrue },
1189 { "Unity", UnityKernel, UndefinedOptionFlag, MagickFalse },
1190 { "Gaussian", GaussianKernel, UndefinedOptionFlag, MagickFalse },
1191 { "DoG", DoGKernel, UndefinedOptionFlag, MagickFalse },
1192 { "LoG", LoGKernel, UndefinedOptionFlag, MagickFalse },
1193 { "Blur", BlurKernel, UndefinedOptionFlag, MagickFalse },
1194 { "Comet", CometKernel, UndefinedOptionFlag, MagickFalse },
anthony40ca0b92012-08-02 13:23:28 +00001195 { "Binomial", BinomialKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001196 { "Laplacian", LaplacianKernel, UndefinedOptionFlag, MagickFalse },
1197 { "Sobel", SobelKernel, UndefinedOptionFlag, MagickFalse },
1198 { "FreiChen", FreiChenKernel, UndefinedOptionFlag, MagickFalse },
1199 { "Roberts", RobertsKernel, UndefinedOptionFlag, MagickFalse },
1200 { "Prewitt", PrewittKernel, UndefinedOptionFlag, MagickFalse },
1201 { "Compass", CompassKernel, UndefinedOptionFlag, MagickFalse },
1202 { "Kirsch", KirschKernel, UndefinedOptionFlag, MagickFalse },
1203 { "Diamond", DiamondKernel, UndefinedOptionFlag, MagickFalse },
1204 { "Square", SquareKernel, UndefinedOptionFlag, MagickFalse },
1205 { "Rectangle", RectangleKernel, UndefinedOptionFlag, MagickFalse },
1206 { "Disk", DiskKernel, UndefinedOptionFlag, MagickFalse },
1207 { "Octagon", OctagonKernel, UndefinedOptionFlag, MagickFalse },
1208 { "Plus", PlusKernel, UndefinedOptionFlag, MagickFalse },
1209 { "Cross", CrossKernel, UndefinedOptionFlag, MagickFalse },
1210 { "Ring", RingKernel, UndefinedOptionFlag, MagickFalse },
1211 { "Peaks", PeaksKernel, UndefinedOptionFlag, MagickFalse },
1212 { "Edges", EdgesKernel, UndefinedOptionFlag, MagickFalse },
1213 { "Corners", CornersKernel, UndefinedOptionFlag, MagickFalse },
1214 { "Diagonals", DiagonalsKernel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001215 { "LineEnds", LineEndsKernel, UndefinedOptionFlag, MagickFalse },
1216 { "LineJunctions", LineJunctionsKernel, UndefinedOptionFlag, MagickFalse },
1217 { "Ridges", RidgesKernel, UndefinedOptionFlag, MagickFalse },
1218 { "ConvexHull", ConvexHullKernel, UndefinedOptionFlag, MagickFalse },
1219 { "ThinSe", ThinSEKernel, UndefinedOptionFlag, MagickFalse },
1220 { "Skeleton", SkeletonKernel, UndefinedOptionFlag, MagickFalse },
1221 { "Chebyshev", ChebyshevKernel, UndefinedOptionFlag, MagickFalse },
1222 { "Manhattan", ManhattanKernel, UndefinedOptionFlag, MagickFalse },
1223 { "Octagonal", OctagonalKernel, UndefinedOptionFlag, MagickFalse },
1224 { "Euclidean", EuclideanKernel, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001225 { "User Defined", UserDefinedKernel, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001226 { (char *) NULL, UndefinedKernel, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001227 },
cristy3ed852e2009-09-05 21:47:34 +00001228 LayerOptions[] =
1229 {
cristy042ee782011-04-22 18:48:30 +00001230 { "Undefined", UndefinedLayer, UndefinedOptionFlag, MagickTrue },
1231 { "Coalesce", CoalesceLayer, UndefinedOptionFlag, MagickFalse },
1232 { "CompareAny", CompareAnyLayer, UndefinedOptionFlag, MagickFalse },
1233 { "CompareClear", CompareClearLayer, UndefinedOptionFlag, MagickFalse },
1234 { "CompareOverlay", CompareOverlayLayer, UndefinedOptionFlag, MagickFalse },
1235 { "Dispose", DisposeLayer, UndefinedOptionFlag, MagickFalse },
1236 { "Optimize", OptimizeLayer, UndefinedOptionFlag, MagickFalse },
1237 { "OptimizeFrame", OptimizeImageLayer, UndefinedOptionFlag, MagickFalse },
1238 { "OptimizePlus", OptimizePlusLayer, UndefinedOptionFlag, MagickFalse },
1239 { "OptimizeTransparency", OptimizeTransLayer, UndefinedOptionFlag, MagickFalse },
1240 { "RemoveDups", RemoveDupsLayer, UndefinedOptionFlag, MagickFalse },
1241 { "RemoveZero", RemoveZeroLayer, UndefinedOptionFlag, MagickFalse },
1242 { "Composite", CompositeLayer, UndefinedOptionFlag, MagickFalse },
1243 { "Merge", MergeLayer, UndefinedOptionFlag, MagickFalse },
1244 { "Flatten", FlattenLayer, UndefinedOptionFlag, MagickFalse },
1245 { "Mosaic", MosaicLayer, UndefinedOptionFlag, MagickFalse },
1246 { "TrimBounds", TrimBoundsLayer, UndefinedOptionFlag, MagickFalse },
1247 { (char *) NULL, UndefinedLayer, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001248 },
1249 LineCapOptions[] =
1250 {
cristy042ee782011-04-22 18:48:30 +00001251 { "Undefined", UndefinedCap, UndefinedOptionFlag, MagickTrue },
1252 { "Butt", ButtCap, UndefinedOptionFlag, MagickFalse },
1253 { "Round", RoundCap, UndefinedOptionFlag, MagickFalse },
1254 { "Square", SquareCap, UndefinedOptionFlag, MagickFalse },
1255 { (char *) NULL, UndefinedCap, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001256 },
1257 LineJoinOptions[] =
1258 {
cristy042ee782011-04-22 18:48:30 +00001259 { "Undefined", UndefinedJoin, UndefinedOptionFlag, MagickTrue },
1260 { "Bevel", BevelJoin, UndefinedOptionFlag, MagickFalse },
1261 { "Miter", MiterJoin, UndefinedOptionFlag, MagickFalse },
1262 { "Round", RoundJoin, UndefinedOptionFlag, MagickFalse },
1263 { (char *) NULL, UndefinedJoin, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001264 },
1265 ListOptions[] =
1266 {
cristy042ee782011-04-22 18:48:30 +00001267 { "Align", MagickAlignOptions, UndefinedOptionFlag, MagickFalse },
cristy288a3532012-08-28 00:19:44 +00001268 { "Alpha", MagickAlphaChannelOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001269 { "Boolean", MagickBooleanOptions, UndefinedOptionFlag, MagickFalse },
cristy947cef22013-01-17 14:16:40 +00001270 { "Cache", MagickCacheOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001271 { "Channel", MagickChannelOptions, UndefinedOptionFlag, MagickFalse },
1272 { "Class", MagickClassOptions, UndefinedOptionFlag, MagickFalse },
1273 { "ClipPath", MagickClipPathOptions, UndefinedOptionFlag, MagickFalse },
1274 { "Coder", MagickCoderOptions, UndefinedOptionFlag, MagickFalse },
1275 { "Color", MagickColorOptions, UndefinedOptionFlag, MagickFalse },
1276 { "Colorspace", MagickColorspaceOptions, UndefinedOptionFlag, MagickFalse },
1277 { "Command", MagickCommandOptions, UndefinedOptionFlag, MagickFalse },
cristy790190d2013-10-04 00:51:51 +00001278 { "Complex", MagickComplexOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001279 { "Compose", MagickComposeOptions, UndefinedOptionFlag, MagickFalse },
1280 { "Compress", MagickCompressOptions, UndefinedOptionFlag, MagickFalse },
1281 { "Configure", MagickConfigureOptions, UndefinedOptionFlag, MagickFalse },
1282 { "DataType", MagickDataTypeOptions, UndefinedOptionFlag, MagickFalse },
1283 { "Debug", MagickDebugOptions, UndefinedOptionFlag, MagickFalse },
1284 { "Decoration", MagickDecorateOptions, UndefinedOptionFlag, MagickFalse },
1285 { "Delegate", MagickDelegateOptions, UndefinedOptionFlag, MagickFalse },
1286 { "Direction", MagickDirectionOptions, UndefinedOptionFlag, MagickFalse },
1287 { "Dispose", MagickDisposeOptions, UndefinedOptionFlag, MagickFalse },
1288 { "Distort", MagickDistortOptions, UndefinedOptionFlag, MagickFalse },
1289 { "Dither", MagickDitherOptions, UndefinedOptionFlag, MagickFalse },
1290 { "Endian", MagickEndianOptions, UndefinedOptionFlag, MagickFalse },
1291 { "Evaluate", MagickEvaluateOptions, UndefinedOptionFlag, MagickFalse },
1292 { "FillRule", MagickFillRuleOptions, UndefinedOptionFlag, MagickFalse },
1293 { "Filter", MagickFilterOptions, UndefinedOptionFlag, MagickFalse },
1294 { "Font", MagickFontOptions, UndefinedOptionFlag, MagickFalse },
1295 { "Format", MagickFormatOptions, UndefinedOptionFlag, MagickFalse },
1296 { "Function", MagickFunctionOptions, UndefinedOptionFlag, MagickFalse },
1297 { "Gravity", MagickGravityOptions, UndefinedOptionFlag, MagickFalse },
cristyf2104462013-03-13 16:13:08 +00001298 { "Intensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001299 { "Intent", MagickIntentOptions, UndefinedOptionFlag, MagickFalse },
1300 { "Interlace", MagickInterlaceOptions, UndefinedOptionFlag, MagickFalse },
1301 { "Interpolate", MagickInterpolateOptions, UndefinedOptionFlag, MagickFalse },
1302 { "Kernel", MagickKernelOptions, UndefinedOptionFlag, MagickFalse },
1303 { "Layers", MagickLayerOptions, UndefinedOptionFlag, MagickFalse },
1304 { "LineCap", MagickLineCapOptions, UndefinedOptionFlag, MagickFalse },
1305 { "LineJoin", MagickLineJoinOptions, UndefinedOptionFlag, MagickFalse },
1306 { "List", MagickListOptions, UndefinedOptionFlag, MagickFalse },
1307 { "Locale", MagickLocaleOptions, UndefinedOptionFlag, MagickFalse },
1308 { "LogEvent", MagickLogEventOptions, UndefinedOptionFlag, MagickFalse },
1309 { "Log", MagickLogOptions, UndefinedOptionFlag, MagickFalse },
1310 { "Magic", MagickMagicOptions, UndefinedOptionFlag, MagickFalse },
1311 { "Method", MagickMethodOptions, UndefinedOptionFlag, MagickFalse },
1312 { "Metric", MagickMetricOptions, UndefinedOptionFlag, MagickFalse },
1313 { "Mime", MagickMimeOptions, UndefinedOptionFlag, MagickFalse },
1314 { "Mode", MagickModeOptions, UndefinedOptionFlag, MagickFalse },
1315 { "Morphology", MagickMorphologyOptions, UndefinedOptionFlag, MagickFalse },
1316 { "Module", MagickModuleOptions, UndefinedOptionFlag, MagickFalse },
1317 { "Noise", MagickNoiseOptions, UndefinedOptionFlag, MagickFalse },
1318 { "Orientation", MagickOrientationOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001319 { "PixelChannel", MagickPixelChannelOptions, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001320 { "PixelIntensity", MagickPixelIntensityOptions, UndefinedOptionFlag, MagickFalse },
cristy18fd4432013-03-22 01:26:09 +00001321 { "PixelMask", MagickPixelMaskOptions, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001322 { "PixelTrait", MagickPixelTraitOptions, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001323 { "Policy", MagickPolicyOptions, UndefinedOptionFlag, MagickFalse },
1324 { "PolicyDomain", MagickPolicyDomainOptions, UndefinedOptionFlag, MagickFalse },
1325 { "PolicyRights", MagickPolicyRightsOptions, UndefinedOptionFlag, MagickFalse },
1326 { "Preview", MagickPreviewOptions, UndefinedOptionFlag, MagickFalse },
1327 { "Primitive", MagickPrimitiveOptions, UndefinedOptionFlag, MagickFalse },
1328 { "QuantumFormat", MagickQuantumFormatOptions, UndefinedOptionFlag, MagickFalse },
1329 { "Resource", MagickResourceOptions, UndefinedOptionFlag, MagickFalse },
1330 { "SparseColor", MagickSparseColorOptions, UndefinedOptionFlag, MagickFalse },
1331 { "Statistic", MagickStatisticOptions, UndefinedOptionFlag, MagickFalse },
1332 { "Storage", MagickStorageOptions, UndefinedOptionFlag, MagickFalse },
1333 { "Stretch", MagickStretchOptions, UndefinedOptionFlag, MagickFalse },
1334 { "Style", MagickStyleOptions, UndefinedOptionFlag, MagickFalse },
1335 { "Threshold", MagickThresholdOptions, UndefinedOptionFlag, MagickFalse },
1336 { "Type", MagickTypeOptions, UndefinedOptionFlag, MagickFalse },
1337 { "Units", MagickResolutionOptions, UndefinedOptionFlag, MagickFalse },
1338 { "Undefined", MagickUndefinedOptions, UndefinedOptionFlag, MagickTrue },
1339 { "Validate", MagickValidateOptions, UndefinedOptionFlag, MagickFalse },
1340 { "VirtualPixel", MagickVirtualPixelOptions, UndefinedOptionFlag, MagickFalse },
1341 { (char *) NULL, MagickUndefinedOptions, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001342 },
1343 LogEventOptions[] =
1344 {
cristy042ee782011-04-22 18:48:30 +00001345 { "Undefined", UndefinedEvents, UndefinedOptionFlag, MagickTrue },
1346 { "All", (AllEvents &~ TraceEvent), UndefinedOptionFlag, MagickFalse },
cristy68b14972011-10-26 14:54:58 +00001347 { "Accelerate", AccelerateEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001348 { "Annotate", AnnotateEvent, UndefinedOptionFlag, MagickFalse },
1349 { "Blob", BlobEvent, UndefinedOptionFlag, MagickFalse },
1350 { "Cache", CacheEvent, UndefinedOptionFlag, MagickFalse },
1351 { "Coder", CoderEvent, UndefinedOptionFlag, MagickFalse },
anthonya322a832013-04-27 06:28:03 +00001352 { "Command", CommandEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001353 { "Configure", ConfigureEvent, UndefinedOptionFlag, MagickFalse },
1354 { "Deprecate", DeprecateEvent, UndefinedOptionFlag, MagickFalse },
1355 { "Draw", DrawEvent, UndefinedOptionFlag, MagickFalse },
1356 { "Exception", ExceptionEvent, UndefinedOptionFlag, MagickFalse },
1357 { "Locale", LocaleEvent, UndefinedOptionFlag, MagickFalse },
1358 { "Module", ModuleEvent, UndefinedOptionFlag, MagickFalse },
1359 { "None", NoEvents, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001360 { "Pixel", PixelEvent, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001361 { "Policy", PolicyEvent, UndefinedOptionFlag, MagickFalse },
1362 { "Resource", ResourceEvent, UndefinedOptionFlag, MagickFalse },
1363 { "Trace", TraceEvent, UndefinedOptionFlag, MagickFalse },
1364 { "Transform", TransformEvent, UndefinedOptionFlag, MagickFalse },
1365 { "User", UserEvent, UndefinedOptionFlag, MagickFalse },
1366 { "Wand", WandEvent, UndefinedOptionFlag, MagickFalse },
1367 { "X11", X11Event, UndefinedOptionFlag, MagickFalse },
1368 { (char *) NULL, UndefinedEvents, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001369 },
1370 MetricOptions[] =
1371 {
cristya6efb492013-07-10 23:57:14 +00001372 { "Undefined", UndefinedErrorMetric, UndefinedOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001373 { "AE", AbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
1374 { "Fuzz", FuzzErrorMetric, UndefinedOptionFlag, MagickFalse },
1375 { "MAE", MeanAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy03fa69f2014-01-08 18:36:49 +00001376 { "MEPP", MeanErrorPerPixelErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001377 { "MSE", MeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
1378 { "NCC", NormalizedCrossCorrelationErrorMetric, UndefinedOptionFlag, MagickFalse },
1379 { "PAE", PeakAbsoluteErrorMetric, UndefinedOptionFlag, MagickFalse },
cristybed8f952014-01-08 18:26:15 +00001380 { "PHASh", PerceptualHashErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy03d6f862014-01-08 18:34:48 +00001381 { "PSNR", PeakSignalToNoiseRatioErrorMetric, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001382 { "RMSE", RootMeanSquaredErrorMetric, UndefinedOptionFlag, MagickFalse },
cristya6efb492013-07-10 23:57:14 +00001383 { (char *) NULL, UndefinedErrorMetric, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001384 },
1385 MethodOptions[] =
1386 {
cristy042ee782011-04-22 18:48:30 +00001387 { "Undefined", UndefinedMethod, UndefinedOptionFlag, MagickTrue },
1388 { "FillToBorder", FillToBorderMethod, UndefinedOptionFlag, MagickFalse },
1389 { "Floodfill", FloodfillMethod, UndefinedOptionFlag, MagickFalse },
1390 { "Point", PointMethod, UndefinedOptionFlag, MagickFalse },
1391 { "Replace", ReplaceMethod, UndefinedOptionFlag, MagickFalse },
1392 { "Reset", ResetMethod, UndefinedOptionFlag, MagickFalse },
1393 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001394 },
1395 ModeOptions[] =
1396 {
cristy042ee782011-04-22 18:48:30 +00001397 { "Undefined", UndefinedMode, UndefinedOptionFlag, MagickTrue },
1398 { "Concatenate", ConcatenateMode, UndefinedOptionFlag, MagickFalse },
1399 { "Frame", FrameMode, UndefinedOptionFlag, MagickFalse },
1400 { "Unframe", UnframeMode, UndefinedOptionFlag, MagickFalse },
1401 { (char *) NULL, UndefinedMode, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001402 },
anthony602ab9b2010-01-05 08:06:50 +00001403 MorphologyOptions[] =
1404 {
cristy042ee782011-04-22 18:48:30 +00001405 { "Undefined", UndefinedMorphology, UndefinedOptionFlag, MagickTrue },
1406 { "Correlate", CorrelateMorphology, UndefinedOptionFlag, MagickFalse },
1407 { "Convolve", ConvolveMorphology, UndefinedOptionFlag, MagickFalse },
1408 { "Dilate", DilateMorphology, UndefinedOptionFlag, MagickFalse },
1409 { "Erode", ErodeMorphology, UndefinedOptionFlag, MagickFalse },
1410 { "Close", CloseMorphology, UndefinedOptionFlag, MagickFalse },
1411 { "Open", OpenMorphology, UndefinedOptionFlag, MagickFalse },
1412 { "DilateIntensity", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1413 { "ErodeIntensity", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1414 { "CloseIntensity", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1415 { "OpenIntensity", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1416 { "DilateI", DilateIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1417 { "ErodeI", ErodeIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1418 { "CloseI", CloseIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1419 { "OpenI", OpenIntensityMorphology, UndefinedOptionFlag, MagickFalse },
1420 { "Smooth", SmoothMorphology, UndefinedOptionFlag, MagickFalse },
1421 { "EdgeOut", EdgeOutMorphology, UndefinedOptionFlag, MagickFalse },
1422 { "EdgeIn", EdgeInMorphology, UndefinedOptionFlag, MagickFalse },
1423 { "Edge", EdgeMorphology, UndefinedOptionFlag, MagickFalse },
1424 { "TopHat", TopHatMorphology, UndefinedOptionFlag, MagickFalse },
1425 { "BottomHat", BottomHatMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001426 { "Hmt", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1427 { "HitNMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1428 { "HitAndMiss", HitAndMissMorphology, UndefinedOptionFlag, MagickFalse },
1429 { "Thinning", ThinningMorphology, UndefinedOptionFlag, MagickFalse },
1430 { "Thicken", ThickenMorphology, UndefinedOptionFlag, MagickFalse },
anthonyf34d9b22012-02-22 06:11:08 +00001431 { "Distance", DistanceMorphology, UndefinedOptionFlag, MagickFalse },
1432 { "IterativeDistance", IterativeDistanceMorphology, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001433 { "Voronoi", VoronoiMorphology, UndefinedOptionFlag, MagickTrue },
1434 { (char *) NULL, UndefinedMorphology, UndefinedOptionFlag, MagickFalse }
anthony602ab9b2010-01-05 08:06:50 +00001435 },
cristy3ed852e2009-09-05 21:47:34 +00001436 NoiseOptions[] =
1437 {
cristy042ee782011-04-22 18:48:30 +00001438 { "Undefined", UndefinedNoise, UndefinedOptionFlag, MagickTrue },
1439 { "Gaussian", GaussianNoise, UndefinedOptionFlag, MagickFalse },
1440 { "Impulse", ImpulseNoise, UndefinedOptionFlag, MagickFalse },
1441 { "Laplacian", LaplacianNoise, UndefinedOptionFlag, MagickFalse },
1442 { "Multiplicative", MultiplicativeGaussianNoise, UndefinedOptionFlag, MagickFalse },
1443 { "Poisson", PoissonNoise, UndefinedOptionFlag, MagickFalse },
1444 { "Random", RandomNoise, UndefinedOptionFlag, MagickFalse },
1445 { "Uniform", UniformNoise, UndefinedOptionFlag, MagickFalse },
1446 { (char *) NULL, UndefinedNoise, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001447 },
1448 OrientationOptions[] =
1449 {
cristy042ee782011-04-22 18:48:30 +00001450 { "Undefined", UndefinedOrientation, UndefinedOptionFlag, MagickTrue },
1451 { "TopLeft", TopLeftOrientation, UndefinedOptionFlag, MagickFalse },
1452 { "TopRight", TopRightOrientation, UndefinedOptionFlag, MagickFalse },
1453 { "BottomRight", BottomRightOrientation, UndefinedOptionFlag, MagickFalse },
1454 { "BottomLeft", BottomLeftOrientation, UndefinedOptionFlag, MagickFalse },
1455 { "LeftTop", LeftTopOrientation, UndefinedOptionFlag, MagickFalse },
1456 { "RightTop", RightTopOrientation, UndefinedOptionFlag, MagickFalse },
1457 { "RightBottom", RightBottomOrientation, UndefinedOptionFlag, MagickFalse },
1458 { "LeftBottom", LeftBottomOrientation, UndefinedOptionFlag, MagickFalse },
1459 { (char *) NULL, UndefinedOrientation, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001460 },
cristy6dcb9b82011-10-23 23:21:25 +00001461 PixelChannelOptions[] =
1462 {
1463 { "Undefined", UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001464 { "A", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001465 { "Alpha", AlphaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001466 { "B", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
anthony30b912a2012-03-22 01:20:28 +00001467 { "Bk", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001468 { "Black", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1469 { "Blue", BluePixelChannel, UndefinedOptionFlag, MagickFalse },
1470 { "Cb", CbPixelChannel, UndefinedOptionFlag, MagickFalse },
1471 { "Composite", CompositePixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001472 { "C", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001473 { "Cr", CrPixelChannel, UndefinedOptionFlag, MagickFalse },
1474 { "Cyan", CyanPixelChannel, UndefinedOptionFlag, MagickFalse },
1475 { "Gray", GrayPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001476 { "G", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001477 { "Green", GreenPixelChannel, UndefinedOptionFlag, MagickFalse },
1478 { "Index", IndexPixelChannel, UndefinedOptionFlag, MagickFalse },
1479 { "Intensity", IntensityPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001480 { "K", BlackPixelChannel, UndefinedOptionFlag, MagickFalse },
1481 { "M", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001482 { "Magenta", MagentaPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001483 { "R", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001484 { "ReadMask", ReadMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001485 { "Red", RedPixelChannel, UndefinedOptionFlag, MagickFalse },
1486 { "Sync", SyncPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy883fde12013-04-08 00:50:13 +00001487 { "WriteMask", WriteMaskPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy542dd0b2012-03-18 19:10:09 +00001488 { "Y", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
cristy6dcb9b82011-10-23 23:21:25 +00001489 { "Yellow", YellowPixelChannel, UndefinedOptionFlag, MagickFalse },
1490 { (char *) NULL, UndefinedPixelChannel, UndefinedOptionFlag, MagickFalse }
1491 },
cristyac73d1f2013-03-12 00:51:09 +00001492 PixelIntensityOptions[] =
1493 {
1494 { "Undefined", UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickTrue },
cristy13609b42013-10-30 21:36:37 +00001495 { "Average", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1496 { "Brightness", BrightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1497 { "Lightness", LightnessPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristye801b522014-06-30 18:05:50 +00001498 { "Mean", AveragePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristy13609b42013-10-30 21:36:37 +00001499 { "MS", MSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1500 { "Rec601Luma", Rec601LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1501 { "Rec601Luminance", Rec601LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1502 { "Rec709Luma", Rec709LumaPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1503 { "Rec709Luminance", Rec709LuminancePixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
1504 { "RMS", RMSPixelIntensityMethod, UndefinedOptionFlag, MagickFalse },
cristyac73d1f2013-03-12 00:51:09 +00001505 { (char *) NULL, UndefinedPixelIntensityMethod, UndefinedOptionFlag, MagickFalse }
1506 },
cristy18fd4432013-03-22 01:26:09 +00001507 PixelMaskOptions[] =
1508 {
1509 { "Undefined", UndefinedPixelMask, UndefinedOptionFlag, MagickTrue },
1510 { "R", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1511 { "Read", ReadPixelMask, UndefinedOptionFlag, MagickFalse },
1512 { "W", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1513 { "Write", WritePixelMask, UndefinedOptionFlag, MagickFalse },
1514 { (char *) NULL, UndefinedPixelMask, UndefinedOptionFlag, MagickFalse }
1515 },
cristy6dcb9b82011-10-23 23:21:25 +00001516 PixelTraitOptions[] =
1517 {
1518 { "Undefined", UndefinedPixelTrait, UndefinedOptionFlag, MagickTrue },
1519 { "Blend", BlendPixelTrait, UndefinedOptionFlag, MagickFalse },
1520 { "Copy", CopyPixelTrait, UndefinedOptionFlag, MagickFalse },
1521 { "Update", UpdatePixelTrait, UndefinedOptionFlag, MagickFalse },
1522 { (char *) NULL, UndefinedPixelTrait, UndefinedOptionFlag, MagickFalse }
1523 },
cristy3ed852e2009-09-05 21:47:34 +00001524 PolicyDomainOptions[] =
1525 {
cristy042ee782011-04-22 18:48:30 +00001526 { "Undefined", UndefinedPolicyDomain, UndefinedOptionFlag, MagickTrue },
1527 { "Coder", CoderPolicyDomain, UndefinedOptionFlag, MagickFalse },
1528 { "Delegate", DelegatePolicyDomain, UndefinedOptionFlag, MagickFalse },
1529 { "Filter", FilterPolicyDomain, UndefinedOptionFlag, MagickFalse },
1530 { "Path", PathPolicyDomain, UndefinedOptionFlag, MagickFalse },
1531 { "Resource", ResourcePolicyDomain, UndefinedOptionFlag, MagickFalse },
1532 { "System", SystemPolicyDomain, UndefinedOptionFlag, MagickFalse },
1533 { (char *) NULL, UndefinedPolicyDomain, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001534 },
1535 PolicyRightsOptions[] =
1536 {
cristy042ee782011-04-22 18:48:30 +00001537 { "Undefined", UndefinedPolicyRights, UndefinedOptionFlag, MagickTrue },
1538 { "None", NoPolicyRights, UndefinedOptionFlag, MagickFalse },
1539 { "Read", ReadPolicyRights, UndefinedOptionFlag, MagickFalse },
1540 { "Write", WritePolicyRights, UndefinedOptionFlag, MagickFalse },
1541 { "Execute", ExecutePolicyRights, UndefinedOptionFlag, MagickFalse },
1542 { (char *) NULL, UndefinedPolicyRights, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001543 },
1544 PreviewOptions[] =
1545 {
cristy042ee782011-04-22 18:48:30 +00001546 { "Undefined", UndefinedPreview, UndefinedOptionFlag, MagickTrue },
1547 { "AddNoise", AddNoisePreview, UndefinedOptionFlag, MagickFalse },
1548 { "Blur", BlurPreview, UndefinedOptionFlag, MagickFalse },
1549 { "Brightness", BrightnessPreview, UndefinedOptionFlag, MagickFalse },
1550 { "Charcoal", CharcoalDrawingPreview, UndefinedOptionFlag, MagickFalse },
1551 { "Despeckle", DespecklePreview, UndefinedOptionFlag, MagickFalse },
1552 { "Dull", DullPreview, UndefinedOptionFlag, MagickFalse },
1553 { "EdgeDetect", EdgeDetectPreview, UndefinedOptionFlag, MagickFalse },
1554 { "Gamma", GammaPreview, UndefinedOptionFlag, MagickFalse },
1555 { "Grayscale", GrayscalePreview, UndefinedOptionFlag, MagickFalse },
1556 { "Hue", HuePreview, UndefinedOptionFlag, MagickFalse },
1557 { "Implode", ImplodePreview, UndefinedOptionFlag, MagickFalse },
1558 { "JPEG", JPEGPreview, UndefinedOptionFlag, MagickFalse },
1559 { "OilPaint", OilPaintPreview, UndefinedOptionFlag, MagickFalse },
1560 { "Quantize", QuantizePreview, UndefinedOptionFlag, MagickFalse },
1561 { "Raise", RaisePreview, UndefinedOptionFlag, MagickFalse },
1562 { "ReduceNoise", ReduceNoisePreview, UndefinedOptionFlag, MagickFalse },
1563 { "Roll", RollPreview, UndefinedOptionFlag, MagickFalse },
1564 { "Rotate", RotatePreview, UndefinedOptionFlag, MagickFalse },
1565 { "Saturation", SaturationPreview, UndefinedOptionFlag, MagickFalse },
1566 { "Segment", SegmentPreview, UndefinedOptionFlag, MagickFalse },
1567 { "Shade", ShadePreview, UndefinedOptionFlag, MagickFalse },
1568 { "Sharpen", SharpenPreview, UndefinedOptionFlag, MagickFalse },
1569 { "Shear", ShearPreview, UndefinedOptionFlag, MagickFalse },
1570 { "Solarize", SolarizePreview, UndefinedOptionFlag, MagickFalse },
1571 { "Spiff", SpiffPreview, UndefinedOptionFlag, MagickFalse },
1572 { "Spread", SpreadPreview, UndefinedOptionFlag, MagickFalse },
1573 { "Swirl", SwirlPreview, UndefinedOptionFlag, MagickFalse },
1574 { "Threshold", ThresholdPreview, UndefinedOptionFlag, MagickFalse },
1575 { "Wave", WavePreview, UndefinedOptionFlag, MagickFalse },
1576 { (char *) NULL, UndefinedPreview, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001577 },
1578 PrimitiveOptions[] =
1579 {
cristy042ee782011-04-22 18:48:30 +00001580 { "Undefined", UndefinedPrimitive, UndefinedOptionFlag, MagickTrue },
dirk34e1a212015-03-22 16:45:12 +00001581 { "Alpha", AlphaPrimitive, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001582 { "Arc", ArcPrimitive, UndefinedOptionFlag, MagickFalse },
1583 { "Bezier", BezierPrimitive, UndefinedOptionFlag, MagickFalse },
1584 { "Circle", CirclePrimitive, UndefinedOptionFlag, MagickFalse },
1585 { "Color", ColorPrimitive, UndefinedOptionFlag, MagickFalse },
1586 { "Ellipse", EllipsePrimitive, UndefinedOptionFlag, MagickFalse },
1587 { "Image", ImagePrimitive, UndefinedOptionFlag, MagickFalse },
1588 { "Line", LinePrimitive, UndefinedOptionFlag, MagickFalse },
cristybe863de2015-03-31 00:27:44 +00001589 { "Matte", AlphaPrimitive, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001590 { "Path", PathPrimitive, UndefinedOptionFlag, MagickFalse },
1591 { "Point", PointPrimitive, UndefinedOptionFlag, MagickFalse },
1592 { "Polygon", PolygonPrimitive, UndefinedOptionFlag, MagickFalse },
1593 { "Polyline", PolylinePrimitive, UndefinedOptionFlag, MagickFalse },
1594 { "Rectangle", RectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1595 { "RoundRectangle", RoundRectanglePrimitive, UndefinedOptionFlag, MagickFalse },
1596 { "Text", TextPrimitive, UndefinedOptionFlag, MagickFalse },
1597 { (char *) NULL, UndefinedPrimitive, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001598 },
1599 QuantumFormatOptions[] =
1600 {
cristy042ee782011-04-22 18:48:30 +00001601 { "Undefined", UndefinedQuantumFormat, UndefinedOptionFlag, MagickTrue },
1602 { "FloatingPoint", FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse },
1603 { "Signed", SignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1604 { "Unsigned", UnsignedQuantumFormat, UndefinedOptionFlag, MagickFalse },
1605 { (char *) NULL, FloatingPointQuantumFormat, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001606 },
1607 ResolutionOptions[] =
1608 {
cristy042ee782011-04-22 18:48:30 +00001609 { "Undefined", UndefinedResolution, UndefinedOptionFlag, MagickTrue },
1610 { "PixelsPerInch", PixelsPerInchResolution, UndefinedOptionFlag, MagickFalse },
1611 { "PixelsPerCentimeter", PixelsPerCentimeterResolution, UndefinedOptionFlag, MagickFalse },
1612 { (char *) NULL, UndefinedResolution, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001613 },
1614 ResourceOptions[] =
1615 {
cristy042ee782011-04-22 18:48:30 +00001616 { "Undefined", UndefinedResource, UndefinedOptionFlag, MagickTrue },
1617 { "Area", AreaResource, UndefinedOptionFlag, MagickFalse },
1618 { "Disk", DiskResource, UndefinedOptionFlag, MagickFalse },
1619 { "File", FileResource, UndefinedOptionFlag, MagickFalse },
cristyba158d92014-12-21 23:17:23 +00001620 { "Height", HeightResource, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001621 { "Map", MapResource, UndefinedOptionFlag, MagickFalse },
1622 { "Memory", MemoryResource, UndefinedOptionFlag, MagickFalse },
1623 { "Thread", ThreadResource, UndefinedOptionFlag, MagickFalse },
1624 { "Time", TimeResource, UndefinedOptionFlag, MagickFalse },
cristyba158d92014-12-21 23:17:23 +00001625 { "Width", WidthResource, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001626 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001627 },
1628 SparseColorOptions[] =
1629 {
cristy042ee782011-04-22 18:48:30 +00001630 { "Undefined", UndefinedDistortion, UndefinedOptionFlag, MagickTrue },
1631 { "Barycentric", BarycentricColorInterpolate, UndefinedOptionFlag, MagickFalse },
1632 { "Bilinear", BilinearColorInterpolate, UndefinedOptionFlag, MagickFalse },
anthony09d867c2011-04-26 08:28:41 +00001633 { "Inverse", InverseColorInterpolate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001634 { "Shepards", ShepardsColorInterpolate, UndefinedOptionFlag, MagickFalse },
1635 { "Voronoi", VoronoiColorInterpolate, UndefinedOptionFlag, MagickFalse },
1636 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001637 },
cristy0834d642011-03-18 18:26:08 +00001638 StatisticOptions[] =
1639 {
cristy042ee782011-04-22 18:48:30 +00001640 { "Undefined", UndefinedStatistic, UndefinedOptionFlag, MagickTrue },
1641 { "Gradient", GradientStatistic, UndefinedOptionFlag, MagickFalse },
1642 { "Maximum", MaximumStatistic, UndefinedOptionFlag, MagickFalse },
1643 { "Mean", MeanStatistic, UndefinedOptionFlag, MagickFalse },
1644 { "Median", MedianStatistic, UndefinedOptionFlag, MagickFalse },
1645 { "Minimum", MinimumStatistic, UndefinedOptionFlag, MagickFalse },
1646 { "Mode", ModeStatistic, UndefinedOptionFlag, MagickFalse },
anthony975a8d72012-04-12 13:54:36 +00001647 { "NonPeak", NonpeakStatistic, UndefinedOptionFlag, MagickFalse },
cristy180908c2014-06-15 13:01:43 +00001648 { "RootMeanSquare", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
1649 { "RMS", RootMeanSquareStatistic, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001650 { "StandardDeviation", StandardDeviationStatistic, UndefinedOptionFlag, MagickFalse },
1651 { (char *) NULL, UndefinedMethod, UndefinedOptionFlag, MagickFalse }
cristy0834d642011-03-18 18:26:08 +00001652 },
cristy3ed852e2009-09-05 21:47:34 +00001653 StorageOptions[] =
1654 {
cristy042ee782011-04-22 18:48:30 +00001655 { "Undefined", UndefinedPixel, UndefinedOptionFlag, MagickTrue },
1656 { "Char", CharPixel, UndefinedOptionFlag, MagickFalse },
1657 { "Double", DoublePixel, UndefinedOptionFlag, MagickFalse },
1658 { "Float", FloatPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001659 { "Long", LongPixel, UndefinedOptionFlag, MagickFalse },
cristy6c9e1682012-01-07 21:37:44 +00001660 { "LongLong", LongLongPixel, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001661 { "Quantum", QuantumPixel, UndefinedOptionFlag, MagickFalse },
1662 { "Short", ShortPixel, UndefinedOptionFlag, MagickFalse },
1663 { (char *) NULL, UndefinedResource, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001664 },
1665 StretchOptions[] =
1666 {
cristy042ee782011-04-22 18:48:30 +00001667 { "Undefined", UndefinedStretch, UndefinedOptionFlag, MagickTrue },
1668 { "Any", AnyStretch, UndefinedOptionFlag, MagickFalse },
1669 { "Condensed", CondensedStretch, UndefinedOptionFlag, MagickFalse },
1670 { "Expanded", ExpandedStretch, UndefinedOptionFlag, MagickFalse },
1671 { "ExtraCondensed", ExtraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1672 { "ExtraExpanded", ExtraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1673 { "Normal", NormalStretch, UndefinedOptionFlag, MagickFalse },
1674 { "SemiCondensed", SemiCondensedStretch, UndefinedOptionFlag, MagickFalse },
1675 { "SemiExpanded", SemiExpandedStretch, UndefinedOptionFlag, MagickFalse },
1676 { "UltraCondensed", UltraCondensedStretch, UndefinedOptionFlag, MagickFalse },
1677 { "UltraExpanded", UltraExpandedStretch, UndefinedOptionFlag, MagickFalse },
1678 { (char *) NULL, UndefinedStretch, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001679 },
1680 StyleOptions[] =
1681 {
cristy042ee782011-04-22 18:48:30 +00001682 { "Undefined", UndefinedStyle, UndefinedOptionFlag, MagickTrue },
1683 { "Any", AnyStyle, UndefinedOptionFlag, MagickFalse },
1684 { "Italic", ItalicStyle, UndefinedOptionFlag, MagickFalse },
1685 { "Normal", NormalStyle, UndefinedOptionFlag, MagickFalse },
1686 { "Oblique", ObliqueStyle, UndefinedOptionFlag, MagickFalse },
1687 { (char *) NULL, UndefinedStyle, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001688 },
1689 TypeOptions[] =
1690 {
cristy042ee782011-04-22 18:48:30 +00001691 { "Undefined", UndefinedType, UndefinedOptionFlag, MagickTrue },
1692 { "Bilevel", BilevelType, UndefinedOptionFlag, MagickFalse },
1693 { "ColorSeparation", ColorSeparationType, UndefinedOptionFlag, MagickFalse },
cristydef23e52015-01-22 11:52:01 +00001694 { "ColorSeparationAlpha", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
1695 { "ColorSeparationMatte", ColorSeparationAlphaType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001696 { "Grayscale", GrayscaleType, UndefinedOptionFlag, MagickFalse },
cristydef23e52015-01-22 11:52:01 +00001697 { "GrayscaleAlpha", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
1698 { "GrayscaleMatte", GrayscaleAlphaType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001699 { "Optimize", OptimizeType, UndefinedOptionFlag, MagickFalse },
1700 { "Palette", PaletteType, UndefinedOptionFlag, MagickFalse },
cristydef23e52015-01-22 11:52:01 +00001701 { "PaletteBilevelAlpha", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
1702 { "PaletteBilevelMatte", PaletteBilevelAlphaType, UndefinedOptionFlag, MagickFalse },
1703 { "PaletteAlpha", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
1704 { "PaletteMatte", PaletteAlphaType, UndefinedOptionFlag, MagickFalse },
1705 { "TrueColorAlpha", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
1706 { "TrueColorMatte", TrueColorAlphaType, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001707 { "TrueColor", TrueColorType, UndefinedOptionFlag, MagickFalse },
1708 { (char *) NULL, UndefinedType, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001709 },
1710 ValidateOptions[] =
1711 {
cristy042ee782011-04-22 18:48:30 +00001712 { "Undefined", UndefinedValidate, UndefinedOptionFlag, MagickTrue },
1713 { "All", AllValidate, UndefinedOptionFlag, MagickFalse },
cristy80e870e2013-05-07 12:23:02 +00001714 { "Colorspace", ColorspaceValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001715 { "Compare", CompareValidate, UndefinedOptionFlag, MagickFalse },
1716 { "Composite", CompositeValidate, UndefinedOptionFlag, MagickFalse },
1717 { "Convert", ConvertValidate, UndefinedOptionFlag, MagickFalse },
cristy247eebde2013-06-13 01:01:43 +00001718 { "FormatsDisk", FormatsDiskValidate, UndefinedOptionFlag, MagickFalse },
1719 { "FormatsMap", FormatsMapValidate, UndefinedOptionFlag, MagickFalse },
1720 { "FormatsMemory", FormatsMemoryValidate, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001721 { "Identify", IdentifyValidate, UndefinedOptionFlag, MagickFalse },
1722 { "ImportExport", ImportExportValidate, UndefinedOptionFlag, MagickFalse },
1723 { "Montage", MontageValidate, UndefinedOptionFlag, MagickFalse },
1724 { "Stream", StreamValidate, UndefinedOptionFlag, MagickFalse },
1725 { "None", NoValidate, UndefinedOptionFlag, MagickFalse },
1726 { (char *) NULL, UndefinedValidate, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001727 },
1728 VirtualPixelOptions[] =
1729 {
cristy042ee782011-04-22 18:48:30 +00001730 { "Undefined", UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickTrue },
1731 { "Background", BackgroundVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1732 { "Black", BlackVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy1df692a2011-04-23 17:09:35 +00001733 { "Constant", BackgroundVirtualPixelMethod, DeprecateOptionFlag, MagickTrue },
cristy042ee782011-04-22 18:48:30 +00001734 { "CheckerTile", CheckerTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1735 { "Dither", DitherVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1736 { "Edge", EdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1737 { "Gray", GrayVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1738 { "HorizontalTile", HorizontalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1739 { "HorizontalTileEdge", HorizontalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1740 { "Mirror", MirrorVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
anthony7a4d6102012-07-01 09:48:25 +00001741 { "None", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
cristy042ee782011-04-22 18:48:30 +00001742 { "Random", RandomVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1743 { "Tile", TileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1744 { "Transparent", TransparentVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1745 { "VerticalTile", VerticalTileVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1746 { "VerticalTileEdge", VerticalTileEdgeVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1747 { "White", WhiteVirtualPixelMethod, UndefinedOptionFlag, MagickFalse },
1748 { (char *) NULL, UndefinedVirtualPixelMethod, UndefinedOptionFlag, MagickFalse }
cristy3ed852e2009-09-05 21:47:34 +00001749 };
anthony686b1a32012-02-15 14:50:53 +00001750
cristy3ed852e2009-09-05 21:47:34 +00001751/*
1752%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1753% %
1754% %
1755% %
1756% C l o n e I m a g e O p t i o n s %
1757% %
1758% %
1759% %
1760%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1761%
anthony40ca0b92012-08-02 13:23:28 +00001762% CloneImageOptions() clones all global image options, to another image_info
cristy3ed852e2009-09-05 21:47:34 +00001763%
1764% The format of the CloneImageOptions method is:
1765%
1766% MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1767% const ImageInfo *clone_info)
1768%
1769% A description of each parameter follows:
1770%
anthony40ca0b92012-08-02 13:23:28 +00001771% o image_info: the image info to recieve the cloned options.
cristy3ed852e2009-09-05 21:47:34 +00001772%
anthony40ca0b92012-08-02 13:23:28 +00001773% o clone_info: the source image info for options to clone.
cristy3ed852e2009-09-05 21:47:34 +00001774%
1775*/
1776MagickExport MagickBooleanType CloneImageOptions(ImageInfo *image_info,
1777 const ImageInfo *clone_info)
1778{
1779 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00001780 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00001781 if (image_info->debug != MagickFalse)
1782 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1783 image_info->filename);
1784 assert(clone_info != (const ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00001785 assert(clone_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00001786 if (clone_info->options != (void *) NULL)
cristy07742872013-07-19 13:43:08 +00001787 {
1788 if (image_info->options != (void *) NULL)
1789 DestroyImageOptions(image_info);
1790 image_info->options=CloneSplayTree((SplayTreeInfo *) clone_info->options,
1791 (void *(*)(void *)) ConstantString,(void *(*)(void *)) ConstantString);
1792 }
cristy3ed852e2009-09-05 21:47:34 +00001793 return(MagickTrue);
1794}
1795
1796/*
1797%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1798% %
1799% %
1800% %
1801% D e f i n e I m a g e O p t i o n %
1802% %
1803% %
1804% %
1805%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1806%
anthony8ea79832011-10-05 10:08:39 +00001807% DefineImageOption() associates an assignment string of the form
anthony40ca0b92012-08-02 13:23:28 +00001808% "key=value" with a global image option. It is equivelent to
1809% SetImageOption().
cristy3ed852e2009-09-05 21:47:34 +00001810%
1811% The format of the DefineImageOption method is:
1812%
1813% MagickBooleanType DefineImageOption(ImageInfo *image_info,
1814% const char *option)
1815%
1816% A description of each parameter follows:
1817%
1818% o image_info: the image info.
1819%
anthony8ea79832011-10-05 10:08:39 +00001820% o option: the image option assignment string.
cristy3ed852e2009-09-05 21:47:34 +00001821%
1822*/
1823MagickExport MagickBooleanType DefineImageOption(ImageInfo *image_info,
1824 const char *option)
1825{
1826 char
cristy151b66d2015-04-15 10:50:31 +00001827 key[MagickPathExtent],
1828 value[MagickPathExtent];
cristy3ed852e2009-09-05 21:47:34 +00001829
1830 register char
1831 *p;
1832
1833 assert(image_info != (ImageInfo *) NULL);
1834 assert(option != (const char *) NULL);
cristy151b66d2015-04-15 10:50:31 +00001835 (void) CopyMagickString(key,option,MagickPathExtent);
cristy3ed852e2009-09-05 21:47:34 +00001836 for (p=key; *p != '\0'; p++)
1837 if (*p == '=')
1838 break;
1839 *value='\0';
1840 if (*p == '=')
cristy151b66d2015-04-15 10:50:31 +00001841 (void) CopyMagickString(value,p+1,MagickPathExtent);
cristy3ed852e2009-09-05 21:47:34 +00001842 *p='\0';
1843 return(SetImageOption(image_info,key,value));
1844}
1845
1846/*
1847%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1848% %
1849% %
1850% %
1851% D e l e t e I m a g e O p t i o n %
1852% %
1853% %
1854% %
1855%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1856%
anthony40ca0b92012-08-02 13:23:28 +00001857% DeleteImageOption() deletes an key from the global image options.
cristy3ed852e2009-09-05 21:47:34 +00001858%
anthonyebb73a22012-03-22 14:25:52 +00001859% Returns MagickTrue is the option is found and deleted from the Options.
1860%
cristy3ed852e2009-09-05 21:47:34 +00001861% The format of the DeleteImageOption method is:
1862%
1863% MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1864% const char *key)
1865%
1866% A description of each parameter follows:
1867%
1868% o image_info: the image info.
1869%
1870% o option: the image option.
1871%
1872*/
1873MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info,
1874 const char *option)
1875{
1876 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00001877 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00001878 if (image_info->debug != MagickFalse)
1879 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1880 image_info->filename);
1881 if (image_info->options == (void *) NULL)
1882 return(MagickFalse);
1883 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image_info->options,option));
1884}
1885
1886/*
1887%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1888% %
1889% %
1890% %
1891% D e s t r o y I m a g e O p t i o n s %
1892% %
1893% %
1894% %
1895%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1896%
anthony40ca0b92012-08-02 13:23:28 +00001897% DestroyImageOptions() destroys all global options and associated memory
1898% attached to the given image_info image list.
cristy3ed852e2009-09-05 21:47:34 +00001899%
1900% The format of the DestroyDefines method is:
1901%
1902% void DestroyImageOptions(ImageInfo *image_info)
1903%
1904% A description of each parameter follows:
1905%
1906% o image_info: the image info.
1907%
1908*/
1909MagickExport void DestroyImageOptions(ImageInfo *image_info)
1910{
1911 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00001912 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00001913 if (image_info->debug != MagickFalse)
1914 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1915 image_info->filename);
1916 if (image_info->options != (void *) NULL)
1917 image_info->options=DestroySplayTree((SplayTreeInfo *) image_info->options);
1918}
1919
1920/*
1921%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1922% %
1923% %
1924% %
1925% G e t I m a g e O p t i o n %
1926% %
1927% %
1928% %
1929%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1930%
anthony40ca0b92012-08-02 13:23:28 +00001931% GetImageOption() gets a value associated with the global image options.
1932%
1933% The returned string is a constant string in the tree and should NOT be
1934% freed by the caller.
cristy3ed852e2009-09-05 21:47:34 +00001935%
1936% The format of the GetImageOption method is:
1937%
1938% const char *GetImageOption(const ImageInfo *image_info,
cristye3f77792011-10-07 00:09:09 +00001939% const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001940%
1941% A description of each parameter follows:
1942%
1943% o image_info: the image info.
1944%
cristye3f77792011-10-07 00:09:09 +00001945% o option: the option.
cristy3ed852e2009-09-05 21:47:34 +00001946%
1947*/
1948MagickExport const char *GetImageOption(const ImageInfo *image_info,
anthony7df2b832011-10-06 11:55:25 +00001949 const char *option)
cristy3ed852e2009-09-05 21:47:34 +00001950{
cristy3ed852e2009-09-05 21:47:34 +00001951 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00001952 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00001953 if (image_info->debug != MagickFalse)
1954 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
1955 image_info->filename);
1956 if (image_info->options == (void *) NULL)
1957 return((const char *) NULL);
cristye3f77792011-10-07 00:09:09 +00001958 return((const char *) GetValueFromSplayTree((SplayTreeInfo *)
1959 image_info->options,option));
cristy3ed852e2009-09-05 21:47:34 +00001960}
1961
1962/*
1963%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1964% %
1965% %
1966% %
cristy042ee782011-04-22 18:48:30 +00001967% 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 +00001968% %
1969% %
1970% %
1971%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1972%
cristy042ee782011-04-22 18:48:30 +00001973% GetCommandOptionFlags() parses a string and returns an enumerated option
1974% flags(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00001975%
cristy042ee782011-04-22 18:48:30 +00001976% The format of the GetCommandOptionFlags method is:
cristy3ed852e2009-09-05 21:47:34 +00001977%
cristy042ee782011-04-22 18:48:30 +00001978% ssize_t GetCommandOptionFlags(const CommandOption option,
1979% const MagickBooleanType list,const char *options)
cristy3ed852e2009-09-05 21:47:34 +00001980%
1981% A description of each parameter follows:
1982%
cristy042ee782011-04-22 18:48:30 +00001983% o option: Index to the option table to lookup
1984%
1985% o list: A option other than zero permits more than one option separated by
1986% a comma or pipe.
1987%
1988% o options: One or more options separated by commas.
cristy3ed852e2009-09-05 21:47:34 +00001989%
1990*/
1991
cristyb01e49e2014-09-09 22:59:01 +00001992static const OptionInfo *GetOptionInfo(const CommandOption option)
1993{
1994 switch (option)
1995 {
1996 case MagickAlignOptions: return(AlignOptions);
1997 case MagickAlphaChannelOptions: return(AlphaChannelOptions);
1998 case MagickBooleanOptions: return(BooleanOptions);
1999 case MagickCacheOptions: return(CacheOptions);
2000 case MagickChannelOptions: return(ChannelOptions);
2001 case MagickClassOptions: return(ClassOptions);
2002 case MagickClipPathOptions: return(ClipPathOptions);
2003 case MagickColorspaceOptions: return(ColorspaceOptions);
2004 case MagickCommandOptions: return(CommandOptions);
2005 case MagickComplexOptions: return(ComplexOptions);
2006 case MagickComposeOptions: return(ComposeOptions);
2007 case MagickCompressOptions: return(CompressOptions);
2008 case MagickDataTypeOptions: return(DataTypeOptions);
2009 case MagickDebugOptions: return(LogEventOptions);
2010 case MagickDecorateOptions: return(DecorateOptions);
2011 case MagickDirectionOptions: return(DirectionOptions);
2012 case MagickDisposeOptions: return(DisposeOptions);
2013 case MagickDistortOptions: return(DistortOptions);
2014 case MagickDitherOptions: return(DitherOptions);
2015 case MagickEndianOptions: return(EndianOptions);
2016 case MagickEvaluateOptions: return(EvaluateOptions);
2017 case MagickFillRuleOptions: return(FillRuleOptions);
2018 case MagickFilterOptions: return(FilterOptions);
2019 case MagickFunctionOptions: return(FunctionOptions);
dirk84c7c042015-07-12 13:01:35 +00002020 case MagickGradientOptions: return(GradientOptions);
cristyb01e49e2014-09-09 22:59:01 +00002021 case MagickGravityOptions: return(GravityOptions);
2022 case MagickIntentOptions: return(IntentOptions);
2023 case MagickInterlaceOptions: return(InterlaceOptions);
2024 case MagickInterpolateOptions: return(InterpolateOptions);
2025 case MagickKernelOptions: return(KernelOptions);
2026 case MagickLayerOptions: return(LayerOptions);
2027 case MagickLineCapOptions: return(LineCapOptions);
2028 case MagickLineJoinOptions: return(LineJoinOptions);
2029 case MagickListOptions: return(ListOptions);
2030 case MagickLogEventOptions: return(LogEventOptions);
2031 case MagickMetricOptions: return(MetricOptions);
2032 case MagickMethodOptions: return(MethodOptions);
2033 case MagickModeOptions: return(ModeOptions);
2034 case MagickMorphologyOptions: return(MorphologyOptions);
2035 case MagickNoiseOptions: return(NoiseOptions);
2036 case MagickOrientationOptions: return(OrientationOptions);
2037 case MagickPixelChannelOptions: return(PixelChannelOptions);
2038 case MagickPixelIntensityOptions: return(PixelIntensityOptions);
2039 case MagickPixelMaskOptions: return(PixelMaskOptions);
2040 case MagickPixelTraitOptions: return(PixelTraitOptions);
2041 case MagickPolicyDomainOptions: return(PolicyDomainOptions);
2042 case MagickPolicyRightsOptions: return(PolicyRightsOptions);
2043 case MagickPreviewOptions: return(PreviewOptions);
2044 case MagickPrimitiveOptions: return(PrimitiveOptions);
2045 case MagickQuantumFormatOptions: return(QuantumFormatOptions);
2046 case MagickResolutionOptions: return(ResolutionOptions);
2047 case MagickResourceOptions: return(ResourceOptions);
2048 case MagickSparseColorOptions: return(SparseColorOptions);
2049 case MagickStatisticOptions: return(StatisticOptions);
2050 case MagickStorageOptions: return(StorageOptions);
2051 case MagickStretchOptions: return(StretchOptions);
2052 case MagickStyleOptions: return(StyleOptions);
2053 case MagickTypeOptions: return(TypeOptions);
2054 case MagickValidateOptions: return(ValidateOptions);
2055 case MagickVirtualPixelOptions: return(VirtualPixelOptions);
2056 default: break;
2057 }
2058 return((const OptionInfo *) NULL);
2059}
2060
cristy042ee782011-04-22 18:48:30 +00002061MagickExport ssize_t GetCommandOptionFlags(const CommandOption option,
2062 const MagickBooleanType list,const char *options)
2063{
2064 char
cristy151b66d2015-04-15 10:50:31 +00002065 token[MagickPathExtent];
cristy042ee782011-04-22 18:48:30 +00002066
2067 const OptionInfo
cristy141ad9a2014-09-11 23:37:24 +00002068 *command_info,
cristy042ee782011-04-22 18:48:30 +00002069 *option_info;
2070
2071 int
2072 sentinel;
2073
2074 MagickBooleanType
2075 negate;
2076
2077 register char
2078 *q;
2079
2080 register const char
2081 *p;
2082
cristy141ad9a2014-09-11 23:37:24 +00002083 register ssize_t
2084 i;
2085
cristy042ee782011-04-22 18:48:30 +00002086 ssize_t
2087 option_types;
2088
2089 option_info=GetOptionInfo(option);
2090 if (option_info == (const OptionInfo *) NULL)
anthonye8f56492012-02-12 12:39:02 +00002091 return(UndefinedOptionFlag);
cristy042ee782011-04-22 18:48:30 +00002092 option_types=0;
2093 sentinel=',';
2094 if (strchr(options,'|') != (char *) NULL)
2095 sentinel='|';
2096 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2097 {
2098 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2099 (*p != '\0'))
2100 p++;
2101 negate=(*p == '!') ? MagickTrue : MagickFalse;
2102 if (negate != MagickFalse)
2103 p++;
2104 q=token;
2105 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2106 (*p != '\0'))
2107 {
cristy151b66d2015-04-15 10:50:31 +00002108 if ((q-token) >= (MagickPathExtent-1))
cristy042ee782011-04-22 18:48:30 +00002109 break;
2110 *q++=(*p++);
2111 }
2112 *q='\0';
cristy62841852014-09-12 15:24:39 +00002113 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2114 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2115 break;
2116 command_info=option_info+i;
cristy141ad9a2014-09-11 23:37:24 +00002117 if ((command_info->mnemonic == (const char *) NULL) &&
2118 ((strchr(token+1,'-') != (char *) NULL) ||
2119 (strchr(token+1,'_') != (char *) NULL)))
2120 {
2121 while ((q=strchr(token+1,'-')) != (char *) NULL)
cristy151b66d2015-04-15 10:50:31 +00002122 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
cristy141ad9a2014-09-11 23:37:24 +00002123 while ((q=strchr(token+1,'_')) != (char *) NULL)
cristy151b66d2015-04-15 10:50:31 +00002124 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
cristy62841852014-09-12 15:24:39 +00002125 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2126 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2127 break;
2128 command_info=option_info+i;
cristy042ee782011-04-22 18:48:30 +00002129 }
cristy141ad9a2014-09-11 23:37:24 +00002130 if (command_info->mnemonic == (const char *) NULL)
2131 return(-1);
2132 if (negate != MagickFalse)
2133 option_types=option_types &~ command_info->flags;
2134 else
2135 option_types=option_types | command_info->flags;
cristy042ee782011-04-22 18:48:30 +00002136 if (list == MagickFalse)
2137 break;
2138 }
2139 return(option_types);
2140}
2141
2142/*
2143%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2144% %
2145% %
2146% %
anthony686b1a32012-02-15 14:50:53 +00002147% G e t C o m m a n d O p t i o n I n f o %
2148% %
2149% %
2150% %
2151%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2152%
cristyb01e49e2014-09-09 22:59:01 +00002153% GetCommandOptionInfo() returns a pointer to the matching OptionInfo entry
2154% for the "CommandOptions" table. It returns both the type (argument count)
2155% and flags (argument type).
anthony686b1a32012-02-15 14:50:53 +00002156%
2157% The format of the GetCommandOptionInfo method is:
2158%
cristy2de4a8b2014-09-10 22:48:09 +00002159% const char **GetCommandOptionInfo(const char *option)
anthony686b1a32012-02-15 14:50:53 +00002160%
2161% A description of each parameter follows:
2162%
cristyb01e49e2014-09-09 22:59:01 +00002163% o option: the option.
anthony686b1a32012-02-15 14:50:53 +00002164%
2165*/
cristyb01e49e2014-09-09 22:59:01 +00002166MagickExport const OptionInfo *GetCommandOptionInfo(const char *option)
anthony686b1a32012-02-15 14:50:53 +00002167{
cristy62841852014-09-12 15:24:39 +00002168 register ssize_t
2169 i;
anthony686b1a32012-02-15 14:50:53 +00002170
cristy62841852014-09-12 15:24:39 +00002171 for (i=0; CommandOptions[i].mnemonic != (char *) NULL; i++)
2172 if (LocaleCompare(option,CommandOptions[i].mnemonic) == 0)
2173 break;
2174 return(CommandOptions+i);
anthony686b1a32012-02-15 14:50:53 +00002175}
2176
2177/*
2178%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2179% %
2180% %
2181% %
cristy042ee782011-04-22 18:48:30 +00002182% G e t C o m m a n d O p t i o n s %
2183% %
2184% %
2185% %
2186%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2187%
cristyb1da2062014-09-10 12:51:49 +00002188% GetCommandOptions() returns a list of command options.
cristy042ee782011-04-22 18:48:30 +00002189%
2190% The format of the GetCommandOptions method is:
2191%
cristyb1da2062014-09-10 12:51:49 +00002192% const char **GetCommandOptions(const CommandOption option)
cristy042ee782011-04-22 18:48:30 +00002193%
2194% A description of each parameter follows:
2195%
cristyb1da2062014-09-10 12:51:49 +00002196% o option: the option.
cristy042ee782011-04-22 18:48:30 +00002197%
2198*/
cristyb1da2062014-09-10 12:51:49 +00002199MagickExport char **GetCommandOptions(const CommandOption option)
cristy3ed852e2009-09-05 21:47:34 +00002200{
2201 char
cristyb1da2062014-09-10 12:51:49 +00002202 **options;
cristy3ed852e2009-09-05 21:47:34 +00002203
2204 const OptionInfo
2205 *option_info;
2206
cristybb503372010-05-27 20:51:26 +00002207 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002208 i;
2209
cristyb1da2062014-09-10 12:51:49 +00002210 option_info=GetOptionInfo(option);
cristy3ed852e2009-09-05 21:47:34 +00002211 if (option_info == (const OptionInfo *) NULL)
2212 return((char **) NULL);
2213 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++) ;
cristyb1da2062014-09-10 12:51:49 +00002214 options=(char **) AcquireQuantumMemory((size_t) i+1UL,sizeof(*options));
2215 if (options == (char **) NULL)
cristy3ed852e2009-09-05 21:47:34 +00002216 ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
2217 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
cristyb1da2062014-09-10 12:51:49 +00002218 options[i]=AcquireString(option_info[i].mnemonic);
2219 options[i]=(char *) NULL;
2220 return(options);
cristy3ed852e2009-09-05 21:47:34 +00002221}
2222
2223/*
2224%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2225% %
2226% %
2227% %
2228% G e t N e x t I m a g e O p t i o n %
2229% %
2230% %
2231% %
2232%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2233%
anthony40ca0b92012-08-02 13:23:28 +00002234% GetNextImageOption() gets the next global option value.
cristy3ed852e2009-09-05 21:47:34 +00002235%
2236% The format of the GetNextImageOption method is:
2237%
2238% char *GetNextImageOption(const ImageInfo *image_info)
2239%
2240% A description of each parameter follows:
2241%
2242% o image_info: the image info.
2243%
2244*/
2245MagickExport char *GetNextImageOption(const ImageInfo *image_info)
2246{
2247 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00002248 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00002249 if (image_info->debug != MagickFalse)
2250 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2251 image_info->filename);
2252 if (image_info->options == (void *) NULL)
2253 return((char *) NULL);
2254 return((char *) GetNextKeyInSplayTree((SplayTreeInfo *) image_info->options));
2255}
2256
2257/*
2258%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2259% %
2260% %
2261% %
cristy042ee782011-04-22 18:48:30 +00002262% I s C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002263% %
2264% %
2265% %
2266%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2267%
cristy042ee782011-04-22 18:48:30 +00002268% IsCommandOption() returns MagickTrue if the option begins with a - or + and
cristy3ed852e2009-09-05 21:47:34 +00002269% the first character that follows is alphanumeric.
2270%
cristy042ee782011-04-22 18:48:30 +00002271% The format of the IsCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002272%
cristy042ee782011-04-22 18:48:30 +00002273% MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002274%
2275% A description of each parameter follows:
2276%
2277% o option: the option.
2278%
2279*/
cristy042ee782011-04-22 18:48:30 +00002280MagickExport MagickBooleanType IsCommandOption(const char *option)
cristy3ed852e2009-09-05 21:47:34 +00002281{
2282 assert(option != (const char *) NULL);
2283 if ((*option != '-') && (*option != '+'))
2284 return(MagickFalse);
2285 if (strlen(option) == 1)
dirkb9dbc292015-07-26 09:50:00 +00002286 return(((*option == '{') || (*option == '}') || (*option == '[') ||
2287 (*option == ']')) ? MagickTrue : MagickFalse);
cristy3ed852e2009-09-05 21:47:34 +00002288 option++;
anthonye5b39652012-04-21 05:37:29 +00002289 if (*option == '-')
2290 return(MagickTrue);
cristy3ed852e2009-09-05 21:47:34 +00002291 if (isalpha((int) ((unsigned char) *option)) == 0)
2292 return(MagickFalse);
2293 return(MagickTrue);
2294}
2295
2296/*
2297%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2298% %
2299% %
2300% %
cristy042ee782011-04-22 18:48:30 +00002301% 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 +00002302% %
2303% %
2304% %
2305%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2306%
cristy042ee782011-04-22 18:48:30 +00002307% CommandOptionToMnemonic() returns an enumerated value as a mnemonic.
cristy3ed852e2009-09-05 21:47:34 +00002308%
cristy042ee782011-04-22 18:48:30 +00002309% The format of the CommandOptionToMnemonic method is:
cristy3ed852e2009-09-05 21:47:34 +00002310%
cristy042ee782011-04-22 18:48:30 +00002311% const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002312% const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002313%
2314% A description of each parameter follows:
2315%
2316% o option: the option.
2317%
2318% o type: one or more values separated by commas.
2319%
2320*/
cristy042ee782011-04-22 18:48:30 +00002321MagickExport const char *CommandOptionToMnemonic(const CommandOption option,
cristybb503372010-05-27 20:51:26 +00002322 const ssize_t type)
cristy3ed852e2009-09-05 21:47:34 +00002323{
2324 const OptionInfo
2325 *option_info;
2326
cristybb503372010-05-27 20:51:26 +00002327 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002328 i;
2329
2330 option_info=GetOptionInfo(option);
2331 if (option_info == (const OptionInfo *) NULL)
2332 return((const char *) NULL);
2333 for (i=0; option_info[i].mnemonic != (const char *) NULL; i++)
2334 if (type == option_info[i].type)
2335 break;
2336 if (option_info[i].mnemonic == (const char *) NULL)
dirk88629042014-12-18 20:05:33 +00002337 return("Unrecognized");
cristy3ed852e2009-09-05 21:47:34 +00002338 return(option_info[i].mnemonic);
2339}
2340
2341/*
2342%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2343% %
2344% %
2345% %
cristy71ffec42014-06-25 12:52:49 +00002346% I s O p t i o n M e m b e r %
2347% %
2348% %
2349% %
2350%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2351%
2352% IsOptionMember() returns MagickTrue if the option is a member of the options
2353% list (e.g. ICC is a member of xmp,icc,iptc).
2354%
2355% The format of the IsOptionMember function is:
2356%
2357% MagickBooleanType IsOptionMember(const char *option,
2358% const char *options)
2359%
2360% A description of each parameter follows:
2361%
2362% o option: an option or option expression (e.g. ICC or *).
2363%
2364% o options: one or more options separated by commas.
2365%
cristy71ffec42014-06-25 12:52:49 +00002366*/
cristy0f975d12014-06-25 18:44:04 +00002367MagickExport MagickBooleanType IsOptionMember(const char *option,
cristy71ffec42014-06-25 12:52:49 +00002368 const char *options)
2369{
2370 char
2371 **option_list,
2372 *string;
2373
2374 int
2375 number_options;
2376
cristy53b6cc32014-06-25 13:13:33 +00002377 MagickBooleanType
2378 member;
2379
cristy71ffec42014-06-25 12:52:49 +00002380 register ssize_t
2381 i;
2382
2383 /*
2384 Is option a member of the options list?
2385 */
cristy53b6cc32014-06-25 13:13:33 +00002386 if (options == (const char *) NULL)
2387 return(MagickFalse);
cristy71ffec42014-06-25 12:52:49 +00002388 string=ConstantString(options);
2389 (void) SubstituteString(&string,","," ");
2390 option_list=StringToArgv(string,&number_options);
2391 string=DestroyString(string);
2392 if (option_list == (char **) NULL)
2393 return(MagickFalse);
cristy53b6cc32014-06-25 13:13:33 +00002394 member=MagickFalse;
cristy71ffec42014-06-25 12:52:49 +00002395 for (i=1; i < (ssize_t) number_options; i++)
2396 {
2397 if ((*option_list[i] == '!') &&
2398 (LocaleCompare(option,option_list[i]+1) == 0))
cristy53b6cc32014-06-25 13:13:33 +00002399 break;
cristy71ffec42014-06-25 12:52:49 +00002400 if (GlobExpression(option,option_list[i],MagickTrue) != MagickFalse)
cristy53b6cc32014-06-25 13:13:33 +00002401 {
2402 member=MagickTrue;
2403 break;
2404 }
2405 option_list[i]=DestroyString(option_list[i]);
cristy71ffec42014-06-25 12:52:49 +00002406 }
cristy53b6cc32014-06-25 13:13:33 +00002407 for ( ; i < (ssize_t) number_options; i++)
2408 option_list[i]=DestroyString(option_list[i]);
2409 option_list=(char **) RelinquishMagickMemory(option_list);
2410 return(member);
cristy71ffec42014-06-25 12:52:49 +00002411}
2412
2413/*
2414%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2415% %
2416% %
2417% %
cristy042ee782011-04-22 18:48:30 +00002418% L i s t C o m m a n d O p t i o n s %
cristy3ed852e2009-09-05 21:47:34 +00002419% %
2420% %
2421% %
2422%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2423%
cristy042ee782011-04-22 18:48:30 +00002424% ListCommandOptions() lists the contents of enumerated option type(s).
cristy3ed852e2009-09-05 21:47:34 +00002425%
cristy042ee782011-04-22 18:48:30 +00002426% The format of the ListCommandOptions method is:
cristy3ed852e2009-09-05 21:47:34 +00002427%
cristy2b9582a2011-07-04 17:38:56 +00002428% MagickBooleanType ListCommandOptions(FILE *file,
2429% const CommandOption option,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +00002430%
2431% A description of each parameter follows:
2432%
2433% o file: list options to this file handle.
2434%
2435% o option: list these options.
2436%
2437% o exception: return any errors or warnings in this structure.
2438%
2439*/
cristy042ee782011-04-22 18:48:30 +00002440MagickExport MagickBooleanType ListCommandOptions(FILE *file,
2441 const CommandOption option,ExceptionInfo *magick_unused(exception))
cristy3ed852e2009-09-05 21:47:34 +00002442{
2443 const OptionInfo
2444 *option_info;
2445
cristybb503372010-05-27 20:51:26 +00002446 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002447 i;
2448
2449 if (file == (FILE *) NULL)
2450 file=stdout;
2451 option_info=GetOptionInfo(option);
2452 if (option_info == (const OptionInfo *) NULL)
2453 return(MagickFalse);
2454 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2455 {
2456 if (option_info[i].stealth != MagickFalse)
2457 continue;
cristyb51dff52011-05-19 16:55:47 +00002458 (void) FormatLocaleFile(file,"%s\n",option_info[i].mnemonic);
cristy3ed852e2009-09-05 21:47:34 +00002459 }
2460 return(MagickTrue);
2461}
2462
2463/*
2464%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2465% %
2466% %
2467% %
2468% P a r s e C h a n n e l O p t i o n %
2469% %
2470% %
2471% %
2472%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2473%
2474% ParseChannelOption() parses a string and returns an enumerated channel
2475% type(s).
2476%
2477% The format of the ParseChannelOption method is:
2478%
cristybb503372010-05-27 20:51:26 +00002479% ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002480%
2481% A description of each parameter follows:
2482%
2483% o options: One or more values separated by commas.
2484%
2485*/
cristybb503372010-05-27 20:51:26 +00002486MagickExport ssize_t ParseChannelOption(const char *channels)
cristy3ed852e2009-09-05 21:47:34 +00002487{
cristybb503372010-05-27 20:51:26 +00002488 register ssize_t
cristy3ed852e2009-09-05 21:47:34 +00002489 i;
2490
cristyb9902b72010-10-05 18:21:50 +00002491 ssize_t
2492 channel;
2493
cristy042ee782011-04-22 18:48:30 +00002494 channel=ParseCommandOption(MagickChannelOptions,MagickTrue,channels);
cristy3ed852e2009-09-05 21:47:34 +00002495 if (channel >= 0)
2496 return(channel);
2497 channel=0;
cristybb503372010-05-27 20:51:26 +00002498 for (i=0; i < (ssize_t) strlen(channels); i++)
cristy3ed852e2009-09-05 21:47:34 +00002499 {
2500 switch (channels[i])
2501 {
2502 case 'A':
2503 case 'a':
2504 {
cristy953c4bd2012-02-24 01:04:04 +00002505 channel|=AlphaChannel;
cristy3ed852e2009-09-05 21:47:34 +00002506 break;
2507 }
2508 case 'B':
2509 case 'b':
2510 {
2511 channel|=BlueChannel;
2512 break;
2513 }
2514 case 'C':
2515 case 'c':
2516 {
2517 channel|=CyanChannel;
2518 break;
2519 }
2520 case 'g':
2521 case 'G':
2522 {
2523 channel|=GreenChannel;
2524 break;
2525 }
cristy3ed852e2009-09-05 21:47:34 +00002526 case 'K':
2527 case 'k':
2528 {
2529 channel|=BlackChannel;
2530 break;
2531 }
2532 case 'M':
2533 case 'm':
2534 {
2535 channel|=MagentaChannel;
2536 break;
2537 }
2538 case 'o':
2539 case 'O':
2540 {
anthony30b912a2012-03-22 01:20:28 +00002541 channel|=AlphaChannel; /* depreciate */
cristy3ed852e2009-09-05 21:47:34 +00002542 break;
2543 }
2544 case 'R':
2545 case 'r':
2546 {
2547 channel|=RedChannel;
2548 break;
2549 }
2550 case 'Y':
2551 case 'y':
2552 {
2553 channel|=YellowChannel;
2554 break;
2555 }
2556 case ',':
2557 {
cristybb503372010-05-27 20:51:26 +00002558 ssize_t
cristy3e4015d2010-10-05 18:18:56 +00002559 type;
2560
2561 /*
2562 Gather the additional channel flags and merge with shorthand.
2563 */
cristy042ee782011-04-22 18:48:30 +00002564 type=ParseCommandOption(MagickChannelOptions,MagickTrue,channels+i+1);
cristy3e4015d2010-10-05 18:18:56 +00002565 if (type < 0)
2566 return(type);
2567 channel|=type;
cristy3ed852e2009-09-05 21:47:34 +00002568 return(channel);
2569 }
2570 default:
2571 return(-1);
2572 }
2573 }
2574 return(channel);
2575}
2576
2577/*
2578%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2579% %
2580% %
2581% %
cristy042ee782011-04-22 18:48:30 +00002582% P a r s e C o m m a n d O p t i o n %
cristy3ed852e2009-09-05 21:47:34 +00002583% %
2584% %
2585% %
2586%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2587%
cristy042ee782011-04-22 18:48:30 +00002588% ParseCommandOption() parses a string and returns an enumerated option
anthonyce2716b2011-04-22 09:51:34 +00002589% type(s). Return a value of -1 if no such option is found.
cristy3ed852e2009-09-05 21:47:34 +00002590%
cristy042ee782011-04-22 18:48:30 +00002591% The format of the ParseCommandOption method is:
cristy3ed852e2009-09-05 21:47:34 +00002592%
cristy0dbbb452014-09-11 00:24:21 +00002593% ssize_t ParseCommandOption(const CommandOption option,
cristy3ed852e2009-09-05 21:47:34 +00002594% const MagickBooleanType list,const char *options)
2595%
2596% A description of each parameter follows:
2597%
cristy0dbbb452014-09-11 00:24:21 +00002598% o option: Index to the option table to lookup
cristy3ed852e2009-09-05 21:47:34 +00002599%
2600% o list: A option other than zero permits more than one option separated by
2601% a comma or pipe.
2602%
2603% o options: One or more options separated by commas.
2604%
2605*/
cristy0dbbb452014-09-11 00:24:21 +00002606MagickExport ssize_t ParseCommandOption(const CommandOption option,
cristy3ed852e2009-09-05 21:47:34 +00002607 const MagickBooleanType list,const char *options)
2608{
2609 char
cristy151b66d2015-04-15 10:50:31 +00002610 token[MagickPathExtent];
cristy3ed852e2009-09-05 21:47:34 +00002611
2612 const OptionInfo
cristy141ad9a2014-09-11 23:37:24 +00002613 *command_info,
cristy3ed852e2009-09-05 21:47:34 +00002614 *option_info;
2615
2616 int
2617 sentinel;
2618
cristy3ed852e2009-09-05 21:47:34 +00002619 MagickBooleanType
2620 negate;
2621
2622 register char
2623 *q;
2624
2625 register const char
2626 *p;
2627
cristy141ad9a2014-09-11 23:37:24 +00002628 register ssize_t
2629 i;
2630
cristyb9902b72010-10-05 18:21:50 +00002631 ssize_t
2632 option_types;
2633
cristy359b9292015-06-28 22:58:24 +00002634 if (options == (const char *) NULL)
2635 return(-1);
cristy0dbbb452014-09-11 00:24:21 +00002636 option_info=GetOptionInfo(option);
cristy3ed852e2009-09-05 21:47:34 +00002637 if (option_info == (const OptionInfo *) NULL)
2638 return(-1);
2639 option_types=0;
2640 sentinel=',';
2641 if (strchr(options,'|') != (char *) NULL)
2642 sentinel='|';
2643 for (p=options; p != (char *) NULL; p=strchr(p,sentinel))
2644 {
2645 while (((isspace((int) ((unsigned char) *p)) != 0) || (*p == sentinel)) &&
2646 (*p != '\0'))
2647 p++;
2648 negate=(*p == '!') ? MagickTrue : MagickFalse;
2649 if (negate != MagickFalse)
2650 p++;
2651 q=token;
2652 while (((isspace((int) ((unsigned char) *p)) == 0) && (*p != sentinel)) &&
2653 (*p != '\0'))
2654 {
cristy151b66d2015-04-15 10:50:31 +00002655 if ((q-token) >= (MagickPathExtent-1))
cristy3ed852e2009-09-05 21:47:34 +00002656 break;
2657 *q++=(*p++);
2658 }
2659 *q='\0';
cristy62841852014-09-12 15:24:39 +00002660 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2661 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2662 break;
2663 command_info=option_info+i;
cristy141ad9a2014-09-11 23:37:24 +00002664 if ((command_info->mnemonic == (const char *) NULL) &&
2665 ((strchr(token+1,'-') != (char *) NULL) ||
2666 (strchr(token+1,'_') != (char *) NULL)))
2667 {
2668 while ((q=strchr(token+1,'-')) != (char *) NULL)
cristy151b66d2015-04-15 10:50:31 +00002669 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
cristy141ad9a2014-09-11 23:37:24 +00002670 while ((q=strchr(token+1,'_')) != (char *) NULL)
cristy151b66d2015-04-15 10:50:31 +00002671 (void) CopyMagickString(q,q+1,MagickPathExtent-strlen(q));
cristy62841852014-09-12 15:24:39 +00002672 for (i=0; option_info[i].mnemonic != (char *) NULL; i++)
2673 if (LocaleCompare(token,option_info[i].mnemonic) == 0)
2674 break;
2675 command_info=option_info+i;
cristy141ad9a2014-09-11 23:37:24 +00002676 }
2677 if (command_info->mnemonic == (const char *) NULL)
2678 return(-1);
2679 if (negate != MagickFalse)
2680 option_types=option_types &~ command_info->type;
2681 else
2682 option_types=option_types | command_info->type;
cristy3ed852e2009-09-05 21:47:34 +00002683 if (list == MagickFalse)
2684 break;
2685 }
2686 return(option_types);
2687}
2688
2689/*
2690%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2691% %
2692% %
2693% %
cristy953c4bd2012-02-24 01:04:04 +00002694% P a r s e P i x e l C h a n n e l O p t i o n %
2695% %
2696% %
2697% %
2698%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2699%
2700% ParsePixelChannelOption() parses a string and returns an enumerated pixel
2701% channel type(s).
2702%
2703% The format of the ParsePixelChannelOption method is:
2704%
2705% ssize_t ParsePixelChannelOption(const char *channels)
2706%
2707% A description of each parameter follows:
2708%
cristyd04e7bf2012-03-03 19:19:12 +00002709% o channels: One or more channels separated by commas.
cristy953c4bd2012-02-24 01:04:04 +00002710%
2711*/
2712MagickExport ssize_t ParsePixelChannelOption(const char *channels)
2713{
cristyd04e7bf2012-03-03 19:19:12 +00002714 char
cristya15140f2012-03-04 01:21:15 +00002715 *q,
cristy151b66d2015-04-15 10:50:31 +00002716 token[MagickPathExtent];
cristy953c4bd2012-02-24 01:04:04 +00002717
2718 ssize_t
2719 channel;
2720
cristya15140f2012-03-04 01:21:15 +00002721 GetMagickToken(channels,NULL,token);
cristyd4311d42012-03-18 23:03:10 +00002722 if ((*token == ';') || (*token == '|'))
2723 return(RedPixelChannel);
cristya15140f2012-03-04 01:21:15 +00002724 channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
cristy953c4bd2012-02-24 01:04:04 +00002725 if (channel >= 0)
2726 return(channel);
cristya15140f2012-03-04 01:21:15 +00002727 q=(char *) token;
cristyb01e49e2014-09-09 22:59:01 +00002728 channel=(ssize_t) InterpretLocaleValue(token,&q);
cristyabb241b2012-03-06 01:12:58 +00002729 if ((q == token) || (channel < 0) || (channel >= MaxPixelChannels))
cristyd04e7bf2012-03-03 19:19:12 +00002730 return(-1);
cristy953c4bd2012-02-24 01:04:04 +00002731 return(channel);
2732}
2733
2734/*
2735%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2736% %
2737% %
2738% %
cristy3ed852e2009-09-05 21:47:34 +00002739% R e m o v e I m a g e O p t i o n %
2740% %
2741% %
2742% %
2743%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2744%
2745% RemoveImageOption() removes an option from the image and returns its value.
2746%
anthony40ca0b92012-08-02 13:23:28 +00002747% In this case the ConstantString() value returned should be freed by the
2748% caller when finished.
2749%
cristy3ed852e2009-09-05 21:47:34 +00002750% The format of the RemoveImageOption method is:
2751%
2752% char *RemoveImageOption(ImageInfo *image_info,const char *option)
2753%
2754% A description of each parameter follows:
2755%
2756% o image_info: the image info.
2757%
2758% o option: the image option.
2759%
2760*/
2761MagickExport char *RemoveImageOption(ImageInfo *image_info,const char *option)
2762{
2763 char
2764 *value;
2765
2766 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00002767 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00002768 if (image_info->debug != MagickFalse)
2769 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2770 image_info->filename);
2771 if (image_info->options == (void *) NULL)
2772 return((char *) NULL);
2773 value=(char *) RemoveNodeFromSplayTree((SplayTreeInfo *)
2774 image_info->options,option);
2775 return(value);
2776}
2777
2778/*
2779%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2780% %
2781% %
2782% %
2783% R e s e t I m a g e O p t i o n %
2784% %
2785% %
2786% %
2787%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2788%
2789% ResetImageOptions() resets the image_info option. That is, it deletes
anthony40ca0b92012-08-02 13:23:28 +00002790% all global options associated with the image_info structure.
cristy3ed852e2009-09-05 21:47:34 +00002791%
2792% The format of the ResetImageOptions method is:
2793%
2794% ResetImageOptions(ImageInfo *image_info)
2795%
2796% A description of each parameter follows:
2797%
2798% o image_info: the image info.
2799%
2800*/
2801MagickExport void ResetImageOptions(const ImageInfo *image_info)
2802{
2803 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00002804 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00002805 if (image_info->debug != MagickFalse)
2806 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2807 image_info->filename);
2808 if (image_info->options == (void *) NULL)
2809 return;
2810 ResetSplayTree((SplayTreeInfo *) image_info->options);
2811}
2812
2813/*
2814%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2815% %
2816% %
2817% %
2818% R e s e t I m a g e O p t i o n I t e r a t o r %
2819% %
2820% %
2821% %
2822%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2823%
2824% ResetImageOptionIterator() resets the image_info values iterator. Use it
2825% in conjunction with GetNextImageOption() to iterate over all the values
2826% associated with an image option.
2827%
2828% The format of the ResetImageOptionIterator method is:
2829%
2830% ResetImageOptionIterator(ImageInfo *image_info)
2831%
2832% A description of each parameter follows:
2833%
2834% o image_info: the image info.
2835%
2836*/
2837MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
2838{
2839 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00002840 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00002841 if (image_info->debug != MagickFalse)
2842 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2843 image_info->filename);
2844 if (image_info->options == (void *) NULL)
2845 return;
2846 ResetSplayTreeIterator((SplayTreeInfo *) image_info->options);
2847}
2848
2849/*
2850%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2851% %
2852% %
2853% %
2854% S e t I m a g e O p t i o n %
2855% %
2856% %
2857% %
2858%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2859%
2860% SetImageOption() associates an value with an image option.
2861%
2862% The format of the SetImageOption method is:
2863%
2864% MagickBooleanType SetImageOption(ImageInfo *image_info,
2865% const char *option,const char *value)
2866%
2867% A description of each parameter follows:
2868%
2869% o image_info: the image info.
2870%
2871% o option: the image option.
2872%
2873% o values: the image option values.
2874%
2875*/
2876MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info,
2877 const char *option,const char *value)
2878{
cristy3ed852e2009-09-05 21:47:34 +00002879 assert(image_info != (ImageInfo *) NULL);
cristye1c94d92015-06-28 12:16:33 +00002880 assert(image_info->signature == MagickCoreSignature);
cristy3ed852e2009-09-05 21:47:34 +00002881 if (image_info->debug != MagickFalse)
2882 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
2883 image_info->filename);
cristyc96a1ba2013-03-28 13:05:04 +00002884 /*
2885 Specific global option settings.
2886 */
anthonya322a832013-04-27 06:28:03 +00002887 if (LocaleCompare(option,"size") == 0) {
cristy3ed852e2009-09-05 21:47:34 +00002888 (void) CloneString(&image_info->size,value);
anthonya322a832013-04-27 06:28:03 +00002889 return(MagickTrue);
2890 }
cristyc96a1ba2013-03-28 13:05:04 +00002891 /*
2892 Create tree if needed - specify how key,values are to be freed.
2893 */
cristy3ed852e2009-09-05 21:47:34 +00002894 if (image_info->options == (void *) NULL)
2895 image_info->options=NewSplayTree(CompareSplayTreeString,
2896 RelinquishMagickMemory,RelinquishMagickMemory);
cristyc96a1ba2013-03-28 13:05:04 +00002897 /*
2898 Delete Option if NULL -- empty string values are valid!
2899 */
anthonyd181ea02011-10-12 07:44:13 +00002900 if (value == (const char *) NULL)
2901 return(DeleteImageOption(image_info,option));
cristyc96a1ba2013-03-28 13:05:04 +00002902 /*
2903 Add option to splay-tree.
2904 */
cristye3f77792011-10-07 00:09:09 +00002905 return(AddValueToSplayTree((SplayTreeInfo *) image_info->options,
2906 ConstantString(option),ConstantString(value)));
cristy3ed852e2009-09-05 21:47:34 +00002907}