Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.238 2000/09/13 00:14:01 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.239 2000/09/13 18:17:17 jonasw Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:731:   constant hreffilter=(["split":1,"magic":1,"noxml":1,"alt":1]);      mapping mk_gtext_arg(mapping arg, RequestID id)   {    mapping p=([]); //Picture rendering arguments.       m_delete(arg,"src");    m_delete(arg,"width");    m_delete(arg,"height");    + #if !constant(Image.GIF) || !constant(Image.GIF.encode) +  // fadein or scroll not supported without GIF +  m_delete(arg, "fadein"); +  m_delete(arg, "scroll"); + #endif +  +  // Make format selection explicit since fallback may vary depending on +  // encoders present in this installation. +  if (!arg->format) + #if constant(Image.GIF) && constant(Image.GIF.encode) +  arg->format = "gif"; + #else +  arg->format = "jpg"; + #endif +     foreach(filearg, string tmp)    if(arg[tmp])    {    p[tmp]=Roxen.fix_relative(arg[tmp],id);    m_delete(arg,tmp);    }      // if(arg->border && (search(arg->border,",")!=-1))   // {   // p->border=arg->border;