Image tile code applies color filter
<p>I am trying to make tiled image with using different images. After first tile, average color of first tile applied to another tile as filter. How can i use each tile picture
without filter?
My code is below;</p>

<pre><code>&lt;?php 

$dest = imagecreatefrompng('myimage.png');

$src[] = imagecreatefrompng('otter.png');
$src[] = imagecreatefrompng('fox.png');
$src[] = imagecreatefrompng('opals.png');

// Copy and merge
for($i=0;$i&lt;count($src);$i++){
imagecopymerge($dest, $src[$i], 32*$i, 0, 0, 0, 32, 32, 100);

}
// Output and free from memory
header('Content-Type: image/png');
imagepng($dest);
imagedestroy($dest);

for($ii=0;$ii&lt;count($src);$ii++){
imagedestroy($src[$ii]);
}

?&gt;
</code></pre>

<p>Sample tile link > <a href="http://7kitap.com/fox.png" rel="nofollow">http://7kitap.com/fox.png</a></p>

<p>Code link > <a href="http://7kitap.com/fillimage.php" rel="nofollow">http://7kitap.com/fillimage.php</a></p>

<p>As you will see on link above tile picture colors are changing after first tile.</p>
