]> granicus.if.org Git - imagemagick/commitdiff
Warn about using old libpng-1.4.0 beta versions.
authorglennrp <glennrp@git.imagemagick.org>
Tue, 10 Nov 2009 20:40:41 +0000 (20:40 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Tue, 10 Nov 2009 20:40:41 +0000 (20:40 +0000)
ChangeLog
coders/png.c

index 5a4a9744637501e07dea873024520b38f32fbf0e..3724fded582e80ac6959b2a4ff81fdb2069538ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-11-09  6.5.7-7 Glenn Randers-Pehrson <glennrp@image...>
-  * Suppress libpng pedantic warnings.
+  * Suppress libpng pedantic warnings and warn about using old libpng-1.4.0
+    beta versions.
 
 2009-11-09  6.5.7-7 Cristy  <quetzlzacatenango@image...>
   * Bump library age.
index f0c1e1a475895ef57874ead9f179c50ec3247d36..5736195190b9cc446bb03c3ef747a648e476b8d3 100644 (file)
@@ -1734,6 +1734,18 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
        PNG_LIBPNG_VER_STRING);
 #endif
 
+#if (PNG_LIBPNG_VER >= 10400)
+#  ifndef  PNG_TRANSFORM_GRAY_TO_RGB    /* Added at libpng-1.4.0beta67 */
+  if (image_info->verbose)
+    {
+      printf("Your PNG library (libpng-%s) is an old beta version.\n",
+           PNG_LIBPNG_VER_STRING);
+      printf("Please update it.\n");
+    }
+#  endif
+#endif
+
+
   quantum_info = (QuantumInfo *) NULL;
   image=mng_info->image;