Skip to content
Snippets Groups Projects
Commit d51f0db6 authored by Jonas Wallden's avatar Jonas Wallden
Browse files

Now compiles without GIF support.

Rev: lib/modules/_Image.pmod/module.pmod:1.9
parent 09667e12
No related branches found
No related tags found
No related merge requests found
//! module Image //! 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()
//! method object(Image.Image) load(object file) //! method object(Image.Image) load(object file)
...@@ -32,6 +32,7 @@ mapping _decode( string data, mixed|void tocolor ) ...@@ -32,6 +32,7 @@ mapping _decode( string data, mixed|void tocolor )
tocolor = 0; tocolor = 0;
} }
// Use the low-level decode function to get the alpha channel. // Use the low-level decode function to get the alpha channel.
#if constant(Image.GIF) && constant(Image.GIF.RENDER)
catch catch
{ {
array chunks = Image["GIF"]->_decode( data ); array chunks = Image["GIF"]->_decode( data );
...@@ -44,6 +45,7 @@ mapping _decode( string data, mixed|void tocolor ) ...@@ -44,6 +45,7 @@ mapping _decode( string data, mixed|void tocolor )
[i,a] = chunk[3..4]; [i,a] = chunk[3..4];
format = "GIF"; format = "GIF";
}; };
#endif
if(!i) if(!i)
foreach( ({ "GIF", "JPEG", "XWD", "PNM", "RAS" }), string fmt ) foreach( ({ "GIF", "JPEG", "XWD", "PNM", "RAS" }), string fmt )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment