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 - 2001, Roxen IS.   //      #include <module.h>   inherit "module";   constant thread_safe=1;      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.48 2001/10/01 09:21:36 anders Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.49 2001/10/08 12:32:52 anders 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:283:    };    RXML.parse_error( "Illegal arguments or image\n" );    return ({});    }   }      class TagCImg   {    inherit RXML.Tag;    constant name = "cimg"; -  int flags = RXML.FLAG_EMPTY_ELEMENT; +  constant flags = RXML.FLAG_EMPTY_ELEMENT;       class Frame    {    inherit RXML.Frame;       array do_return(RequestID id)    {    mapping a = get_my_args( check_args( args ), id );    args -= a;    string ext = "";
Roxen.git/server/modules/graphics/cimg.pike:315:    m_delete(args, "noxml");    result = Roxen.make_tag( "img", args, xml );    return 0;    }    }   }      class TagCImgURL {    inherit RXML.Tag;    constant name = "cimg-url"; -  int flags = RXML.FLAG_EMPTY_ELEMENT; +  constant flags = RXML.FLAG_EMPTY_ELEMENT;       class Frame    {    inherit RXML.Frame;       array do_return(RequestID id)    {    result = query_absolute_internal_location(id)    + the_cache->store(get_my_args(check_args( args ), id ), id)    + (do_ext ? "." + (args->format || "gif") : "");    return 0;    }    }   }