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 - 2009, Roxen IS.   //      #include <module.h>   inherit "module";   constant thread_safe=1;      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.87 2009/12/08 20:38:43 jonasw Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.88 2010/04/27 13:36:56 grubba Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Graphics: 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;
Roxen.git/server/modules/graphics/cimg.pike:253:    the_cache->set_draw_function(generate_image);    } else {    the_cache = roxen.ImageCache( "cimg", generate_image );    }    do_ext = query("ext");   }      void stop()   {    // Force cache object to be recreated in start() -  the_cache = 0; +  destruct(the_cache);   }      mapping(string:function) query_action_buttons() {    return ([ "Clear Cache":flush_cache ]);   }      void flush_cache() {    the_cache->flush();       // It's possible that user code contains a number of stale URLs in