Solved

what a php function could render this image effect ?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…

896 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now