How to use Photoshop’s Lens Correction filter to correct a skewed image.

Download the Photoshop file