]> granicus.if.org Git - imagemagick/blobdiff - wand/identify.c
(no commit message)
[imagemagick] / wand / identify.c
index 35bc511bf2522209baa00c9862e15805028ae080..e3fab2a727d86c995ade0aa93c574f0088eab86e 100644 (file)
@@ -119,10 +119,10 @@ static MagickBooleanType IdentifyUsage(void)
       "-density geometry    horizontal and vertical density of the image",
       "-depth value         image depth",
       "-extract geometry    extract area from image",
-      "-features            display image features (e.g. contrast, correlation)",
+      "-features value      display image features (e.g. contrast, correlation)",
       "-format \"string\"     output formatted image characteristics",
       "-fuzz distance       colors within this distance are considered equal",
-      "-gamma value         level of gamma correction",
+      "-gamma value         of gamma correction",
       "-interlace type      type of image interlacing scheme",
       "-interpolate method  pixel color interpolation method",
       "-limit type value    pixel cache resource limit",
@@ -511,7 +511,16 @@ WandExport MagickBooleanType IdentifyImageCommand(ImageInfo *image_info,
       case 'f':
       {
         if (LocaleCompare("features",option+1) == 0)
-          break;
+          {
+            if (*option == '+')
+              break;
+            i++;
+            if (i == (long) (argc-1))
+              ThrowIdentifyException(OptionError,"MissingArgument",option);
+            if (IsGeometry(argv[i]) == MagickFalse)
+              ThrowIdentifyInvalidArgumentException(option,argv[i]);
+            break;
+          }
         if (LocaleCompare("format",option+1) == 0)
           {
             format=(char *) NULL;