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 - 2004, Roxen IS.   //      #include <module.h>   inherit "module";   constant thread_safe=1;      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.72 2005/10/06 09:07:36 anders Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.73 2006/10/05 09:03:47 jonasw 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:330:       return a;   }      mapping check_args( mapping args )   {    if( !args->format )    args->format = "png";    if( !(args->src || args->data) )    RXML.parse_error("Required attribute 'src' or 'data' missing\n"); +  if (args->src == "") +  RXML.parse_error("Attribute 'src' cannot be empty\n");    if( args->src && args->data )    RXML.parse_error("Only one of 'src' and 'data' may be specified\n");       return args;   }      class TagCimgplugin   {    inherit RXML.Tag;    constant name = "emit";