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

version» Context lines:

Roxen.git/server/modules/graphics/cimg.pike:1:   #include <module.h>   inherit "module";   inherit "roxenlib";   constant thread_safe=1;      roxen.ImageCache the_cache; - constant cvs_version="$Id: cimg.pike,v 1.7 1999/11/15 03:27:13 per Exp $"; + constant cvs_version="$Id: cimg.pike,v 1.8 1999/11/24 15:03:05 per Exp $";      array register_module()   {    return    ({    MODULE_PARSER,    "Image converter",    "Provides a tag 'cimg'. Usage: "    "&lt;cimg src=\"indata file\" format=outformat [quant=numcolors] [img args]&gt;",    0,1
Roxen.git/server/modules/graphics/cimg.pike:53:    a[n] = args[n];    return a;   }      string tag_cimg( string t, mapping args, RequestID id )   {    mapping a = get_my_args( args, id );       args -= a;    -  args->src = query_internal_location()+the_cache->store( 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 );   }      string tag_cimg_url( string t, mapping args, RequestID id )   { -  return query_internal_location()+the_cache->store( get_my_args( args,id ) ); +  return query_internal_location()+the_cache->store(get_my_args(args,id),id);   }