Is it possible to create transparent corners for an image on fly with PHP? I think that it would be possible, but I am missing a function that would preserve alpha values when you copy your image.
My idea was to create an image of same width and height, then apply transparent corners, but then I need to preserve the alpha channel and just copy image on that mask, leaving transparent still transparent, but colors changed to copied image (or vice versa, put mask on image).
Is it possible to do that and what are commands for that if there are any?
Update: Thanks for helping with this. It was some time ago, and I forgot but if anybody cross this question to find a solution just visit this one: http://www.pc-siete.g6.cz/galery.html . I made functions for gradient, radial gradient and also those rounded corners so feel free to use 🙂 . I’m not really using it on my webstie, but it’s good to have them prepared.
For some reason the downloaded file had just ad in it. Now it’s stored inside zip and downloads properly.
As far as I know there is no built-in function to do this. However you can create one yourself along these lines: