Roxen.git/
server/
modules/
graphics/
graphic_text.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-13
2000-09-13 18:17:17 by Jonas Wallden <jonasw@roxen.com>
e94a1514df9d777c167374915f38793d8d92a234 (
18
lines) (+
17
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Handle when Image.GIF is unavailable.
Rev: server/modules/graphics/graphic_text.pike:1.239
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";
738:
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]) {