]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 7 Jan 2014 15:28:15 +0000 (15:28 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 7 Jan 2014 15:28:15 +0000 (15:28 +0000)
MagickWand/identify.c

index 1d53822a39b21c1b446f548462e37916ce5ae2d8..4d22427bc47fb8788479e3e4a8dbfebfb719de72 100644 (file)
@@ -761,6 +761,14 @@ WandExport MagickBooleanType IdentifyImageCommand(ImageInfo *image_info,
           }
         if (LocaleCompare("matte",option+1) == 0)
           break;
+        if (LocaleCompare("moments",option+1) == 0)
+          {
+            if (*option == '+')
+              break;
+            if (IsGeometry(argv[i]) == MagickFalse)
+              ThrowIdentifyInvalidArgumentException(option,argv[i]);
+            break;
+          }
         if (LocaleCompare("monitor",option+1) == 0)
           break;
         ThrowIdentifyException(OptionError,"UnrecognizedOption",option)