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";   inherit "roxenlib";   constant thread_safe=1;      roxen.ImageCache the_cache; - constant cvs_version="$Id: cimg.pike,v 1.16 2000/05/18 12:17:23 kuntri Exp $"; + constant cvs_version="$Id: cimg.pike,v 1.17 2000/06/01 11:49:20 kuntri Exp $";   constant tagdesc="Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "   "to convert images between different image formats.";      constant module_type = MODULE_PARSER;   constant module_name = "Image converter";   constant module_doc = tagdesc;      TAGDOCUMENTATION   #ifdef manual   constant imagecache=#"
Roxen.git/server/modules/graphics/cimg.pike:417: Inside #if defined(manual)
  <attr name='src' value='uri' required>    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;'/> - </emit> + &lt;emit source='sql' query='select imagedata from images where id=37'&gt; + &lt;cimg data='&sql.imagedata;'/&gt; + &lt/emit&gt;   </ex>   </attr>"+imagecache,      "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>      <attr name='src' value='uri' required>    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-url data='&sql.imagedata;'/> - </emit> + &lt;emit source='sql' query='select imagedata from images where id=37'&gt; + &lt;cimg data='&sql.imagedata;'/&gt; + &lt/emit&gt;   </ex>   </attr>"+imagecache,    ]);      /*    "Provides a tag 'cimg'. Usage: "    "&lt;cimg src=\"indata file\" format=outformat [quant=numcolors] [img args]&gt;",   */   #endif