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"; - inherit "roxenlib"; +    constant thread_safe=1;      roxen.ImageCache the_cache; - constant cvs_version="$Id: cimg.pike,v 1.15 2000/04/11 04:51:23 per Exp $"; + constant cvs_version="$Id: cimg.pike,v 1.16 2000/05/01 06:18:02 nilsson Exp $";   constant tagdesc="Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "   "to convert images between different image formats.";      constant module_type = MODULE_PARSER;   constant module_name = "Image converter";   constant module_doc = tagdesc;      TAGDOCUMENTATION   #ifdef manual   constant tagdoc=(["cimg":"<desc tag>"+tagdesc+"</desc>"]);
Roxen.git/server/modules/graphics/cimg.pike:39:      mapping find_internal( string f, RequestID id )   {    return the_cache->http_file_answer( f, id );   }      mapping get_my_args( mapping args, object id )   {    mapping a=    ([ -  "src":(args->src?fix_relative( args->src, id ):0), +  "src":(args->src?Roxen.fix_relative( args->src, id ):0),    "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,    ]);
Roxen.git/server/modules/graphics/cimg.pike:71:   {    mapping a = get_my_args( args, id );    args -= a;    args->src = query_internal_location()+the_cache->store( a,id );    if( mapping size = the_cache->metadata( a, id, 1 ) )    {    // image in cache (1 above prevents generation on-the-fly)    args->width = size->xsize;    args->height = size->ysize;    } -  return make_tag( "img", args ); +  return Roxen.make_tag( "img", args );   }      string tag_cimg_url( string t, mapping args, RequestID id )   {    return query_internal_location()+the_cache->store(get_my_args(args,id),id);   }