I need a simple PHP script that:
- takes any input jpg or png image
- overlays it with a configurable black gradient / raster
- overlays that with a play button (a circle with a triangle on its side within)
The input image can be any size, the output image should have the gradient over the entire image and the play button in the middle, not bigger than 50% of the height or width of the image, but preferably smaller (like 20%).
I should be able to call this script from a URL and provide an image through a GET request and get an image in return from the script that has the overlay.