Roxen.git/
server/
modules/
graphics/
cimg.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-06-25
1999-06-25 17:56:41 by Per Hedbor <ph@opera.com>
b941aa9e930760339364d58ab4945b35d4141903 (
6
lines) (+
5
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Pass the 'gamma' argument to the argcache
Rev: server/modules/graphics/cimg.pike:1.4
24:
mapping generate_image( mapping args, RequestID id ) { return roxen.low_load_image( args->src, id );
+
// if( i->img && args->gamma )
+
// i->img = i->img->gamma( (float)args->gamma );
} mapping find_internal( string f, RequestID id )
42:
"maxheight":args->maxheight, "scale":args->scale, "dither":args->dither,
+
"gamma":args->gamma,
]); foreach( glob( "*-*", indices(args)), string n )
67:
"src":fix_relative( args->src, id ), "quant":args->quant, "format":args->format, "maxwidth":args->maxwidth, "maxheight":args->maxheight, "scale":args->scale,
-
"dither":args->dither,
+
"dither":args->dither,
"gamma":args->gamma,
]); foreach( glob( "*-*", indices(args)), string n )