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.34 2000/12/10 04:30:23 per Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.35 2000/12/30 07:21:14 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:115:   mapping(string:function) query_action_buttons() {    return ([ "Clear cache":flush_cache ]);   }      void flush_cache() {    the_cache->flush();   }      string status() {    array s=the_cache->status(); -  return sprintf("<b>Images in cache:</b> %d images<br />\n<b>Cache size:</b> %s", -  s[0]/2, Roxen.sizetostring(s[1])); +  return sprintf("<b>Images in cache:</b> %d images<br />\n" +  "<b>Cache size:</b> %s", +  s[0], Roxen.sizetostring(s[1]));   }      array(Image.Layer) generate_image( mapping args, RequestID id )   {    array layers;    mapping opts = ([]);    if( args["process-all-layers"] )    opts->draw_all_layers = 1;       if( args->data )