These two functions are very similar to each other because they copy one image to another.
The way these functions differ is in the last parameter: imagecopy() always overwrites all the pixels in the destination with those at the source, while imagecopymerge() combines the destination pixels with the original pixels for the amount specified in the additional parameter:
0 means "keep the source picture fully", 100 means "overwrite with the source picture fully", and 50 means "mix the source and destination pixel colours equally".
Thus, the function imagecopy() equivalent to calling imagecopymerge() and passes 100 as the last parameter.
source share