RE: [PHP] FW: Merging two images (GD PNG)

2005-12-01 Thread Albert
Jochem Maas wrote: the output image resource you create should be created with $xxx = imagecreatetruecolor(1000,1000), you should call imagealphablending($xxx, true) on the output image resource after you create and before copying [which you are as far as I can tell], and you should use

RE: [PHP] FW: Merging two images (GD PNG)

2005-12-01 Thread Albert
Jochem Maas wrote: try this site: http://php.amnuts.com/ I had a look at the way Andy does the masking and changed my code to do a pixel compare and only transfer the pixels to the satellite image I needed. This now takes quite a bit longer but at least everything is working as it should.

Re: [PHP] FW: Merging two images (GD PNG)

2005-12-01 Thread Jochem Maas
Albert wrote: Jochem Maas wrote: try this site: http://php.amnuts.com/ I had a look at the way Andy does the masking and changed my code to do a pixel compare and only transfer the pixels to the satellite image I needed. This now takes quite a bit longer but at least everything is

Re: [PHP] FW: Merging two images (GD PNG)

2005-11-30 Thread Jochem Maas
imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: I have two images which I want to overlay on each other. Image1 is a satellite image. Image2 is contains the statistical data we collected. It has a transparent background and should be

RE: [PHP] FW: Merging two images (GD PNG)

2005-11-30 Thread Albert
Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. Albert -- PHP General Mailing List

Re: [PHP] FW: Merging two images (GD PNG)

2005-11-30 Thread Jochem Maas
Albert wrote: Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. shit missed that

Re: [PHP] FW: Merging two images (GD PNG)

2005-11-30 Thread Jochem Maas
Albert wrote: Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. the output image