I would like to change the color of an image with php. if I wanted to make it appear redder applicherei an image on a higher level across an image with a transparent red and
You can try using GD's imagecopymerge function, which copies one image to another and supports alpha transparency. Something like this should work:
There's more information here.