hello
i happen to build a php4+mysql3.25-driven website. recently i came upon a very specific problem with image generation, but let me explain...
say, i have two type of images. all images are gifs, 60x60, antialiased contours - sort of buttons, i guess. the gifs of one type is just some sort of circles with links, from which i will form a scheme on a site in a html table. what i need to do is just to place some icons inside those images - it's a different imageset.
in photoshop everything is pretty simple. i have non-overlapping images. one layer1 + layer2 makes just the thing i want, but then i open a php4 manual, look up the images creation section and understand that i should be used to this thing very much to outline some sort of algo for me.
so to say... the most evident approach is to probably take into consideration the background color value, then set up a 60x60 array, read all non-background pixels and put them to an array, then read the second image and put the non-background values into my array and then output it to database or browser. nb i can take care of colormap for my GIFs so i can make sure it's the same for all the images.
any better ideas ?