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.26 2000/08/28 05:31:54 per Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.27 2000/08/29 18:54:48 kuntri Exp $";   constant module_type = MODULE_PARSER;   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:35: Inside #if defined(manual)
   The path to the indata file.      <ex><cimg src='internal-roxen-robodog'/></ex>   </attr>      <attr name='data' value='imagedata'>    Insert images from other sources, e.g. databases through entities or    variables.   <ex type='box'>   <emit source='sql' query='select imagedata from images where id=37'> - <cimg data='&sql.imagedata;'/> + <cimg data='<ent>sql.imagedata</ent>'/>   </emit>   </ex>   </attr>",      "cimg-url":#"<desc tag><short>This tag generates an URI to the manipulated   picture.</short> <tag>cimg-url</tag> takes the same attributes as   <tag>cimg</tag> including the image cache attributes. The use for the   tag is to insert image-URI's into various places, e.g. a submit-box.   </desc>   
Roxen.git/server/modules/graphics/cimg.pike:57: Inside #if defined(manual)
   The path to the indata file.      <ex><cimg-url src='internal-roxen-robodog'/></ex>   </attr>      <attr name='data' value='imagedata'>    Insert images from other sources, e.g. databases through entities or    variables.   <ex type='box'>   <emit source='sql' query='select imagedata from images where id=37'> - <cimg data='&sql.imagedata;'/> + <cimg data='<ent>sql.imagedata</ent>'/>   </emit>   </ex>   </attr>", -  +  + "emit#cimg":({ #"<desc plugin><short> +  +  </short> +  + </desc>", +  + ([ +  + "&_type;":#"<desc ent> +  + </desc>", +  + "&_src;":#"<desc ent> +  + </desc>", +  + "&_file-size;":#"<desc ent> +  + </desc>", +  + "&_xsize;":#"<desc ent> +  + </desc>", +  + "&_ysize;":#"<desc ent> +  + </desc>", +  + "&_data;":#"<desc ent> +  + </desc>" + ]) +  + }), +    ]);   #endif         void start()   {    the_cache = roxen.ImageCache( "cimg", generate_image );   }      mapping(string:function) query_action_buttons() {