*miscellaneous[]=
{
"-debug events display copious debugging information",
+ "-distribute-cache port",
+ " distributed pixel cache spanning one or more servers",
"-help print program options",
"-list type print a list of supported option arguments",
"-log format format of debugging information",
"-charcoal radius simulate a charcoal drawing",
"-chop geometry remove pixels from the image interior",
"-clamp keep pixel values in range (0-QuantumRange)",
- "-clip clip along the first path from the 8BIM profile",
- "-clip-mask filename associate a clip mask with the image",
- "-clip-path id clip along a named path from the 8BIM profile",
"-colorize value colorize the image with the fill color",
"-color-matrix matrix apply color correction to the image",
"-contrast enhance or reduce the image contrast",
"-gaussian-blur geometry",
" reduce image noise and reduce detail levels",
"-geometry geometry preferred size or location of the image",
+ "-grayscale method convert image to grayscale",
"-identify identify the format and characteristics of the image",
"-ift implements the inverse discrete Fourier transform (DFT)",
"-implode amount implode image pixels about the center",
- "-interpolative-resize geometry",
- " resize image using interpolation",
"-lat geometry local adaptive thresholding",
- "-layers method optimize, merge, or compare image layers",
"-level value adjust the level of image contrast",
"-level-colors color,color",
" level image with the given colors",
"-clut apply a color lookup table to the image",
"-coalesce merge a sequence of images",
"-combine combine a sequence of images",
+ "-compare mathematically and visually annotate the difference between an image and its reconstruction",
+ "-complex operator perform complex mathematics on an image sequence",
"-composite composite image",
"-crop geometry cut out a rectangular region of the image",
"-deconstruct break down an image sequence into constituent parts",
"-flatten flatten a sequence of images",
"-fx expression apply mathematical expression to an image channel(s)",
"-hald-clut apply a Hald color lookup table to the image",
+ "-layers method optimize, merge, or compare image layers",
"-morph value morph an image sequence",
"-mosaic create a mosaic from an image sequence",
"-poly terms build a polynomial from the image sequence and the corresponding",
"-bordercolor color border color",
"-caption string assign a caption to an image",
"-channel type apply option to select image channels",
+ "-clip clip along the first path from the 8BIM profile",
+ "-clip-mask filename associate a clip mask with the image",
+ "-clip-path id clip along a named path from the 8BIM profile",
"-colors value preferred number of colors in the image",
"-colorspace type alternate image colorspace",
"-comment string annotate image with comment",
"-fuzz distance colors within this distance are considered equal",
"-gravity type horizontal and vertical text placement",
"-green-primary point chromaticity green primary point",
+ "-intensity method method to generate an intensity value from a pixel",
"-intent type type of rendering intent when managing the image color",
"-interlace type type of image interlacing scheme",
"-interline-spacing value",
"-limit type value pixel cache resource limit",
"-loop iterations add Netscape loop extension to your GIF animation",
"-mask filename associate a mask with the image",
+ "-matte store matte channel if the image has one",
"-mattecolor color frame color",
"-monitor monitor progress",
"-orient type image orientation",
"-stroke color graphic primitive stroke color",
"-strokewidth value graphic primitive stroke width",
"-style type render text with this font style",
+ "-support factor resize support: > 1.0 is blurry, < 1.0 is sharp",
"-synchronize synchronize image to storage device",
"-taint declare the image as modified",
"-texture filename name of texture to tile onto the image background",
const char
**p;
- (void) printf("Version: %s\n",GetMagickVersion((size_t *) NULL));
- (void) printf("Copyright: %s\n",GetMagickCopyright());
- (void) printf("Features: %s\n\n",GetMagickFeatures());
+ ListMagickVersion(stdout);
(void) printf("Usage: %s [options ...] file [ [options ...] "
"file ...] [options ...] file\n",GetClientName());
(void) printf("\nImage Settings:\n");
}
#define ThrowConvertException(asperity,tag,option) \
{ \
- (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag,"'%s'", \
+ (void) ThrowMagickException(exception,GetMagickModule(),asperity,tag,"`%s'", \
option); \
DestroyConvert(); \
return(MagickFalse); \
if ((LocaleCompare("version",option+1) == 0) ||
(LocaleCompare("-version",option+1) == 0))
{
- (void) FormatLocaleFile(stdout,"Version: %s\n",
- GetMagickVersion((size_t *) NULL));
- (void) FormatLocaleFile(stdout,"Copyright: %s\n",
- GetMagickCopyright());
- (void) FormatLocaleFile(stdout,"Features: %s\n\n",
- GetMagickFeatures());
+ ListMagickVersion(stdout);
return(MagickFalse);
}
}
ThrowConvertException(OptionError,"MissingArgument",option);
break;
}
+ if (LocaleCompare("compare",option+1) == 0)
+ break;
+ if (LocaleCompare("complex",option+1) == 0)
+ {
+ ssize_t
+ operator;
+
+ if (*option == '+')
+ break;
+ i++;
+ if (i == (ssize_t) argc)
+ ThrowConvertException(OptionError,"MissingArgument",option);
+ operator=ParseCommandOption(MagickComplexOptions,MagickFalse,
+ argv[i]);
+ if (operator < 0)
+ ThrowConvertException(OptionError,"UnrecognizedComplexOperator",
+ argv[i]);
+ break;
+ }
if (LocaleCompare("compose",option+1) == 0)
{
ssize_t
argv[i]);
break;
}
+ if (LocaleCompare("grayscale",option+1) == 0)
+ {
+ ssize_t
+ method;
+
+ if (*option == '+')
+ break;
+ i++;
+ if (i == (ssize_t) (argc-1))
+ ThrowConvertException(OptionError,"MissingArgument",option);
+ method=ParseCommandOption(MagickPixelIntensityOptions,MagickFalse,
+ argv[i]);
+ if (method < 0)
+ ThrowConvertException(OptionError,"UnrecognizedIntensityMethod",
+ argv[i]);
+ break;
+ }
if (LocaleCompare("green-primary",option+1) == 0)
{
if (*option == '+')
ThrowConvertInvalidArgumentException(option,argv[i]);
break;
}
+ if (LocaleCompare("intensity",option+1) == 0)
+ {
+ ssize_t
+ intensity;
+
+ if (*option == '+')
+ break;
+ i++;
+ if (i == (ssize_t) (argc-1))
+ ThrowConvertException(OptionError,"MissingArgument",option);
+ intensity=ParseCommandOption(MagickPixelIntensityOptions,
+ MagickFalse,argv[i]);
+ if (intensity < 0)
+ ThrowConvertException(OptionError,"UnrecognizedIntensityMethod",
+ argv[i]);
+ break;
+ }
if (LocaleCompare("intent",option+1) == 0)
{
ssize_t
i++;
if (i == (ssize_t) (argc-1))
ThrowConvertException(OptionError,"MissingArgument",option);
- intent=ParseCommandOption(MagickIntentOptions,MagickFalse,
- argv[i]);
+ intent=ParseCommandOption(MagickIntentOptions,MagickFalse,argv[i]);
if (intent < 0)
- ThrowConvertException(OptionError,"UnrecognizedIntentType",
- argv[i]);
+ ThrowConvertException(OptionError,"UnrecognizedIntentType",argv[i]);
break;
}
if (LocaleCompare("interlace",option+1) == 0)
ThrowConvertInvalidArgumentException(option,argv[i]);
break;
}
+ if (LocaleCompare("metric",option+1) == 0)
+ {
+ ssize_t
+ type;
+
+ if (*option == '+')
+ break;
+ i++;
+ if (i == (ssize_t) argc)
+ ThrowConvertException(OptionError,"MissingArgument",option);
+ type=ParseCommandOption(MagickMetricOptions,MagickTrue,argv[i]);
+ if (type < 0)
+ ThrowConvertException(OptionError,"UnrecognizedMetricType",
+ argv[i]);
+ break;
+ }
if (LocaleCompare("minimum",option+1) == 0)
break;
if (LocaleCompare("mode",option+1) == 0)
if ((LocaleCompare("version",option+1) == 0) ||
(LocaleCompare("-version",option+1) == 0))
{
- (void) FormatLocaleFile(stdout,"Version: %s\n",
- GetMagickVersion((size_t *) NULL));
- (void) FormatLocaleFile(stdout,"Copyright: %s\n",
- GetMagickCopyright());
- (void) FormatLocaleFile(stdout,"Features: %s\n\n",
- GetMagickFeatures());
+ ListMagickVersion(stdout);
break;
}
if (LocaleCompare("view",option+1) == 0)