• Home
  • Raw
  • Download

Lines Matching refs:option

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
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()
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()
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()
1035 ThrowConvertException(ImageError,"ImageSequenceRequired",option); in ConvertImageCommand()
1037 if (*option == '+') 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()
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()