Solved

what a php function could render this image effect ?

Posted on 2015-01-31
3
75 Views
Last Modified: 2015-02-19
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.
0
Comment
Question by:jaylab2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 40581879
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.
0
 

Author Comment

by:jaylab2
ID: 40582160
Hello i am not familiar , can you please give the exact function ?
0
 
LVL 9

Accepted Solution

by:
Rob_Jeffrey earned 500 total points
ID: 40582376
http://php.net/manual/en/function.imagecolortransparent.php

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.

http://php.net/manual/en/function.imagecolorclosestalpha.php

Hope this helps.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question