1Perlbal::Plugin::PalimgU(s3e)r Contributed Perl DocumentaPteirolnbal::Plugin::Palimg(3)
2
3
4
6 Perlbal::Plugin::Palimg - plugin that allows Perlbal to serve palette
7 altered images
8
10 This documentation refers to "Perlbal::Plugin::Palimg" that ships with
11 Perlbal 1.50
12
14 Palimg is a perlbal plugin that allows you to modify "GIF" and "PNG" on
15 the fly. Put the images you want to be able to modify into the
16 "DOCROOT/palimg/" directory. You modify them by adding "/pSPEC" to the
17 end of the url, where SPEC is one of the below defined commands
18 (gradient, tint, etc).
19
21 To configure your Perlbal installation to use Palimg you'll need to
22 "LOAD" the plugin then add a service parameter to a "web_server"
23 service to activate it.
24
25 Example "perlbal.conf":
26
27 LOAD palimg
28
29 CREATE SERVICE palex
30 SET listen = ${ip:eth0}:80
31 SET role = web_server
32 SET plugins = palimg
33 SET docroot = /usr/share/doc/
34 SET dirindexing = 0
35 ENABLE palex
36
38 You can change the gradient of the image by adding
39 "/pg0011111164ffffff" to the end of the url. 00 is the index where the
40 gradient starts and 111111 is the color (in hex) of the beginning of
41 the gradient. 64 is the index of the end of the gradient and "ffffff"
42 is the color of the end of the gradient. Note that all colors
43 specified in hex should be lowercase.
44
45 Example:
46
47 http://192.168.0.1/palimg/logo.gif/pg01aaaaaa99cccccc
48
50 You can tint the image by adding "/pt000000aaaaaa" to the end of the
51 url. 000000 should be replaced with the color to tint towards.
52 "aaaaaa" is optional and defines the "dark" tint color. Both colors
53 should be specified as lowercase hex numbers.
54
55 Example:
56
57 http://192.168.0.1/palimg/logo.gif/pt1c1c1c22dba1
58
60 You can specify a palette to replace the palette of the image. Do this
61 by adding up to six sets of seven hex lowercase numbers prefixed with
62 "/p" to the end of the URL.
63
64 Example:
65
66 http://192.168.0.1/palimg/logo.gif/p01234567890abcfffffffcccccccddddddd
67
69 There are no known bugs in this module.
70
71 Please report problems to the Perlbal mailing list,
72 http://groups.google.com/group/perlbal
73
74 Patches are welcome.
75
77 Brad Fitzpatrick <brad@danga.com> Mark Smith <junior@danga.com>
78
80 Artistic/GPLv2, at your choosing.
81
82 Copyright 2004, Danga Interactive Copyright 2005-2007, Six Apart Ltd
83
84
85
86perl v5.38.0 2023-07-19 Perlbal::Plugin::Palimg(3)