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

version» Context lines:

Roxen.git/server/modules/graphics/cimg.pike:52:    args->src = query_internal_location()+the_cache->store( a );       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 ) + { +  mapping a = +  ([ +  "src":fix_relative( args->src, id ), "quant":args->quant, +  "format":args->format, "maxwidth":args->maxwidth, +  "maxheight":args->maxheight, "scale":args->scale, +  "dither":args->dither, +  ]); +  +  foreach( glob( "*-*", indices(args)), string n ) +  a[n] = args[n]; +  +  return query_internal_location()+the_cache->store( a ); + }