Is there a way to control color values of an IMG with PHP or Javascript?

I’m curious to turn images into grayscale or tint them through use of some code. I suspect that isn’t option but I’m checking.

Sure, check out imagemagik or a variety of other image manipulation libraries.