Re: Transparency and Text Rendering
From: Mike Depot (email@example.com)
Date: Wed 02 May 2001 - 00:24:07 UTC
Next message: Mike Depot: "Re: Transparency and Text Rendering"
Well I don't have enough experience with the Imager module to help you with
much with the code, but I can tell you this... You'll need to switch image
formats or forget about the shadow. GIF format only supports transparency by
allowing one of the colors in the pallete to be set to transparent. You
can't implement a blended shadow over a transparent background this way.
JPEG doesn't support transparency at all. What you need is a format that
supports an alpha channel. I'd suggest creating a PNG file instead if this
format is acceptable to your application.
----- Original Message -----
From: "Spohn, Albert F." <firstname.lastname@example.org>
Sent: Tuesday, May 01, 2001 6:04 PM
Subject: [Imager-devel]: Transparency and Text Rendering
> I'm absolutely new to this module, and fairly new to perl as well. I'm
> trying to dynamically generate a gif that is basically a text string that
> will change color based on external criteria. One of the requirements is
> that everything but the letters be transparent. To get started, I've been
> manipulating the code example here:
> I'm hoping that if someone can make the background of the banner in the
> example transparent and show me the code snippet, I can adapt it readily
> my little project. Any other advice, FAQ's etc are of course more than
> welcome as well.
> Thanks very much in advance,
> Al Spohn
> Al Spohn
> Publishing and Media Technology Services
> Mayo Clinic 507-284-1666