Lines Matching +full:- +full:- +full:option
20 % Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization %
37 % an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample,
47 #include "MagickWand/mogrify-private.h"
48 #include "MagickCore/string-private.h"
49 #include "MagickCore/utility-private.h"
117 output=fopen_utf8(argv[argc-1],"wb"); in ConcatenateImages()
121 argv[argc-1]); in ConcatenateImages()
125 for (i=2; i < (ssize_t) (argc-1); i++) in ConcatenateImages()
148 "-channel-fx expression", in ConvertUsage()
150 "-separate separate an image channel into a grayscale image", in ConvertUsage()
155 "-debug events display copious debugging information", in ConvertUsage()
156 "-distribute-cache port", in ConvertUsage()
158 "-help print program options", in ConvertUsage()
159 "-list type print a list of supported option arguments", in ConvertUsage()
160 "-log format format of debugging information", in ConvertUsage()
161 "-version print version information", in ConvertUsage()
166 "-adaptive-blur geometry", in ConvertUsage()
168 "-adaptive-resize geometry", in ConvertUsage()
170 "-adaptive-sharpen geometry", in ConvertUsage()
172 "-alpha option on, activate, off, deactivate, set, opaque, copy", in ConvertUsage()
174 "-annotate geometry text", in ConvertUsage()
176 "-auto-gamma automagically adjust gamma level of image", in ConvertUsage()
177 "-auto-level automagically adjust color levels of image", in ConvertUsage()
178 "-auto-orient automagically orient (rotate) image", in ConvertUsage()
179 "-auto-threshold method", in ConvertUsage()
181 "-bench iterations measure performance", in ConvertUsage()
182 "-black-threshold value", in ConvertUsage()
184 "-blue-shift factor simulate a scene at nighttime in the moonlight", in ConvertUsage()
185 "-blur geometry reduce image noise and reduce detail levels", in ConvertUsage()
186 "-border geometry surround image with a border of color", in ConvertUsage()
187 "-bordercolor color border color", in ConvertUsage()
188 "-brightness-contrast geometry", in ConvertUsage()
190 "-canny geometry detect edges in the image", in ConvertUsage()
191 "-cdl filename color correct with a color decision list", in ConvertUsage()
192 "-channel mask set the image channel mask", in ConvertUsage()
193 "-charcoal radius simulate a charcoal drawing", in ConvertUsage()
194 "-chop geometry remove pixels from the image interior", in ConvertUsage()
195 "-clahe geometry contrast limited adaptive histogram equalization", in ConvertUsage()
196 "-clamp keep pixel values in range (0-QuantumRange)", in ConvertUsage()
197 "-colorize value colorize the image with the fill color", in ConvertUsage()
198 "-color-matrix matrix apply color correction to the image", in ConvertUsage()
199 "-connected-components connectivity", in ConvertUsage()
200 " connected-components uniquely labeled", in ConvertUsage()
201 "-contrast enhance or reduce the image contrast", in ConvertUsage()
202 "-contrast-stretch geometry", in ConvertUsage()
204 "-convolve coefficients", in ConvertUsage()
206 "-cycle amount cycle the image colormap", in ConvertUsage()
207 "-decipher filename convert cipher pixels to plain pixels", in ConvertUsage()
208 "-deskew threshold straighten an image", in ConvertUsage()
209 "-despeckle reduce the speckles within an image", in ConvertUsage()
210 "-distort method args", in ConvertUsage()
212 "-draw string annotate the image with a graphic primitive", in ConvertUsage()
213 "-edge radius apply a filter to detect edges in the image", in ConvertUsage()
214 "-encipher filename convert plain pixels to cipher pixels", in ConvertUsage()
215 "-emboss radius emboss an image", in ConvertUsage()
216 "-enhance apply a digital filter to enhance a noisy image", in ConvertUsage()
217 "-equalize perform histogram equalization to an image", in ConvertUsage()
218 "-evaluate operator value", in ConvertUsage()
220 "-extent geometry set the image size", in ConvertUsage()
221 "-extract geometry extract area from image", in ConvertUsage()
222 "-fft implements the discrete Fourier transform (DFT)", in ConvertUsage()
223 "-flip flip image vertically", in ConvertUsage()
224 "-floodfill geometry color", in ConvertUsage()
226 "-flop flop image horizontally", in ConvertUsage()
227 "-frame geometry surround image with an ornamental border", in ConvertUsage()
228 "-function name parameters", in ConvertUsage()
230 "-gamma value level of gamma correction", in ConvertUsage()
231 "-gaussian-blur geometry", in ConvertUsage()
233 "-geometry geometry preferred size or location of the image", in ConvertUsage()
234 "-grayscale method convert image to grayscale", in ConvertUsage()
235 "-hough-lines geometry", in ConvertUsage()
237 "-identify identify the format and characteristics of the image", in ConvertUsage()
238 "-ift implements the inverse discrete Fourier transform (DFT)", in ConvertUsage()
239 "-implode amount implode image pixels about the center", in ConvertUsage()
240 "-kuwahara geometry edge preserving noise reduction filter", in ConvertUsage()
241 "-lat geometry local adaptive thresholding", in ConvertUsage()
242 "-level value adjust the level of image contrast", in ConvertUsage()
243 "-level-colors color,color", in ConvertUsage()
245 "-linear-stretch geometry", in ConvertUsage()
247 "-liquid-rescale geometry", in ConvertUsage()
248 " rescale image with seam-carving", in ConvertUsage()
249 "-local-contrast geometry", in ConvertUsage()
251 "-mean-shift geometry delineate arbitrarily shaped clusters in the image", in ConvertUsage()
252 "-median geometry apply a median filter to the image", in ConvertUsage()
253 "-mode geometry make each pixel the 'predominant color' of the", in ConvertUsage()
255 "-modulate value vary the brightness, saturation, and hue", in ConvertUsage()
256 "-monochrome transform image to black and white", in ConvertUsage()
257 "-morphology method kernel", in ConvertUsage()
259 "-motion-blur geometry", in ConvertUsage()
261 "-negate replace every pixel with its complementary color ", in ConvertUsage()
262 "-noise geometry add or reduce noise in an image", in ConvertUsage()
263 "-normalize transform image to span the full range of colors", in ConvertUsage()
264 "-opaque color change this color to the fill color", in ConvertUsage()
265 "-ordered-dither NxN", in ConvertUsage()
268 "-paint radius simulate an oil painting", in ConvertUsage()
269 "-perceptible epsilon", in ConvertUsage()
271 " -epsilon", in ConvertUsage()
272 "-polaroid angle simulate a Polaroid picture", in ConvertUsage()
273 "-posterize levels reduce the image to a limited number of color levels", in ConvertUsage()
274 "-profile filename add, delete, or apply an image profile", in ConvertUsage()
275 "-quantize colorspace reduce colors in this colorspace", in ConvertUsage()
276 "-raise value lighten/darken image edges to create a 3-D effect", in ConvertUsage()
277 "-random-threshold low,high", in ConvertUsage()
279 "-range-threshold values", in ConvertUsage()
281 "-region geometry apply options to a portion of the image", in ConvertUsage()
282 "-render render vector graphics", in ConvertUsage()
283 "-resample geometry change the resolution of an image", in ConvertUsage()
284 "-resize geometry resize the image", in ConvertUsage()
285 "-roll geometry roll an image vertically or horizontally", in ConvertUsage()
286 "-rotate degrees apply Paeth rotation to the image", in ConvertUsage()
287 "-rotational-blur angle", in ConvertUsage()
289 "-sample geometry scale image with pixel sampling", in ConvertUsage()
290 "-scale geometry scale the image", in ConvertUsage()
291 "-segment values segment an image", in ConvertUsage()
292 "-selective-blur geometry", in ConvertUsage()
294 "-sepia-tone threshold", in ConvertUsage()
295 " simulate a sepia-toned photo", in ConvertUsage()
296 "-set property value set an image property", in ConvertUsage()
297 "-shade degrees shade the image using a distant light source", in ConvertUsage()
298 "-shadow geometry simulate an image shadow", in ConvertUsage()
299 "-sharpen geometry sharpen the image", in ConvertUsage()
300 "-shave geometry shave pixels from the image edges", in ConvertUsage()
301 "-shear geometry slide one edge of the image along the X or Y axis", in ConvertUsage()
302 "-sigmoidal-contrast geometry", in ConvertUsage()
305 "-sketch geometry simulate a pencil sketch", in ConvertUsage()
306 "-solarize threshold negate all pixels above the threshold level", in ConvertUsage()
307 "-sparse-color method args", in ConvertUsage()
309 "-splice geometry splice the background color into the image", in ConvertUsage()
310 "-spread radius displace image pixels by a random amount", in ConvertUsage()
311 "-statistic type geometry", in ConvertUsage()
314 "-strip strip image of all profiles and comments", in ConvertUsage()
315 "-swirl degrees swirl image pixels about the center", in ConvertUsage()
316 "-threshold value threshold the image", in ConvertUsage()
317 "-thumbnail geometry create a thumbnail of the image", in ConvertUsage()
318 "-tile filename tile image when filling a graphic primitive", in ConvertUsage()
319 "-tint value tint the image with the fill color", in ConvertUsage()
320 "-transform affine transform image", in ConvertUsage()
321 "-transparent color make this color transparent within the image", in ConvertUsage()
322 "-transpose flip image vertically and rotate 90 degrees", in ConvertUsage()
323 "-transverse flop image horizontally and rotate 270 degrees", in ConvertUsage()
324 "-trim trim image edges", in ConvertUsage()
325 "-type type image type", in ConvertUsage()
326 "-unique-colors discard all but one of any pixel color", in ConvertUsage()
327 "-unsharp geometry sharpen the image", in ConvertUsage()
328 "-vignette geometry soften the edges of the image in vignette style", in ConvertUsage()
329 "-wave geometry alter an image along a sine wave", in ConvertUsage()
330 "-wavelet-denoise threshold", in ConvertUsage()
332 "-white-threshold value", in ConvertUsage()
338 "-append append an image sequence", in ConvertUsage()
339 "-clut apply a color lookup table to the image", in ConvertUsage()
340 "-coalesce merge a sequence of images", in ConvertUsage()
341 "-combine combine a sequence of images", in ConvertUsage()
342 …"-compare mathematically and visually annotate the difference between an image and its… in ConvertUsage()
343 "-complex operator perform complex mathematics on an image sequence", in ConvertUsage()
344 "-composite composite image", in ConvertUsage()
345 "-copy geometry offset", in ConvertUsage()
347 "-crop geometry cut out a rectangular region of the image", in ConvertUsage()
348 "-deconstruct break down an image sequence into constituent parts", in ConvertUsage()
349 "-evaluate-sequence operator", in ConvertUsage()
351 "-flatten flatten a sequence of images", in ConvertUsage()
352 "-fx expression apply mathematical expression to an image channel(s)", in ConvertUsage()
353 "-hald-clut apply a Hald color lookup table to the image", in ConvertUsage()
354 "-layers method optimize, merge, or compare image layers", in ConvertUsage()
355 "-morph value morph an image sequence", in ConvertUsage()
356 "-mosaic create a mosaic from an image sequence", in ConvertUsage()
357 "-poly terms build a polynomial from the image sequence and the corresponding", in ConvertUsage()
359 "-print string interpret string and print to console", in ConvertUsage()
360 "-process arguments process the image with a custom image filter", in ConvertUsage()
361 "-smush geometry smush an image sequence together", in ConvertUsage()
362 "-write filename write images to this file", in ConvertUsage()
367 "-adjoin join images into a single multi-image file", in ConvertUsage()
368 "-affine matrix affine transform matrix", in ConvertUsage()
369 "-alpha option activate, deactivate, reset, or set the alpha channel", in ConvertUsage()
370 "-antialias remove pixel-aliasing", in ConvertUsage()
371 "-authenticate password", in ConvertUsage()
373 "-attenuate value lessen (or intensify) when adding noise to an image", in ConvertUsage()
374 "-background color background color", in ConvertUsage()
375 "-bias value add bias when convolving an image", in ConvertUsage()
376 "-black-point-compensation", in ConvertUsage()
378 "-blue-primary point chromaticity blue primary point", in ConvertUsage()
379 "-bordercolor color border color", in ConvertUsage()
380 "-caption string assign a caption to an image", in ConvertUsage()
381 "-clip clip along the first path from the 8BIM profile", in ConvertUsage()
382 "-clip-mask filename associate a clip mask with the image", in ConvertUsage()
383 "-clip-path id clip along a named path from the 8BIM profile", in ConvertUsage()
384 "-colors value preferred number of colors in the image", in ConvertUsage()
385 "-colorspace type alternate image colorspace", in ConvertUsage()
386 "-comment string annotate image with comment", in ConvertUsage()
387 "-compose operator set image composite operator", in ConvertUsage()
388 "-compress type type of pixel compression when writing the image", in ConvertUsage()
389 "-define format:option", in ConvertUsage()
391 "-delay value display the next image after pausing", in ConvertUsage()
392 "-density geometry horizontal and vertical density of the image", in ConvertUsage()
393 "-depth value image depth", in ConvertUsage()
394 "-direction type render text right-to-left or left-to-right", in ConvertUsage()
395 "-display server get image or font from this X server", in ConvertUsage()
396 "-dispose method layer disposal method", in ConvertUsage()
397 "-dither method apply error diffusion to image", in ConvertUsage()
398 "-encoding type text encoding type", in ConvertUsage()
399 "-endian type endianness (MSB or LSB) of the image", in ConvertUsage()
400 "-family name render text with this font family", in ConvertUsage()
401 "-features distance analyze image features (e.g. contrast, correlation)", in ConvertUsage()
402 "-fill color color to use when filling a graphic primitive", in ConvertUsage()
403 "-filter type use this filter when resizing an image", in ConvertUsage()
404 "-font name render text with this font", in ConvertUsage()
405 "-format \"string\" output formatted image characteristics", in ConvertUsage()
406 "-fuzz distance colors within this distance are considered equal", in ConvertUsage()
407 "-gravity type horizontal and vertical text placement", in ConvertUsage()
408 "-green-primary point chromaticity green primary point", in ConvertUsage()
409 "-intensity method method to generate an intensity value from a pixel", in ConvertUsage()
410 "-intent type type of rendering intent when managing the image color", in ConvertUsage()
411 "-interlace type type of image interlacing scheme", in ConvertUsage()
412 "-interline-spacing value", in ConvertUsage()
414 "-interpolate method pixel color interpolation method", in ConvertUsage()
415 "-interword-spacing value", in ConvertUsage()
417 "-kerning value set the space between two letters", in ConvertUsage()
418 "-label string assign a label to an image", in ConvertUsage()
419 "-limit type value pixel cache resource limit", in ConvertUsage()
420 "-loop iterations add Netscape loop extension to your GIF animation", in ConvertUsage()
421 "-matte store matte channel if the image has one", in ConvertUsage()
422 "-mattecolor color frame color", in ConvertUsage()
423 "-moments report image moments", in ConvertUsage()
424 "-monitor monitor progress", in ConvertUsage()
425 "-orient type image orientation", in ConvertUsage()
426 "-page geometry size and location of an image canvas (setting)", in ConvertUsage()
427 "-ping efficiently determine image attributes", in ConvertUsage()
428 "-pointsize value font point size", in ConvertUsage()
429 "-precision value maximum number of significant digits to print", in ConvertUsage()
430 "-preview type image preview type", in ConvertUsage()
431 "-quality value JPEG/MIFF/PNG compression level", in ConvertUsage()
432 "-quiet suppress all warning messages", in ConvertUsage()
433 "-read-mask filename associate a read mask with the image", in ConvertUsage()
434 "-red-primary point chromaticity red primary point", in ConvertUsage()
435 "-regard-warnings pay attention to warning messages", in ConvertUsage()
436 "-remap filename transform image colors to match this set of colors", in ConvertUsage()
437 "-repage geometry size and location of an image canvas", in ConvertUsage()
438 "-respect-parentheses settings remain in effect until parenthesis boundary", in ConvertUsage()
439 "-sampling-factor geometry", in ConvertUsage()
441 "-scene value image scene number", in ConvertUsage()
442 "-seed value seed a new sequence of pseudo-random numbers", in ConvertUsage()
443 "-size geometry width and height of image", in ConvertUsage()
444 "-stretch type render text with this font stretch", in ConvertUsage()
445 "-stroke color graphic primitive stroke color", in ConvertUsage()
446 "-strokewidth value graphic primitive stroke width", in ConvertUsage()
447 "-style type render text with this font style", in ConvertUsage()
448 "-support factor resize support: > 1.0 is blurry, < 1.0 is sharp", in ConvertUsage()
449 "-synchronize synchronize image to storage device", in ConvertUsage()
450 "-taint declare the image as modified", in ConvertUsage()
451 "-texture filename name of texture to tile onto the image background", in ConvertUsage()
452 "-tile-offset geometry", in ConvertUsage()
454 "-treedepth value color tree depth", in ConvertUsage()
455 "-transparent-color color", in ConvertUsage()
457 "-undercolor color annotation bounding box color", in ConvertUsage()
458 "-units type the units of image resolution", in ConvertUsage()
459 "-verbose print detailed information about the image", in ConvertUsage()
460 "-view FlashPix viewing transforms", in ConvertUsage()
461 "-virtual-pixel method", in ConvertUsage()
463 "-weight type render text with this font weight", in ConvertUsage()
464 "-white-point point chromaticity white point", in ConvertUsage()
465 "-write-mask filename associate a write mask with the image", in ConvertUsage()
470 "-clone indexes clone an image", in ConvertUsage()
471 "-delete indexes delete the image from the image sequence", in ConvertUsage()
472 "-duplicate count,indexes", in ConvertUsage()
474 "-insert index insert last image into the image sequence", in ConvertUsage()
475 "-reverse reverse image sequence", in ConvertUsage()
476 "-swap indexes swap two images in the image sequence", in ConvertUsage()
512 (void) printf("'-' for standard input or output.\n"); in ConvertUsage()
527 #define ThrowConvertException(asperity,tag,option) \ in ConvertImageCommand() argument
530 option); \ in ConvertImageCommand()
534 #define ThrowConvertInvalidArgumentException(option,argument) \ in ConvertImageCommand() argument
537 "InvalidArgument","'%s': %s",option,argument); \ in ConvertImageCommand()
544 *option; in ConvertImageCommand() local
574 assert(image_info->signature == MagickCoreSignature); in ConvertImageCommand()
575 if (image_info->debug != MagickFalse) in ConvertImageCommand()
580 option=argv[1]; in ConvertImageCommand()
581 if ((LocaleCompare("version",option+1) == 0) || in ConvertImageCommand()
582 (LocaleCompare("-version",option+1) == 0)) in ConvertImageCommand()
595 option=(char *) NULL; in ConvertImageCommand()
600 Parse command-line arguments. in ConvertImageCommand()
607 if ((argc > 2) && (LocaleCompare("-concatenate",argv[1]) == 0)) in ConvertImageCommand()
609 for (i=1; i < (ssize_t) (argc-1); i++) in ConvertImageCommand()
611 option=argv[i]; in ConvertImageCommand()
612 if (LocaleCompare(option,"(") == 0) in ConvertImageCommand()
617 option); in ConvertImageCommand()
621 if (LocaleCompare(option,")") == 0) in ConvertImageCommand()
625 ThrowConvertException(OptionError,"UnableToParseExpression",option); in ConvertImageCommand()
629 if (IsCommandOption(option) == MagickFalse) in ConvertImageCommand()
639 if ((LocaleCompare(filename,"--") == 0) && (i < (ssize_t) (argc-1))) in ConvertImageCommand()
641 if (image_info->ping != MagickFalse) in ConvertImageCommand()
646 (exception->severity < ErrorException); in ConvertImageCommand()
653 switch (*(option+1)) in ConvertImageCommand()
657 if (LocaleCompare("adaptive-blur",option+1) == 0) in ConvertImageCommand()
661 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
663 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
666 if (LocaleCompare("adaptive-resize",option+1) == 0) in ConvertImageCommand()
670 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
672 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
675 if (LocaleCompare("adaptive-sharpen",option+1) == 0) in ConvertImageCommand()
679 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
681 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
684 if (LocaleCompare("adjoin",option+1) == 0) in ConvertImageCommand()
686 if (LocaleCompare("affine",option+1) == 0) in ConvertImageCommand()
688 if (*option == '+') in ConvertImageCommand()
692 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
694 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
697 if (LocaleCompare("alpha",option+1) == 0) in ConvertImageCommand()
702 if (*option == '+') in ConvertImageCommand()
706 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
714 if (LocaleCompare("annotate",option+1) == 0) in ConvertImageCommand()
716 if (*option == '+') in ConvertImageCommand()
720 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
722 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
725 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
728 if (LocaleCompare("antialias",option+1) == 0) in ConvertImageCommand()
730 if (LocaleCompare("append",option+1) == 0) in ConvertImageCommand()
732 if (LocaleCompare("attenuate",option+1) == 0) in ConvertImageCommand()
734 if (*option == '+') in ConvertImageCommand()
738 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
740 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
743 if (LocaleCompare("authenticate",option+1) == 0) in ConvertImageCommand()
745 if (*option == '+') in ConvertImageCommand()
749 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
752 if (LocaleCompare("auto-gamma",option+1) == 0) in ConvertImageCommand()
754 if (LocaleCompare("auto-level",option+1) == 0) in ConvertImageCommand()
756 if (LocaleCompare("auto-orient",option+1) == 0) in ConvertImageCommand()
758 if (LocaleCompare("auto-threshold",option+1) == 0) in ConvertImageCommand()
763 if (*option == '+') in ConvertImageCommand()
767 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
775 if (LocaleCompare("average",option+1) == 0) in ConvertImageCommand()
777 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
781 if (LocaleCompare("background",option+1) == 0) in ConvertImageCommand()
783 if (*option == '+') in ConvertImageCommand()
787 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
790 if (LocaleCompare("bench",option+1) == 0) in ConvertImageCommand()
792 if (*option == '+') in ConvertImageCommand()
796 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
798 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
801 if (LocaleCompare("bias",option+1) == 0) in ConvertImageCommand()
803 if (*option == '+') in ConvertImageCommand()
807 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
809 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
812 if (LocaleCompare("black-point-compensation",option+1) == 0) in ConvertImageCommand()
814 if (LocaleCompare("black-threshold",option+1) == 0) in ConvertImageCommand()
816 if (*option == '+') in ConvertImageCommand()
820 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
822 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
825 if (LocaleCompare("blue-primary",option+1) == 0) in ConvertImageCommand()
827 if (*option == '+') in ConvertImageCommand()
831 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
833 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
836 if (LocaleCompare("blue-shift",option+1) == 0) in ConvertImageCommand()
838 if (*option == '+') in ConvertImageCommand()
842 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
844 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
847 if (LocaleCompare("blur",option+1) == 0) in ConvertImageCommand()
849 if (*option == '+') in ConvertImageCommand()
853 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
855 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
858 if (LocaleCompare("border",option+1) == 0) in ConvertImageCommand()
860 if (*option == '+') in ConvertImageCommand()
864 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
866 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
869 if (LocaleCompare("bordercolor",option+1) == 0) in ConvertImageCommand()
871 if (*option == '+') in ConvertImageCommand()
875 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
878 if (LocaleCompare("box",option+1) == 0) in ConvertImageCommand()
880 if (*option == '+') in ConvertImageCommand()
884 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
887 if (LocaleCompare("brightness-contrast",option+1) == 0) in ConvertImageCommand()
891 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
893 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
896 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
900 if (LocaleCompare("cache",option+1) == 0) in ConvertImageCommand()
902 if (*option == '+') in ConvertImageCommand()
906 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
908 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
911 if (LocaleCompare("canny",option+1) == 0) in ConvertImageCommand()
913 if (*option == '+') in ConvertImageCommand()
917 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
919 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
922 if (LocaleCompare("caption",option+1) == 0) in ConvertImageCommand()
924 if (*option == '+') in ConvertImageCommand()
928 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
931 if (LocaleCompare("cdl",option+1) == 0) in ConvertImageCommand()
933 if (*option == '+') in ConvertImageCommand()
937 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
940 if (LocaleCompare("channel",option+1) == 0) in ConvertImageCommand()
945 if (*option == '+') in ConvertImageCommand()
949 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
956 if (LocaleCompare("channel-fx",option+1) == 0) in ConvertImageCommand()
961 if (*option == '+') in ConvertImageCommand()
965 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
972 if (LocaleCompare("charcoal",option+1) == 0) in ConvertImageCommand()
974 if (*option == '+') in ConvertImageCommand()
978 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
980 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
983 if (LocaleCompare("chop",option+1) == 0) in ConvertImageCommand()
985 if (*option == '+') in ConvertImageCommand()
989 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
991 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
994 if (LocaleCompare("clahe",option+1) == 0) in ConvertImageCommand()
996 if (*option == '+') in ConvertImageCommand()
1000 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1002 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1005 if (LocaleCompare("clamp",option+1) == 0) in ConvertImageCommand()
1007 if (LocaleCompare("clip",option+1) == 0) in ConvertImageCommand()
1009 if (LocaleCompare("clip-mask",option+1) == 0) in ConvertImageCommand()
1011 if (*option == '+') in ConvertImageCommand()
1015 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1018 if (LocaleCompare("clip-path",option+1) == 0) in ConvertImageCommand()
1022 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1025 if (LocaleCompare("clone",option+1) == 0) in ConvertImageCommand()
1033 clone_list=CloneImageList(image_stack[k-1].image,exception); in ConvertImageCommand()
1035 ThrowConvertException(ImageError,"ImageSequenceRequired",option); in ConvertImageCommand()
1037 if (*option == '+') in ConvertImageCommand()
1038 clone_images=CloneImages(clone_list,"-1",exception); in ConvertImageCommand()
1043 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1045 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1049 ThrowConvertException(OptionError,"NoSuchImage",option); in ConvertImageCommand()
1054 if (LocaleCompare("clut",option+1) == 0) in ConvertImageCommand()
1056 if (LocaleCompare("coalesce",option+1) == 0) in ConvertImageCommand()
1058 if (LocaleCompare("colorize",option+1) == 0) in ConvertImageCommand()
1060 if (*option == '+') in ConvertImageCommand()
1064 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1066 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1069 if (LocaleCompare("color-matrix",option+1) == 0) in ConvertImageCommand()
1074 if (*option == '+') in ConvertImageCommand()
1078 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1081 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1085 if (LocaleCompare("colors",option+1) == 0) in ConvertImageCommand()
1087 if (*option == '+') in ConvertImageCommand()
1092 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1095 if (LocaleCompare("colorspace",option+1) == 0) in ConvertImageCommand()
1100 if (*option == '+') in ConvertImageCommand()
1104 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1112 if (LocaleCompare("combine",option+1) == 0) in ConvertImageCommand()
1114 if (LocaleCompare("comment",option+1) == 0) in ConvertImageCommand()
1116 if (*option == '+') in ConvertImageCommand()
1120 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1123 if (LocaleCompare("compare",option+1) == 0) in ConvertImageCommand()
1125 if (LocaleCompare("complex",option+1) == 0) in ConvertImageCommand()
1130 if (*option == '+') in ConvertImageCommand()
1134 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1141 if (LocaleCompare("compose",option+1) == 0) in ConvertImageCommand()
1146 if (*option == '+') in ConvertImageCommand()
1150 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1158 if (LocaleCompare("composite",option+1) == 0) in ConvertImageCommand()
1160 if (LocaleCompare("compress",option+1) == 0) in ConvertImageCommand()
1165 if (*option == '+') in ConvertImageCommand()
1169 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1177 if (LocaleCompare("concurrent",option+1) == 0) in ConvertImageCommand()
1179 if (LocaleCompare("connected-components",option+1) == 0) in ConvertImageCommand()
1183 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1185 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1188 if (LocaleCompare("contrast",option+1) == 0) in ConvertImageCommand()
1190 if (LocaleCompare("contrast-stretch",option+1) == 0) in ConvertImageCommand()
1194 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1196 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1199 if (LocaleCompare("convolve",option+1) == 0) in ConvertImageCommand()
1204 if (*option == '+') in ConvertImageCommand()
1208 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1211 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1215 if (LocaleCompare("copy",option+1) == 0) in ConvertImageCommand()
1217 if (*option == '+') in ConvertImageCommand()
1221 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1223 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1226 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1228 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1231 if (LocaleCompare("crop",option+1) == 0) in ConvertImageCommand()
1233 if (*option == '+') in ConvertImageCommand()
1237 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1239 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1242 if (LocaleCompare("cycle",option+1) == 0) in ConvertImageCommand()
1244 if (*option == '+') in ConvertImageCommand()
1248 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1250 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1253 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1257 if (LocaleCompare("decipher",option+1) == 0) in ConvertImageCommand()
1259 if (*option == '+') in ConvertImageCommand()
1263 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1266 if (LocaleCompare("deconstruct",option+1) == 0) in ConvertImageCommand()
1268 if (LocaleCompare("debug",option+1) == 0) in ConvertImageCommand()
1273 if (*option == '+') in ConvertImageCommand()
1277 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1285 if (LocaleCompare("define",option+1) == 0) in ConvertImageCommand()
1289 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1290 if (*option == '+') in ConvertImageCommand()
1302 if (LocaleCompare("delay",option+1) == 0) in ConvertImageCommand()
1304 if (*option == '+') in ConvertImageCommand()
1308 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1310 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1313 if (LocaleCompare("density",option+1) == 0) in ConvertImageCommand()
1315 if (*option == '+') in ConvertImageCommand()
1319 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1321 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1324 if (LocaleCompare("depth",option+1) == 0) in ConvertImageCommand()
1326 if (*option == '+') in ConvertImageCommand()
1330 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1332 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1335 if (LocaleCompare("delete",option+1) == 0) in ConvertImageCommand()
1337 if (*option == '+') in ConvertImageCommand()
1341 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1343 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1346 if (LocaleCompare("deskew",option+1) == 0) in ConvertImageCommand()
1348 if (*option == '+') in ConvertImageCommand()
1352 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1354 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1357 if (LocaleCompare("despeckle",option+1) == 0) in ConvertImageCommand()
1359 if (LocaleCompare("direction",option+1) == 0) in ConvertImageCommand()
1364 if (*option == '+') in ConvertImageCommand()
1368 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1376 if (LocaleCompare("display",option+1) == 0) in ConvertImageCommand()
1378 if (*option == '+') in ConvertImageCommand()
1382 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1385 if (LocaleCompare("dispose",option+1) == 0) in ConvertImageCommand()
1390 if (*option == '+') in ConvertImageCommand()
1394 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1401 if (LocaleCompare("distort",option+1) == 0) in ConvertImageCommand()
1408 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1415 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1418 if (LocaleCompare("dither",option+1) == 0) in ConvertImageCommand()
1423 if (*option == '+') in ConvertImageCommand()
1427 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1434 if (LocaleCompare("draw",option+1) == 0) in ConvertImageCommand()
1436 if (*option == '+') in ConvertImageCommand()
1440 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1443 if (LocaleCompare("duplicate",option+1) == 0) in ConvertImageCommand()
1445 if (*option == '+') in ConvertImageCommand()
1449 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1451 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1454 if (LocaleCompare("duration",option+1) == 0) in ConvertImageCommand()
1456 if (*option == '+') in ConvertImageCommand()
1460 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1462 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1465 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1469 if (LocaleCompare("edge",option+1) == 0) in ConvertImageCommand()
1471 if (*option == '+') in ConvertImageCommand()
1475 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1477 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1480 if (LocaleCompare("emboss",option+1) == 0) in ConvertImageCommand()
1482 if (*option == '+') in ConvertImageCommand()
1486 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1488 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1491 if (LocaleCompare("encipher",option+1) == 0) in ConvertImageCommand()
1493 if (*option == '+') in ConvertImageCommand()
1497 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1500 if (LocaleCompare("encoding",option+1) == 0) in ConvertImageCommand()
1502 if (*option == '+') in ConvertImageCommand()
1506 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1509 if (LocaleCompare("endian",option+1) == 0) in ConvertImageCommand()
1514 if (*option == '+') in ConvertImageCommand()
1518 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1526 if (LocaleCompare("enhance",option+1) == 0) in ConvertImageCommand()
1528 if (LocaleCompare("equalize",option+1) == 0) in ConvertImageCommand()
1530 if (LocaleCompare("evaluate",option+1) == 0) in ConvertImageCommand()
1535 if (*option == '+') in ConvertImageCommand()
1539 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1546 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1548 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1551 if (LocaleCompare("evaluate-sequence",option+1) == 0) in ConvertImageCommand()
1556 if (*option == '+') in ConvertImageCommand()
1560 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1567 if (LocaleCompare("extent",option+1) == 0) in ConvertImageCommand()
1569 if (*option == '+') in ConvertImageCommand()
1573 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1575 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1578 if (LocaleCompare("extract",option+1) == 0) in ConvertImageCommand()
1580 if (*option == '+') in ConvertImageCommand()
1584 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1586 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1589 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1593 if (LocaleCompare("family",option+1) == 0) in ConvertImageCommand()
1595 if (*option == '+') in ConvertImageCommand()
1599 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1602 if (LocaleCompare("features",option+1) == 0) in ConvertImageCommand()
1604 if (*option == '+') in ConvertImageCommand()
1608 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1610 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1613 if (LocaleCompare("fft",option+1) == 0) in ConvertImageCommand()
1615 if (LocaleCompare("fill",option+1) == 0) in ConvertImageCommand()
1617 if (*option == '+') in ConvertImageCommand()
1621 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1624 if (LocaleCompare("filter",option+1) == 0) in ConvertImageCommand()
1629 if (*option == '+') in ConvertImageCommand()
1633 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1640 if (LocaleCompare("flatten",option+1) == 0) in ConvertImageCommand()
1642 if (LocaleCompare("flip",option+1) == 0) in ConvertImageCommand()
1644 if (LocaleCompare("flop",option+1) == 0) in ConvertImageCommand()
1646 if (LocaleCompare("floodfill",option+1) == 0) in ConvertImageCommand()
1648 if (*option == '+') in ConvertImageCommand()
1652 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1654 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1657 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1660 if (LocaleCompare("font",option+1) == 0) in ConvertImageCommand()
1662 if (*option == '+') in ConvertImageCommand()
1666 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1669 if (LocaleCompare("format",option+1) == 0) in ConvertImageCommand()
1671 if (*option == '+') in ConvertImageCommand()
1675 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1679 if (LocaleCompare("frame",option+1) == 0) in ConvertImageCommand()
1681 if (*option == '+') in ConvertImageCommand()
1685 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1687 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1690 if (LocaleCompare("function",option+1) == 0) in ConvertImageCommand()
1695 if (*option == '+') in ConvertImageCommand()
1699 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1705 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1708 if (LocaleCompare("fuzz",option+1) == 0) in ConvertImageCommand()
1710 if (*option == '+') in ConvertImageCommand()
1714 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1716 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1719 if (LocaleCompare("fx",option+1) == 0) in ConvertImageCommand()
1721 if (*option == '+') in ConvertImageCommand()
1725 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1728 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1732 if (LocaleCompare("gamma",option+1) == 0) in ConvertImageCommand()
1736 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1738 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1741 if ((LocaleCompare("gaussian-blur",option+1) == 0) || in ConvertImageCommand()
1742 (LocaleCompare("gaussian",option+1) == 0)) in ConvertImageCommand()
1746 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1748 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1751 if (LocaleCompare("geometry",option+1) == 0) in ConvertImageCommand()
1753 if (*option == '+') in ConvertImageCommand()
1757 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1759 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1762 if (LocaleCompare("gravity",option+1) == 0) in ConvertImageCommand()
1767 if (*option == '+') in ConvertImageCommand()
1771 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1779 if (LocaleCompare("grayscale",option+1) == 0) in ConvertImageCommand()
1784 if (*option == '+') in ConvertImageCommand()
1788 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1796 if (LocaleCompare("green-primary",option+1) == 0) in ConvertImageCommand()
1798 if (*option == '+') in ConvertImageCommand()
1802 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1804 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1807 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1811 if (LocaleCompare("hald-clut",option+1) == 0) in ConvertImageCommand()
1813 if ((LocaleCompare("help",option+1) == 0) || in ConvertImageCommand()
1814 (LocaleCompare("-help",option+1) == 0)) in ConvertImageCommand()
1816 if (LocaleCompare("hough-lines",option+1) == 0) in ConvertImageCommand()
1818 if (*option == '+') in ConvertImageCommand()
1822 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1824 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1827 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1831 if (LocaleCompare("identify",option+1) == 0) in ConvertImageCommand()
1833 if (LocaleCompare("ift",option+1) == 0) in ConvertImageCommand()
1835 if (LocaleCompare("implode",option+1) == 0) in ConvertImageCommand()
1837 if (*option == '+') in ConvertImageCommand()
1841 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1843 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1846 if (LocaleCompare("insert",option+1) == 0) in ConvertImageCommand()
1848 if (*option == '+') in ConvertImageCommand()
1852 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1854 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1857 if (LocaleCompare("intensity",option+1) == 0) in ConvertImageCommand()
1862 if (*option == '+') in ConvertImageCommand()
1866 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1874 if (LocaleCompare("intent",option+1) == 0) in ConvertImageCommand()
1879 if (*option == '+') in ConvertImageCommand()
1883 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1889 if (LocaleCompare("interlace",option+1) == 0) in ConvertImageCommand()
1894 if (*option == '+') in ConvertImageCommand()
1898 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1906 if (LocaleCompare("interline-spacing",option+1) == 0) in ConvertImageCommand()
1908 if (*option == '+') in ConvertImageCommand()
1912 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1914 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1917 if (LocaleCompare("interpolate",option+1) == 0) in ConvertImageCommand()
1922 if (*option == '+') in ConvertImageCommand()
1926 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1934 if (LocaleCompare("interword-spacing",option+1) == 0) in ConvertImageCommand()
1936 if (*option == '+') in ConvertImageCommand()
1940 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1942 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1945 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1949 if (LocaleCompare("kerning",option+1) == 0) in ConvertImageCommand()
1951 if (*option == '+') in ConvertImageCommand()
1955 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1957 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1960 if (LocaleCompare("kuwahara",option+1) == 0) in ConvertImageCommand()
1962 if (*option == '+') in ConvertImageCommand()
1966 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1968 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1971 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
1975 if (LocaleCompare("label",option+1) == 0) in ConvertImageCommand()
1977 if (*option == '+') in ConvertImageCommand()
1981 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1984 if (LocaleCompare("lat",option+1) == 0) in ConvertImageCommand()
1986 if (*option == '+') in ConvertImageCommand()
1990 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
1992 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
1995 if (LocaleCompare("layers",option+1) == 0) in ConvertImageCommand()
2000 if (*option == '+') in ConvertImageCommand()
2004 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2011 if (LocaleCompare("level",option+1) == 0) in ConvertImageCommand()
2015 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2017 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2020 if (LocaleCompare("level-colors",option+1) == 0) in ConvertImageCommand()
2024 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2027 if (LocaleCompare("limit",option+1) == 0) in ConvertImageCommand()
2038 if (*option == '+') in ConvertImageCommand()
2042 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2050 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2054 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2057 if (LocaleCompare("linear-stretch",option+1) == 0) in ConvertImageCommand()
2061 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2063 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2066 if (LocaleCompare("liquid-rescale",option+1) == 0) in ConvertImageCommand()
2070 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2072 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2075 if (LocaleCompare("list",option+1) == 0) in ConvertImageCommand()
2080 if (*option == '+') in ConvertImageCommand()
2084 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2088 status=MogrifyImageInfo(image_info,(int) (i-j+1),(const char **) in ConvertImageCommand()
2093 if (LocaleCompare("local-contrast",option+1) == 0) in ConvertImageCommand()
2097 ThrowConvertException(OptionError, "MissingArgument", option); in ConvertImageCommand()
2099 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2102 if (LocaleCompare("log",option+1) == 0) in ConvertImageCommand()
2104 if (*option == '+') in ConvertImageCommand()
2109 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2112 if (LocaleCompare("loop",option+1) == 0) in ConvertImageCommand()
2114 if (*option == '+') in ConvertImageCommand()
2118 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2120 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2123 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
2127 if (LocaleCompare("magnify",option+1) == 0) in ConvertImageCommand()
2129 if (LocaleCompare("map",option+1) == 0) in ConvertImageCommand()
2131 if (*option == '+') in ConvertImageCommand()
2135 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2138 if (LocaleCompare("mask",option+1) == 0) in ConvertImageCommand()
2140 if (*option == '+') in ConvertImageCommand()
2144 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2147 if (LocaleCompare("matte",option+1) == 0) in ConvertImageCommand()
2149 if (LocaleCompare("mattecolor",option+1) == 0) in ConvertImageCommand()
2151 if (*option == '+') in ConvertImageCommand()
2155 ThrowConvertException(OptionError, "MissingArgument", option); in ConvertImageCommand()
2158 if (LocaleCompare("maximum",option+1) == 0) in ConvertImageCommand()
2160 if (LocaleCompare("mean-shift",option+1) == 0) in ConvertImageCommand()
2162 if (*option == '+') in ConvertImageCommand()
2166 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2168 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2171 if (LocaleCompare("median",option+1) == 0) in ConvertImageCommand()
2173 if (*option == '+') in ConvertImageCommand()
2177 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2179 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2182 if (LocaleCompare("metric",option+1) == 0) in ConvertImageCommand()
2187 if (*option == '+') in ConvertImageCommand()
2191 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2198 if (LocaleCompare("minimum",option+1) == 0) in ConvertImageCommand()
2200 if (LocaleCompare("mode",option+1) == 0) in ConvertImageCommand()
2202 if (*option == '+') in ConvertImageCommand()
2206 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2208 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2211 if (LocaleCompare("modulate",option+1) == 0) in ConvertImageCommand()
2213 if (*option == '+') in ConvertImageCommand()
2217 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2219 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2222 if (LocaleCompare("moments",option+1) == 0) in ConvertImageCommand()
2224 if (LocaleCompare("monitor",option+1) == 0) in ConvertImageCommand()
2226 if (LocaleCompare("monochrome",option+1) == 0) in ConvertImageCommand()
2228 if (LocaleCompare("morph",option+1) == 0) in ConvertImageCommand()
2230 if (*option == '+') in ConvertImageCommand()
2234 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2236 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2239 if (LocaleCompare("morphology",option+1) == 0) in ConvertImageCommand()
2252 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2260 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2263 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2267 if (LocaleCompare("mosaic",option+1) == 0) in ConvertImageCommand()
2269 if (LocaleCompare("motion-blur",option+1) == 0) in ConvertImageCommand()
2271 if (*option == '+') in ConvertImageCommand()
2275 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2277 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2280 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
2284 if (LocaleCompare("negate",option+1) == 0) in ConvertImageCommand()
2286 if (LocaleCompare("noise",option+1) == 0) in ConvertImageCommand()
2290 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2291 if (*option == '+') in ConvertImageCommand()
2304 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2307 if (LocaleCompare("noop",option+1) == 0) in ConvertImageCommand()
2309 if (LocaleCompare("normalize",option+1) == 0) in ConvertImageCommand()
2311 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
2315 if (LocaleCompare("opaque",option+1) == 0) in ConvertImageCommand()
2319 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2322 if (LocaleCompare("ordered-dither",option+1) == 0) in ConvertImageCommand()
2324 if (*option == '+') in ConvertImageCommand()
2328 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2331 if (LocaleCompare("orient",option+1) == 0) in ConvertImageCommand()
2336 if (*option == '+') in ConvertImageCommand()
2340 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2352 if (LocaleCompare("page",option+1) == 0) in ConvertImageCommand()
2354 if (*option == '+') in ConvertImageCommand()
2358 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2361 if (LocaleCompare("paint",option+1) == 0) in ConvertImageCommand()
2363 if (*option == '+') in ConvertImageCommand()
2367 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2369 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2372 if (LocaleCompare("perceptible",option+1) == 0) in ConvertImageCommand()
2374 if (*option == '+') in ConvertImageCommand()
2378 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2380 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2383 if (LocaleCompare("ping",option+1) == 0) in ConvertImageCommand()
2385 if (LocaleCompare("pointsize",option+1) == 0) in ConvertImageCommand()
2387 if (*option == '+') in ConvertImageCommand()
2391 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2393 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2396 if (LocaleCompare("polaroid",option+1) == 0) in ConvertImageCommand()
2398 if (*option == '+') in ConvertImageCommand()
2402 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2404 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2407 if (LocaleCompare("poly",option+1) == 0) in ConvertImageCommand()
2409 if (*option == '+') in ConvertImageCommand()
2413 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2415 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2418 if (LocaleCompare("posterize",option+1) == 0) in ConvertImageCommand()
2420 if (*option == '+') in ConvertImageCommand()
2424 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2426 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2429 if (LocaleCompare("precision",option+1) == 0) in ConvertImageCommand()
2431 if (*option == '+') in ConvertImageCommand()
2435 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2437 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2440 if (LocaleCompare("preview",option+1) == 0) in ConvertImageCommand()
2445 if (*option == '+') in ConvertImageCommand()
2449 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2457 if (LocaleCompare("print",option+1) == 0) in ConvertImageCommand()
2459 if (*option == '+') in ConvertImageCommand()
2463 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2466 if (LocaleCompare("process",option+1) == 0) in ConvertImageCommand()
2468 if (*option == '+') in ConvertImageCommand()
2472 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2475 if (LocaleCompare("profile",option+1) == 0) in ConvertImageCommand()
2479 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2482 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
2486 if (LocaleCompare("quality",option+1) == 0) in ConvertImageCommand()
2488 if (*option == '+') in ConvertImageCommand()
2492 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2494 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2497 if (LocaleCompare("quantize",option+1) == 0) in ConvertImageCommand()
2502 if (*option == '+') in ConvertImageCommand()
2506 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2514 if (LocaleCompare("quiet",option+1) == 0) in ConvertImageCommand()
2516 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
2520 if (LocaleCompare("rotational-blur",option+1) == 0) in ConvertImageCommand()
2524 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2526 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2529 if (LocaleCompare("raise",option+1) == 0) in ConvertImageCommand()
2533 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2535 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2538 if (LocaleCompare("random-threshold",option+1) == 0) in ConvertImageCommand()
2540 if (*option == '+') in ConvertImageCommand()
2544 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2546 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2549 if (LocaleCompare("range-threshold",option+1) == 0) in ConvertImageCommand()
2551 if (*option == '+') in ConvertImageCommand()
2555 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2557 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2560 if (LocaleCompare("read-mask",option+1) == 0) in ConvertImageCommand()
2562 if (*option == '+') in ConvertImageCommand()
2566 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2569 if (LocaleCompare("red-primary",option+1) == 0) in ConvertImageCommand()
2571 if (*option == '+') in ConvertImageCommand()
2575 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2577 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2580 if (LocaleCompare("regard-warnings",option+1) == 0) in ConvertImageCommand()
2582 if (LocaleCompare("region",option+1) == 0) in ConvertImageCommand()
2584 if (*option == '+') in ConvertImageCommand()
2588 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2590 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2593 if (LocaleCompare("remap",option+1) == 0) in ConvertImageCommand()
2595 if (*option == '+') in ConvertImageCommand()
2599 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2602 if (LocaleCompare("render",option+1) == 0) in ConvertImageCommand()
2604 if (LocaleCompare("repage",option+1) == 0) in ConvertImageCommand()
2606 if (*option == '+') in ConvertImageCommand()
2610 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2612 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2615 if (LocaleCompare("resample",option+1) == 0) in ConvertImageCommand()
2617 if (*option == '+') in ConvertImageCommand()
2621 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2623 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2626 if (LocaleCompare("resize",option+1) == 0) in ConvertImageCommand()
2628 if (*option == '+') in ConvertImageCommand()
2632 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2634 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2637 if (LocaleNCompare("respect-parentheses",option+1,17) == 0) in ConvertImageCommand()
2639 respect_parenthesis=(*option == '-') ? MagickTrue : MagickFalse; in ConvertImageCommand()
2642 if (LocaleCompare("reverse",option+1) == 0) in ConvertImageCommand()
2644 if (LocaleCompare("roll",option+1) == 0) in ConvertImageCommand()
2646 if (*option == '+') in ConvertImageCommand()
2650 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2652 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2655 if (LocaleCompare("rotate",option+1) == 0) in ConvertImageCommand()
2659 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2661 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2664 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
2668 if (LocaleCompare("sample",option+1) == 0) in ConvertImageCommand()
2670 if (*option == '+') in ConvertImageCommand()
2674 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2676 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2679 if (LocaleCompare("sampling-factor",option+1) == 0) in ConvertImageCommand()
2681 if (*option == '+') in ConvertImageCommand()
2685 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2687 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2690 if (LocaleCompare("scale",option+1) == 0) in ConvertImageCommand()
2692 if (*option == '+') in ConvertImageCommand()
2696 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2698 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2701 if (LocaleCompare("scene",option+1) == 0) in ConvertImageCommand()
2703 if (*option == '+') in ConvertImageCommand()
2707 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2709 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2712 if (LocaleCompare("seed",option+1) == 0) in ConvertImageCommand()
2714 if (*option == '+') in ConvertImageCommand()
2718 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2720 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2723 if (LocaleCompare("segment",option+1) == 0) in ConvertImageCommand()
2725 if (*option == '+') in ConvertImageCommand()
2729 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2731 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2734 if (LocaleCompare("selective-blur",option+1) == 0) in ConvertImageCommand()
2738 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2740 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2743 if (LocaleCompare("separate",option+1) == 0) in ConvertImageCommand()
2745 if (LocaleCompare("sepia-tone",option+1) == 0) in ConvertImageCommand()
2747 if (*option == '+') in ConvertImageCommand()
2751 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2753 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2756 if (LocaleCompare("set",option+1) == 0) in ConvertImageCommand()
2760 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2761 if (*option == '+') in ConvertImageCommand()
2765 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2768 if (LocaleCompare("shade",option+1) == 0) in ConvertImageCommand()
2772 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2774 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2777 if (LocaleCompare("shadow",option+1) == 0) in ConvertImageCommand()
2779 if (*option == '+') in ConvertImageCommand()
2783 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2785 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2788 if (LocaleCompare("sharpen",option+1) == 0) in ConvertImageCommand()
2792 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2794 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2797 if (LocaleCompare("shave",option+1) == 0) in ConvertImageCommand()
2799 if (*option == '+') in ConvertImageCommand()
2803 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2805 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2808 if (LocaleCompare("shear",option+1) == 0) in ConvertImageCommand()
2812 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2814 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2817 if (LocaleCompare("sigmoidal-contrast",option+1) == 0) in ConvertImageCommand()
2821 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2823 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2826 if (LocaleCompare("size",option+1) == 0) in ConvertImageCommand()
2828 if (*option == '+') in ConvertImageCommand()
2832 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2834 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2837 if (LocaleCompare("sketch",option+1) == 0) in ConvertImageCommand()
2839 if (*option == '+') in ConvertImageCommand()
2843 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2845 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2848 if (LocaleCompare("smush",option+1) == 0) in ConvertImageCommand()
2852 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2854 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2857 if (LocaleCompare("solarize",option+1) == 0) in ConvertImageCommand()
2859 if (*option == '+') in ConvertImageCommand()
2863 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2865 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2868 if (LocaleCompare("sparse-color",option+1) == 0) in ConvertImageCommand()
2875 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2882 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2885 if (LocaleCompare("splice",option+1) == 0) in ConvertImageCommand()
2887 if (*option == '+') in ConvertImageCommand()
2891 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2893 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2896 if (LocaleCompare("spread",option+1) == 0) in ConvertImageCommand()
2898 if (*option == '+') in ConvertImageCommand()
2903 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2906 if (LocaleCompare("statistic",option+1) == 0) in ConvertImageCommand()
2911 if (*option == '+') in ConvertImageCommand()
2915 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2922 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2924 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2927 if (LocaleCompare("stretch",option+1) == 0) in ConvertImageCommand()
2932 if (*option == '+') in ConvertImageCommand()
2936 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2944 if (LocaleCompare("strip",option+1) == 0) in ConvertImageCommand()
2946 if (LocaleCompare("stroke",option+1) == 0) in ConvertImageCommand()
2948 if (*option == '+') in ConvertImageCommand()
2952 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2955 if (LocaleCompare("strokewidth",option+1) == 0) in ConvertImageCommand()
2957 if (*option == '+') in ConvertImageCommand()
2961 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2963 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2966 if (LocaleCompare("style",option+1) == 0) in ConvertImageCommand()
2971 if (*option == '+') in ConvertImageCommand()
2975 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2982 if (LocaleCompare("support",option+1) == 0) in ConvertImageCommand()
2987 if (LocaleCompare("swap",option+1) == 0) in ConvertImageCommand()
2989 if (*option == '+') in ConvertImageCommand()
2993 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
2995 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
2998 if (LocaleCompare("swirl",option+1) == 0) in ConvertImageCommand()
3000 if (*option == '+') in ConvertImageCommand()
3004 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3006 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3009 if (LocaleCompare("synchronize",option+1) == 0) in ConvertImageCommand()
3011 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
3015 if (LocaleCompare("taint",option+1) == 0) in ConvertImageCommand()
3017 if (LocaleCompare("texture",option+1) == 0) in ConvertImageCommand()
3019 if (*option == '+') in ConvertImageCommand()
3023 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3026 if (LocaleCompare("threshold",option+1) == 0) in ConvertImageCommand()
3028 if (*option == '+') in ConvertImageCommand()
3032 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3034 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3037 if (LocaleCompare("thumbnail",option+1) == 0) in ConvertImageCommand()
3039 if (*option == '+') in ConvertImageCommand()
3043 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3045 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3048 if (LocaleCompare("tile",option+1) == 0) in ConvertImageCommand()
3050 if (*option == '+') in ConvertImageCommand()
3054 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3057 if (LocaleCompare("tile-offset",option+1) == 0) in ConvertImageCommand()
3059 if (*option == '+') in ConvertImageCommand()
3063 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3065 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3068 if (LocaleCompare("tint",option+1) == 0) in ConvertImageCommand()
3070 if (*option == '+') in ConvertImageCommand()
3074 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3076 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3079 if (LocaleCompare("transform",option+1) == 0) in ConvertImageCommand()
3081 if (LocaleCompare("transparent",option+1) == 0) in ConvertImageCommand()
3085 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3088 if (LocaleCompare("transparent-color",option+1) == 0) in ConvertImageCommand()
3090 if (*option == '+') in ConvertImageCommand()
3094 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3097 if (LocaleCompare("transpose",option+1) == 0) in ConvertImageCommand()
3099 if (LocaleCompare("transverse",option+1) == 0) in ConvertImageCommand()
3101 if (LocaleCompare("treedepth",option+1) == 0) in ConvertImageCommand()
3103 if (*option == '+') in ConvertImageCommand()
3107 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3109 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3112 if (LocaleCompare("trim",option+1) == 0) in ConvertImageCommand()
3114 if (LocaleCompare("type",option+1) == 0) in ConvertImageCommand()
3119 if (*option == '+') in ConvertImageCommand()
3123 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3130 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
3134 if (LocaleCompare("undercolor",option+1) == 0) in ConvertImageCommand()
3136 if (*option == '+') in ConvertImageCommand()
3140 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3143 if (LocaleCompare("unique-colors",option+1) == 0) in ConvertImageCommand()
3145 if (LocaleCompare("units",option+1) == 0) in ConvertImageCommand()
3150 if (*option == '+') in ConvertImageCommand()
3154 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3162 if (LocaleCompare("unsharp",option+1) == 0) in ConvertImageCommand()
3164 if (*option == '+') in ConvertImageCommand()
3168 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3170 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3173 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
3177 if (LocaleCompare("verbose",option+1) == 0) in ConvertImageCommand()
3179 if ((LocaleCompare("version",option+1) == 0) || in ConvertImageCommand()
3180 (LocaleCompare("-version",option+1) == 0)) in ConvertImageCommand()
3185 if (LocaleCompare("vignette",option+1) == 0) in ConvertImageCommand()
3187 if (*option == '+') in ConvertImageCommand()
3191 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3193 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3196 if (LocaleCompare("virtual-pixel",option+1) == 0) in ConvertImageCommand()
3201 if (*option == '+') in ConvertImageCommand()
3205 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3213 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
3217 if (LocaleCompare("wave",option+1) == 0) in ConvertImageCommand()
3221 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3223 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3226 if (LocaleCompare("wavelet-denoise",option+1) == 0) in ConvertImageCommand()
3230 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3232 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3235 if (LocaleCompare("weight",option+1) == 0) in ConvertImageCommand()
3237 if (*option == '+') in ConvertImageCommand()
3241 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3244 if (LocaleCompare("white-point",option+1) == 0) in ConvertImageCommand()
3246 if (*option == '+') in ConvertImageCommand()
3250 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3252 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3255 if (LocaleCompare("white-threshold",option+1) == 0) in ConvertImageCommand()
3257 if (*option == '+') in ConvertImageCommand()
3261 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3263 ThrowConvertInvalidArgumentException(option,argv[i]); in ConvertImageCommand()
3266 if (LocaleCompare("write",option+1) == 0) in ConvertImageCommand()
3270 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3273 if (LocaleCompare("write-mask",option+1) == 0) in ConvertImageCommand()
3275 if (*option == '+') in ConvertImageCommand()
3279 ThrowConvertException(OptionError,"MissingArgument",option); in ConvertImageCommand()
3282 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
3287 ThrowConvertException(OptionError,"UnrecognizedOption",option) in ConvertImageCommand()
3289 fire=(GetCommandOptionFlags(MagickCommandOptions,MagickFalse,option) & in ConvertImageCommand()
3296 if (i-- != (ssize_t) (argc-1)) in ConvertImageCommand()
3297 ThrowConvertException(OptionError,"MissingAnImageFilename",argv[argc-1]); in ConvertImageCommand()
3300 ThrowConvertException(OptionError,"NoImagesDefined",argv[argc-1]); in ConvertImageCommand()
3301 if (IsCommandOption(argv[argc-1])) in ConvertImageCommand()
3302 ThrowConvertException(OptionError,"MissingAnImageFilename",argv[argc-1]); in ConvertImageCommand()
3303 if (LocaleCompare(" ",argv[argc-1])==0) /* common line continuation error */ in ConvertImageCommand()
3304 ThrowConvertException(OptionError,"MissingAnImageFilename",argv[argc-1]); in ConvertImageCommand()
3305 status&=WriteImages(image_info,image,argv[argc-1],exception); in ConvertImageCommand()