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

version» Context lines:

Roxen.git/server/modules/graphics/cimg.pike:1:   // This is a ChiliMoon module. Copyright © 1999 - 2001, Roxen IS.   //      #include <module.h> + #include <stat.h>   inherit "module";   constant thread_safe=1;    - roxen.ImageCache the_cache; + core.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.56 2004/05/27 21:24:37 _cvs_stephen Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.57 2004/05/31 23:01:52 _cvs_stephen Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Graphics: Image converter";   constant module_doc = "Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "   "to convert images between different image formats.";         mapping tagdocumentation()   {    Stdio.File file=Stdio.File();    if(!file->open(__FILE__,"r")) return 0;
Roxen.git/server/modules/graphics/cimg.pike:128:    "Append format to generated images",    "Append the image format (.gif, .png, "    ".jpg, etc) to the generated images. "    "This is not necessary, but might seem "    "nicer, especially to people who try "    "to mirror your site."));   }      void start()   { -  the_cache = roxen.ImageCache( "cimg", generate_image ); +  the_cache = core.ImageCache( "cimg", generate_image );    do_ext = query("ext");   }      mapping(string:function) query_action_buttons() {    return ([ "Clear cache":flush_cache ]);   }      void flush_cache() {    the_cache->flush();   
Roxen.git/server/modules/graphics/cimg.pike:170:    if( args["process-all-layers"] )    opts->draw_all_layers = 1;       if( args["jpeg-shrink" ] )    {    opts->scale_denom = (int)args["jpeg-shrink" ];    opts->scale_num = 1;    }       if( args->data ) -  layers = roxen.decode_layers( args->data, opts ); +  layers = core.decode_layers( args->data, opts );    else    { -  mixed tmp = roxen.load_layers( args->src, id, opts ); +  mixed tmp = core.load_layers( args->src, id, opts );    if (mappingp(tmp)) {    if (tmp->error == Protocols.HTTP.HTTP_UNAUTH)    return tmp;    else    layers = 0;    }    else layers = tmp;    }       if(!layers)