Merge two image created using php -
how can merge 2 image created url 2 url like:
merge these 2 images:
`$url1=https://imageare.com/nc/aud/tr.php?track=426413219-.wav&ignorable_duration=1.0
$url2=https://imageare.com/nc/aud/tr.phptrack=426413219_chan1.wav&ignorable_duration=1.0
not same possible duplicate: image not fetched
to merge 2 images shown here , assuming images in png .you might need use following code:
$url1=https://imageare.com/nc/aud/tr.php?track=426413219-.wav&ignorable_duration=1.0 $url2=https://imageare.com/nc/aud/tr.phptrack=426413219_chan1.wav&ignorable_duration=1.0 $dest = imagecreatefrompng($url1); $src = imagecreatefrompng($url2); imagecopymerge($dest, $src, 0, 0, 0, 0, 500, 100, 90);
the following can used output image browser
header('content-type: image/png'); imagepng($dest);
Comments
Post a Comment