zakzebrowski has asked for the wisdom of the Perl Monks concerning the following question:

This was question was not immidatly available in the POD... Is it possible in this module (gd), or another module, to overlay one image on top of another?

Background, further explanation: I was told I was going to recieve a group of 96 icons that would have a certain background for a certain attribute of object, and a forground image based on the type of icon. (Think Red Alert: you have the type icon and a force (red blue gree)). I was to put the background image (red blue green) on a type icon. (I need to do this so I can access the images from java... FYI: I orignally told the (bleep) it would be a heck of a lot easier to do it in perl, but I lost that war... so now I'm trying to win a small battle with perl!)

Many thanks!

----
Zak

Replies are listed 'Best First'.
Re: Using GD to add two images together..
by steves (Curate) on Feb 13, 2002 at 18:16 UTC
Re: Using GD to add two images together..
by zakzebrowski (Curate) on Feb 14, 2002 at 13:52 UTC
    Got it, with issues.

    Ended up using GD (didn't read perl monks because the internet was down) which I already had installed on my system... Ran into two issues:
    1. New images are 1x1 unless you fill the image with a color.
    2. You can only create one image in a loop. Don't know why this is... Ended up writing a batch file to call the main compare function again as a sepereate exe...


    ----
    Zak