Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.128 1998/06/02 16:37:33 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.129 1998/06/09 08:16:43 peter Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:267: Inside #if !constant(Image.PNM)
   object img   #if !constant(Image.PNM)    =Image.image()   #endif    ;       if(!(data=roxen->try_get_file(fix_relative(f, id),id)))    if(!(file=open(f,"r")) || (!(data=file->read())))    return 0;   //werror("Read "+strlen(data)+" bytes.\n"); - #if constant(Image.PNM.decode) -  catch { if(!img) img = Image.PNM.decode( data ); }; - #endif +    #if constant(Image.GIF.decode)    catch { if(!img) img = Image.GIF.decode( data ); };   #endif   #if constant(Image.JPEG.decode)    catch { if(!img) img = Image.JPEG.decode( data ); };   #endif -  + #if constant(Image.PNG.decode) +  catch { if(!img) img = Image.PNG.decode( data ); }; + #endif + #if constant(Image.PNM.decode) +  catch { if(!img) img = Image.PNM.decode( data ); }; + #endif   #if !constant(Image.PNM.decode)    if (catch { if(!img->frompnm(data)) return 0;}) return 0;   #endif    if(!img) return 0;    last_image = img; last_image_name = f;    return img->copy();   }      object blur(object img, int amnt)   {