]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 28 Mar 2013 16:52:59 +0000 (16:52 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 28 Mar 2013 16:52:59 +0000 (16:52 +0000)
MagickCore/version.h
MagickWand/convert.c
MagickWand/mogrify.c
PerlMagick/quantum/quantum.xs.in

index 76dcd8fd5ee8e3f50dee385f4529fff2d74aba80..47474751d853c731d61c96537af7f8b377d3c341 100644 (file)
@@ -34,7 +34,7 @@ extern "C" {
 #define MagickLibAddendum  "-0"
 #define MagickLibInterface  1
 #define MagickLibMinInterface  1
-#define MagickReleaseDate  "2013-03-25"
+#define MagickReleaseDate  "2013-03-28"
 #define MagickChangeDate   "20121005"
 #define MagickAuthoritativeURL  "http://www.imagemagick.org"
 #define MagickFeatures "DPC HDRI OpenMP"
index 8e900c1de471df179fa7dc2389ed3930e560291e..9eeaab3e827e0ba23dc4d4b7da14a77756fd6419 100644 (file)
@@ -216,6 +216,7 @@ static MagickBooleanType ConvertUsage(void)
       "-gaussian-blur geometry",
       "                     reduce image noise and reduce detail levels",
       "-geometry geometry   preferred size or location of the image",
+      "-grayscale method    convert image to grayscale",
       "-identify            identify the format and characteristics of the image",
       "-ift                 implements the inverse discrete Fourier transform (DFT)",
       "-implode amount      implode image pixels about the center",
@@ -1659,6 +1660,23 @@ WandExport MagickBooleanType ConvertImageCommand(ImageInfo *image_info,
                 argv[i]);
             break;
           }
+        if (LocaleCompare("grayscale",option+1) == 0)
+          {
+            ssize_t
+              method;
+
+            if (*option == '+')
+              break;
+            i++;
+            if (i == (ssize_t) (argc-1))
+              ThrowConvertException(OptionError,"MissingArgument",option);
+            method=ParseCommandOption(MagickPixelIntensityOptions,MagickFalse,
+              argv[i]);
+            if (method < 0)
+              ThrowConvertException(OptionError,"UnrecognizedIntensityMethod",
+                argv[i]);
+            break;
+          }
         if (LocaleCompare("green-primary",option+1) == 0)
           {
             if (*option == '+')
index d9067a0497c83e9f84561b17551c8b4ade7c01a7..9692d2da6b60e45ef0f4009bf2aa718aa0d27727 100644 (file)
@@ -3305,6 +3305,7 @@ static MagickBooleanType MogrifyUsage(void)
       "-gaussian-blur geometry",
       "                     reduce image noise and reduce detail levels",
       "-geometry geometry   preferred size or location of the image",
+      "-grayscale method    convert image to grayscale",
       "-identify            identify the format and characteristics of the image",
       "-ift                 implements the inverse discrete Fourier transform (DFT)",
       "-implode amount      implode image pixels about the center",
@@ -4755,16 +4756,16 @@ WandExport MagickBooleanType MogrifyImageCommand(ImageInfo *image_info,
         if (LocaleCompare("grayscale",option+1) == 0)
           {
             ssize_t
-              type;
+              method;
 
             if (*option == '+')
               break;
             i++;
             if (i == (ssize_t) (argc-1))
               ThrowMogrifyException(OptionError,"MissingArgument",option);
-            type=ParseCommandOption(MagickPixelIntensityOptions,MagickFalse,
+            method=ParseCommandOption(MagickPixelIntensityOptions,MagickFalse,
               argv[i]);
-            if (type < 0)
+            if (method < 0)
               ThrowMogrifyException(OptionError,"UnrecognizedIntensityMethod",
                 argv[i]);
             break;
index 2b76eb531acd1b05b81c478acea3fd172261ae6d..7e3d6a7cc7665660f7bc510aa9d98c43c557ade7 100644 (file)
@@ -541,7 +541,7 @@ static struct
     { "Perceptible", { {"epsilon", RealReference},
       {"channel", MagickChannelOptions} } },
     { "Poly", { {"terms", ArrayReference},
-      {"channel", MagickChannelOptions} } }
+      {"channel", MagickChannelOptions} } },
     { "Grayscale", { {"method", MagickNoiseOptions} } },
   };