Page 1 of 1

background of top image in imagecopymerge

Posted: Fri Jun 25, 2010 3:48 pm
by Renidrag
I have a process that i have to take a clients image that is always jpg format and rescale it and have it display in a product thumb, now these thumbs are all the same size so i want to use a background pattern image and merge the two

I can do all this fine - but when i put the scaled down jpg image on top of the set size thumb and there is any extra space horizontally or vertically that space is black - now i did set the transparent color to black and remove it, but it also removes black in the clients image

anymore suggestions on how to handle this, working with images is fairly new to me in php and it seems php has a vast array of functions to handle images, so I think i am just on information overload and over looking what I should be doing.

Thanks in advance for any pointers

Re: background of top image in imagecopymerge

Posted: Sun Jun 27, 2010 2:31 am
by greyhoundcode
Perhaps you could post your code, or a diagram or something? I can't quite picture exactly what you are doing, but, it sounds like you are trying to remove the black colour after having merged the two images. Why not try to remove it before combining the two?