• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 80
  • Last Modified:

what a php function could render this image effect ?

Hello i do have a png  file with a shape t1.png i need to make it as background for  this second image attached t2.png and here the result i do need t3.png what is the php gd that could render such things .

Thank you.
  • 2
1 Solution
You can set a color as transparent using imagecolortransparent and then overlay the shoe image over the texture.
That may provide the output you describe.
jaylab2Author Commented:
Hello i am not familiar , can you please give the exact function ?

That will take a single color and change it to transparent.  There is another (imagecolorclosestalpha) that changes a range of colors - so if there are a few shades of grey that you want to target, this may work better.


Hope this helps.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now