From: glennrp Date: Tue, 10 Aug 2010 13:34:52 +0000 (+0000) Subject: Warn if PNG colortype and bitdepth on "-define" directive can't be met encoder. X-Git-Tag: 7.0.1-0~9060 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bd2e411d0f07c705a40c2c73ce7eda3f1f03e0c;p=imagemagick Warn if PNG colortype and bitdepth on "-define" directive can't be met encoder. --- diff --git a/ChangeLog b/ChangeLog index 40c2005da..80cbfefca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-08-10 6.6.3-5 Glenn Randers-Pehrson + * Emit a warning if the PNG encoder can't satisfy the color type and + bit depth requested with a "-define" directive. + 2010-08-07 6.6.3-4 Cristy * The orient option sometimes improperly set "undefined" (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=16795). diff --git a/coders/png.c b/coders/png.c index 6ca8fb2ab..7e8be2c0a 100644 --- a/coders/png.c +++ b/coders/png.c @@ -7639,7 +7639,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, ping_color_type); } } - if (0) png_error(ping, + png_warning(ping, "Cannot write image with defined PNG:bit-depth or PNG:color-type."); }