Gradient text with GD library from PHP
With this function, we can create gradient image : http://planetozh.com/blog/my-projects/images-php-gd-gradient-fill/
I need to create gradie开发者_Python百科nt text, or put a gradient over a black image. (Must have transparent background)
It's kind of easy within Photoshop, but I don't know all functions of GD library so maybe there is a way to get that.
Who wanna try? ;)
I think I find something... Tell me what you thing
Supose that I have a transparent image with a black circle inside. I want to make the circle transparent o i can put an image behind.
- Open the image (Duh!)
- Replace the transparency with 255, 35, 255 (Pink)
- Replace the black with transparency
- Create new image + generate gradient
- Merge the first image with the gradient image
- Make the pink transparent! :)
Is that make sense?
精彩评论