Merging multiple PNG images in a specific order with PHP

GamesRewars

New Member
I found this code on SOF that merges PNG images together with transparencies:\[code\]$imgl = "thumb/pattern.png";$img2 = "thumb/frame.png";$dest = imagecreatefrompng($imgl);$src = http://stackoverflow.com/questions/15753010/imagecreatefrompng($img2);imagecolortransparent($src, imagecolorat($src, 0, 0));$src_x = imagesx($src);$src_y = imagesy($src);imagecopymerge($dest, $src, 0, 0, 0, 0, $src_x, $src_y, 100);// Output and free from memoryheader('Content-Type: image/png');imagegif($dest);imagedestroy($dest);imagedestroy($src);\[/code\]However, I have multiple images that I want to merge and I want to merge those images in a specific order. How can I alter this code to do just that?
 
Back
Top