diff src/DLD-FUNCTIONS/__magick_read__.cc @ 11036:169f59f626d3

Add check for QuantumDepth at initialization of *Magick and an associated warning
author John Swensen <jpswensen@gmail.com>
date Tue, 28 Sep 2010 17:24:49 -0400
parents 8a6b7947f618
children a2c3c43af79e
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__magick_read__.cc	Tue Sep 28 17:24:24 2010 -0400
+++ b/src/DLD-FUNCTIONS/__magick_read__.cc	Tue Sep 28 17:24:49 2010 -0400
@@ -391,6 +391,10 @@
       // Restore locale from before GraphicsMagick initialisation
       setlocale (LC_ALL, locale.c_str ());
 
+      if (QuantumDepth < 32)
+        warning ("your version of %s limits images to %d bits per pixel",
+                 MagickPackageName, QuantumDepth);
+
       initialized = true;
     }
 #endif