Solved

what a php function could render this image effect ?

Posted on 2015-01-31
3
76 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

Technology Partners: 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

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

695 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