Things You'll Need
Instructions
Run the photo editing software of your choice. Once inside the program, open the image you wish to correct.
Add corrective margins, also known as rulers, to the sides of your image by selecting "View" from the top toolbar and then selecting "Rulers" from the menu that appears.
Open the software's lens-correction toolbox by selecting "Filter" from the top toolbar. Choose the distortion option or lens-correction option from the menu that appears -- the specific name of the adjustment filter varies depending on the software.
Select the ruler or grid icon from the lens-correction toolbox to access the "Straighten" tool. Click a corner of the image and drag until the horizon (or suitable reference point) appears straight. Use the side ruler lines for visual assistance.
Remove bulging edges and other curves by choosing the "Remove Distortion" tool (usually represented by an icon resembling a "D") from the lens-correction toolbox. Click and drag the distorted area until it is corrected.
Crop or resize the image as needed. The crop tool is located within the software's main toolbar, and the resize function is typically found under the "View" tab.
Save the corrected image. If you wish to preserve the original image, select "Save As..." and type in a different file name.