On Fri, 12 Sep 2003 10:45:01 GMT, Quaternion <w.DeleteThis@r.no> wrote:
> Hi,
>
> I want to have .gif images that are asked from my apache server to have
> their color palette modified (as the whole site's color palette modifies
> itself now) before they are sent as an answer. How can I do this? I
> understand there are things like gdm that do this for me, but it's not
> really the app that oncerns me since it's quite short to write a palette
> modifier yourself. But how do I confuigure this in Apache, that certain
> .gif images (for instance all the ones that are in a specific directory)
> should be treated fuirtherly, before sending them to the user's computer.
You could put an Action directive within Files or FilesMatch (see Apache
docs for those directives). Just note that your Action handler is
provided the URI path of the request as PATH_INFO and system path as
PATH_TRANSLATED, and it is up to your handler to output proper
Content-type header and content.
> And also, how long would this take? I have a very fast computer, but still,
> two seconds for each image would be too long.
Not sure. Note that you might need to use older gd related libs since
current gif related tasks have to be licensed by CompuServe (AOL?), or at
least that was the case when I created gifs on the fly with GD module in
Perl.
--
David Efflandt - All spam ignored <a style='text-decoration: underline;' href="http://www.de-srv.com/" target="_blank">http://www.de-srv.com/</a>
<a style='text-decoration: underline;' href="http://www.autox.chicago.il.us/" target="_blank">http://www.autox.chicago.il.us/</a> <a style='text-decoration: underline;' href="http://www.berniesfloral.net/" target="_blank">http://www.berniesfloral.net/</a>
<a style='text-decoration: underline;' href="http://cgi-help.virtualave.net/" target="_blank">http://cgi-help.virtualave.net/</a> <a style='text-decoration: underline;' href="http://hammer.prohosting.com/~cgi-wiz/" target="_blank">http://hammer.prohosting.com/~cgi-wiz/</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Server-side image editing