K
K
Kirill Gorelov2016-11-23 14:27:49
PHP
Kirill Gorelov, 2016-11-23 14:27:49

Merge two transparent png photos via php, getting nonsense?

Hello.
Guys need to overlay two transparent pictures on top of each other through php.
There is a solution, but not completely.
I use imagecopymerge
But photos are not superimposed.
Or get one photo. Or it turns out with a black background, tell me what to do?
I 'm preparing two png photos imagecreatefrompng
How can I fix this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rurik Rostislavich, 2016-11-23
@snipeer777

Maybe better through sprite?
https://habrahabr.ru/post/159027/

R
romy4, 2016-11-23
@romy4

probably due to the fact that you initially create a photo without a transparent background

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question