Load the image. 'Layer > Duplicate' While selecting the duplicated layer, pick Gradient Tool. Here you go.