I've got a greyscale image with a gradient of colors:

I want to correlate those gradient values to transparency values, and create a new png image from it. So in the example above, the center would be fully transparent, and it would get progressively less transparent as the image fades toward the edges.
Again, my apologies if this is simple, and many thanks.
Kyle