From: cristy Date: Wed, 12 Sep 2012 11:34:39 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=605e80d8c89290e0b3119577f7c1cc115ba530d3;p=imagemagick --- diff --git a/MagickWand/identify.c b/MagickWand/identify.c index 0f5f3f431..435ee5a4c 100644 --- a/MagickWand/identify.c +++ b/MagickWand/identify.c @@ -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) diff --git a/utilities/identify.1.in b/utilities/identify.1.in index 1f8d3c3e0..32a2485d2 100644 --- a/utilities/identify.1.in +++ b/utilities/identify.1.in @@ -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