]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 19 Mar 2014 10:11:11 +0000 (10:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 19 Mar 2014 10:11:11 +0000 (10:11 +0000)
PerlMagick/MANIFEST
PerlMagick/Magick.xs

index 6838930d7e680e380d050dee479bd0e8afc36bf7..5baee4e1ea3a5a8420c2cecd736358cf9f0c03a0 100644 (file)
@@ -129,7 +129,6 @@ t/mpeg/input.mpg
 t/mpeg/read.t
 t/openjp2/input.jp2
 t/openjp2/input.jpc
-t/openjp2/input.pgx
 t/openjp2/read.t
 t/ping.t
 t/png/input_16.png
@@ -273,9 +272,6 @@ t/reference/jng/write_jdaa.miff
 t/reference/jng/write_prog_idat.miff
 t/reference/jng/write_prog_jdaa.miff
 t/reference/jng/write_prog.miff
-t/reference/jp2/read_jp2.miff
-t/reference/jp2/read_jpc.miff
-t/reference/jp2/read_pgx.miff
 t/reference/jpeg/read_non_interlaced.miff
 t/reference/jpeg/read_plane_interlaced.miff
 t/reference/jpeg/write_non_interlaced.miff
@@ -457,9 +453,6 @@ t/reference/write/jng/write_jdaa.miff
 t/reference/write/jng/write_prog_idat.miff
 t/reference/write/jng/write_prog_jdaa.miff
 t/reference/write/jng/write_prog.miff
-t/reference/write/jp2/read_jp2.miff
-t/reference/write/jp2/read_jpc.miff
-t/reference/write/jp2/read_pgx.miff
 t/reference/write/jpeg/read_non_interlaced.miff
 t/reference/write/jpeg/read_plane_interlaced.miff
 t/reference/write/jpeg/write_non_interlaced.miff
index 1d73b70dbc9759d712c148e38cc4a10298ada378..eafede76672313b1af26beee34750ce32a4ceeb3 100644 (file)
@@ -9220,23 +9220,20 @@ Mogrify(ref,...)
             quantize_info->colorspace=(ColorspaceType)
               argument_list[2].integer_reference;
           if (attribute_flag[3] != 0)
-            quantize_info->dither_method=(DitherMethod)
-              argument_list[3].integer_reference;
+            quantize_info->dither=argument_list[3].integer_reference != 0 ?
+              MagickTrue : MagickFalse;
           if (attribute_flag[4] != 0)
-            quantize_info->measure_error=argument_list[4].integer_reference !=
-              0 ? MagickTrue : MagickFalse;
-          if (attribute_flag[5] != 0)
-            (void) QueryColorCompliance(argument_list[5].string_reference,
-              AllCompliance,&image->transparent_color,exception);
-          if (attribute_flag[5] && argument_list[5].integer_reference)
-            {
-              (void) QuantizeImages(quantize_info,image,exception);
-              goto PerlException;
-            }
+            quantize_info->measure_error=
+              argument_list[4].integer_reference != 0 ? MagickTrue : MagickFalse;
           if (attribute_flag[6] != 0)
+            (void) QueryColorDatabase(argument_list[6].string_reference,
+              &image->transparent_color,exception);
+          if (attribute_flag[7] != 0)
             quantize_info->dither_method=(DitherMethod)
-              argument_list[6].integer_reference;
-          if ((image->storage_class == DirectClass) ||
+              argument_list[7].integer_reference;
+          if (attribute_flag[5] && argument_list[5].integer_reference)
+              (void) QuantizeImages(quantize_info,image,exception);
+          else if ((image->storage_class == DirectClass) ||
               (image->colors > quantize_info->number_colors) ||
               (quantize_info->colorspace == GRAYColorspace))
             (void) QuantizeImage(quantize_info,image,exception);