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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -