Gossamer Forum
Home : General : Perl Programming :

image menipulation

Quote Reply
image menipulation
how do i overlay some text onto an image?
i tried this:
binmode STDOUT;
print "Content-type: image/bitmap\n\n";
print "Your first line";
but i want the backround to be an image.

------------------
-Keith
-WebMaster@custom-perl.hypermart.net
Quote Reply
Re: image menipulation In reply to
I thought i saw this in another thread... in HTML, the way to get a browser to do this is with cascading style sheets.

You can actually set text into an image using the GD.pm module, creating a bitmap.

Quote Reply
Re: image menipulation In reply to
PUG:
i installed GD.pm now what?
how do i use it?
i read the manual but it might as well be written in japanese...

------------------
-Keith
-WebMaster@custom-perl.hypermart.net
Quote Reply
Re: image menipulation In reply to
What exactly are you trying to do?

For an _excellent_ use of GD.pm and image placement and text placement, check out the hamweather program

<A HREF="http://http://www.hamweather.com" TARGET=_blank>http://www.hamweather.com</A>

You don't have to install it, but check out how the HamImage add on overwrites the weather reports onto the control panel. It's an example of text and graphic placement.

Sometimes a good example is worth a thousand words.

To see it in action... try this URL from my daily weather report:

http://www.postcards.com/cgi-bin/HamWeather/hwimage.cgi?user=default&theme=default&place=Pittsburgh&state=PA&forecast=zandh&pass=es&img=ws

Cut and past that, UBB refused to turn it into a URL.

There is a blank weather panel, onto which the smaller graphics and the text statement is overlaid.

If you have a specific example of what you are trying to do, it's a lot easier than coming up with broad-based answers, but the broad answers (like looking at the hamimage code) can give you the flexibility you need for the whole project.


[This message has been edited by pugdog (edited August 10, 1999).]