Branch: Tag:

2000-04-11

2000-04-11 04:51:23 by Per Hedbor <ph@opera.com>

Pass on 'crop', and default background-color to the background color of the current page

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

7:   constant thread_safe=1;      roxen.ImageCache the_cache; - constant cvs_version="$Id: cimg.pike,v 1.14 2000/04/06 07:34:41 wing Exp $"; + constant cvs_version="$Id: cimg.pike,v 1.15 2000/04/11 04:51:23 per Exp $";   constant tagdesc="Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "   "to convert images between different image formats.";   
48:    ([    "src":(args->src?fix_relative( args->src, id ):0),    "quant":args->quant, +  "crop":args->crop,    "format":args->format,    "maxwidth":args->maxwidth,    "maxheight":args->maxheight,
56:    "gamma":args->gamma,    "data":args->data,    ]); +  +  a["background-color"] = id->misc->defines->bgcolor +  || "#eeeeee"; +     foreach( glob( "*-*", indices(args)), string n )    a[n] = args[n]; -  +     return a;   }