diff --git a/lib/modules/_Image.pmod/module.pmod b/lib/modules/_Image.pmod/module.pmod index b01862155dedff5feba4afa515aa4cf03a6ae388..0134bcd47cf8b9b1be2d8716798f079c2f53e9c4 100644 --- a/lib/modules/_Image.pmod/module.pmod +++ b/lib/modules/_Image.pmod/module.pmod @@ -1,5 +1,5 @@ //! module Image -//! $Id: module.pmod,v 1.8 2000/03/22 18:12:19 peter Exp $ +//! $Id: module.pmod,v 1.9 2000/09/12 16:41:05 jonasw Exp $ //! method object(Image.Image) load() //! method object(Image.Image) load(object file) @@ -32,6 +32,7 @@ mapping _decode( string data, mixed|void tocolor ) tocolor = 0; } // Use the low-level decode function to get the alpha channel. +#if constant(Image.GIF) && constant(Image.GIF.RENDER) catch { array chunks = Image["GIF"]->_decode( data ); @@ -44,6 +45,7 @@ mapping _decode( string data, mixed|void tocolor ) [i,a] = chunk[3..4]; format = "GIF"; }; +#endif if(!i) foreach( ({ "GIF", "JPEG", "XWD", "PNM", "RAS" }), string fmt )