]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 12 Sep 2012 11:34:39 +0000 (11:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 12 Sep 2012 11:34:39 +0000 (11:34 +0000)
MagickWand/identify.c
utilities/identify.1.in

index 0f5f3f43197fb31455eda015f81bf52810362a4f..435ee5a4cc6c6e89d78bfeee979da7d2d0946509 100644 (file)
@@ -124,6 +124,7 @@ static MagickBooleanType IdentifyUsage(void)
       "                     define one or more image format options",
       "-density geometry    horizontal and vertical density of the image",
       "-depth value         image depth",
+      "-endian type         endianness (MSB or LSB) of the image",
       "-extract geometry    extract area from image",
       "-features distance   analyze image features (e.g. contrast, correlation)",
       "-format \"string\"     output formatted image characteristics",
@@ -520,6 +521,27 @@ WandExport MagickBooleanType IdentifyImageCommand(ImageInfo *image_info,
           }
         ThrowIdentifyException(OptionError,"UnrecognizedOption",option)
       }
+      case '3':
+      {
+        if (LocaleCompare("endian",option+1) == 0)
+          {
+            ssize_t
+              endian;
+
+            if (*option == '+')
+              break;
+            i++;
+            if (i == (ssize_t) (argc-1))
+              ThrowIdentifyException(OptionError,"MissingArgument",option);
+            endian=ParseCommandOption(MagickEndianOptions,MagickFalse,
+              argv[i]);
+            if (endian < 0)
+              ThrowIdentifyException(OptionError,"UnrecognizedEndianType",
+                argv[i]);
+            break;
+          }
+        ThrowIdentifyException(OptionError,"UnrecognizedOption",option)
+      }
       case 'f':
       {
         if (LocaleCompare("features",option+1) == 0)
index 1f8d3c3e01e82cfb54732fdf529499705f741f97..32a2485d2ba1cc77f07fe7b04e0a886387c5b40d 100644 (file)
@@ -19,6 +19,7 @@ Image Settings:
   \-define unique=true  return the number of unique colors in the image
   \-density geometry    horizontal and vertical density of the image
   \-depth value         image depth
+  \-endian type         endianness (MSB or LSB) of the image
   \-extract geometry    extract area from image
   \-features distance   analyze image features (e.g. contrast, correlation)
   \-format "string"     output formatted image characteristics