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.44 2001/08/15 17:43:55 per Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.45 2001/08/30 12:16:56 jhs 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:35: Inside #if defined(manual)
     <attr name='src' value='url' required='required'><p>    The path to the indata file.</p>      <ex><cimg src='/internal-roxen-testimage'/></ex>   </attr>      <attr name='data' value='imagedata'><p>    Insert images from other sources, e.g. databases through entities or    variables.</p> - <ex type='box'> - <emit source='sql' query='select imagedata from images where id=37'> + <ex-box><emit source='sql' query='select imagedata from images where id=37'>   <cimg data='&sql.imagedata;'/> - </emit> - </ex> + </emit></ex-box>   </attr>",      "cimg-url":#"<desc tag='tag'><p><short>    This tag generates an URL to the manipulated picture.</short>    <tag>cimg-url</tag> takes the same attributes as <xref    href='cimg.tag' />, including the image cache attributes. The use for    the tag is to insert image-URLs into various places, e.g. a    submit-box.</p>   </desc>      <attr name='src' value='url' required='required'><p>    The path to the indata file.</p>      <ex><cimg-url src='/internal-roxen-testimage'/></ex>   </attr>      <attr name='data' value='imagedata'><p>    Insert images from other sources, e.g. databases through entities or    variables.</p> - <ex type='box'> - <emit source='sql' query='select imagedata from images where id=37'> + <ex-box><emit source='sql' query='select imagedata from images where id=37'>    <cimg-url data='&sql.imagedata;'/> - </emit> - </ex> + </emit></ex-box>   </attr>",      "emit#cimg":({ #"<desc plugin='plugin'><p><short>    Entitybased version of <xref href='../graphics/cimg.tag' />.</short>    Takes the same attributes as <tag>cimg</tag>.</p>   </desc>",      ([   "&_.type;":#"<desc ent='ent'><p>    Returns the image's content-type.</p>