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

version» Context lines:

Roxen.git/server/modules/graphics/cimg.pike:1:   // This is a roxen module. Copyright © 1999 - 2000, Roxen IS.   //      #include <module.h>   inherit "module";   constant thread_safe=1;      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.29 2000/09/10 16:37:48 nilsson Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.30 2000/09/19 14:47:05 per Exp $";   constant module_type = MODULE_TAG;   constant module_name = "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;    mapping doc=compile_string("#define manual\n"+file->read())->tagdoc;
Roxen.git/server/modules/graphics/cimg.pike:137:      mapping find_internal( string f, RequestID id )   {    return the_cache->http_file_answer( f, id );   }      mapping get_my_args( mapping args, RequestID id )   {    mapping a=    ([ -  "src":Roxen.fix_relative( args->src, id ), +     "quant":args->quant,    "crop":args->crop,    "format":args->format,    "maxwidth":args->maxwidth,    "maxheight":args->maxheight,    "scale":args->scale,    "dither":args->dither,    "gamma":args->gamma,    "data":args->data,    ]);    -  if( a->src ) +  if( args->src )    catch    { -  +  a->src = Roxen.fix_relative( args->src, id );    Stat st = id->conf->stat_file(a->src, id) || file_stat(a->src);    if (st) {    a->mtime = (string) (a->stat = st[ST_MTIME]);    a->filesize = (string) st[ST_SIZE];    }    };       a["background-color"] = id->misc->defines->bgcolor || "#eeeeee";       foreach( glob( "*-*", indices(args)), string n )