]> granicus.if.org Git - imagemagick/commitdiff
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=28244
authorCristy <urban-warrior@imagemagick.org>
Tue, 25 Aug 2015 22:31:02 +0000 (18:31 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 25 Aug 2015 22:31:02 +0000 (18:31 -0400)
coders/jp2.c

index 8cccc1aa78ecb2d2e35852d262674779934f94f9..8629497f50aaffb3e0e6bd5053ce63d963b1bc43 100644 (file)
@@ -813,7 +813,7 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image,
   parameters.tcp_numlayers=1;
   parameters.tcp_rates[0]=0;  /* lossless */
   parameters.cp_disto_alloc=1;
-  if (image_info->quality != 0)
+  if ((image_info->quality != 0) && (image_info->quality != 100))
     {
       parameters.tcp_distoratio[0]=(double) image_info->quality;
       parameters.cp_fixed_quality=OPJ_TRUE;