How to use Photoshop’s Content Aware Fill dialog to straighten and patch a skewed image.

Download the Photoshop file