Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-03-01
2001-03-01 20:52:52 by Per Hedbor <ph@opera.com>
34fc595e0732f34402747903ee93a511105a5565 (
12
lines) (+
9
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Ported support for WBMP from 2.1
Rev: server/base_server/roxen.pike:1.639
4:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
638
2001/
02
/
27
03
:
13
:
37
mast
Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
639
2001/
03
/
01
20
:
52
:
52
per
Exp $";
// Used when running threaded to find out which thread is the backend thread. Thread.Thread backend_thread;
2345:
switch(format) {
+
case "wbf":
+
format = "wbmp";
+
case "wbmp":
+
data = Image.WBF.encode( reply, enc_args );
+
break;
case "gif": #if constant(Image.GIF) && constant(Image.GIF.encode) if( alpha && true_alpha )
2385:
default: if(!Image[upper_case( format )] || !Image[upper_case( format )]->encode )
-
error("Image format "+format+"
unknown\n
");
+
error("Image format "+format+"
not supported\n
");
data = Image[upper_case( format )]->encode( reply, enc_args ); }
2393:
([ "xsize":reply->xsize(), "ysize":reply->ysize(),
-
"type":"image/"+format,
+
"type":
(format ==
"
wbmp" ? "
image/
vnd.wap.wbmp
"
: "image/"
+format
)
,
]); } else if( mappingp(reply) )