?
Solved

what a php function could render this image effect ?

Posted on 2015-01-31
3
Medium Priority
?
77 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

777 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