Branch: Tag:

2004-05-05

2004-05-05 09:41:20 by Anders Johansson <anders@roxen.com>

Fixed 'Failed to decode layers in specified image' for valid images. [bug 3648 (#3648)]

Rev: server/modules/graphics/cimg.pike:1.63

7:      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.62 2003/10/17 11:39:44 anders Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.63 2004/05/05 09:41:20 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 "
189:    }       if (mappingp(tmp)) { -  if (tmp->error == 401) +  if (tmp->error == Protocols.HTTP.HTTP_UNAUTH)    return tmp;    else    layers = 0;
205:    error("Failed to load specified image [%O]\n", args->src);    }    -  if (!sizeof(layers->image() - ({0}))) +  if (!sizeof(filter(layers->image(), objectp)))    error("Failed to decode layers in specified image [%O]\n", args->src);       layers->set_misc_value( "visible",1 );