petsrv is a small http server that generates png images from the C64's
rom font. It can be used to sprinkle web pages with petscii graphics,
without having to use a graphics program or screen grabber to draw
- Open source - runs on Windows, MacOS X, and unix compatibles.
- You can specify foreground color, background color, and either
can be transparent.
- You can use both the upper case and the lower case charset.
- You can select a zoom level from 1 to 4 (8x8 to 32x32 pixel font).
- All characters accessible through $xx hex codes.
Play with the parameters and enter some text.
- petsrv-b2.tar.gz, 9 kB.
- Beta 2 source code.
Exactly how you use petsrv depends on a few things like which server
you're running and if you have a firewall. petsrv listens to port 8064
by default, and if you don't have a firewall or a NAT:ing router
inbetween you and the rest of the world, you can just run it exposed
on a public port. However, since on the fly generation of PNGs is
somewhat costly, I recommend that you set up a caching proxy. If
you're using Apache to serve your web pages and you run petsrv on the
same machine, I've been told that something like this should do the
ProxyPass /petscii http://localhost:8064/petscii
ProxyPassReverse /petscii http://localhost:8064/petscii
You can contact me at email@example.com.
petsrv is released under a BSD license:
Copyright (c) 2004, Per Olofsson
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.