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