computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,360 tips!

Digital Photo Processing

Straighten the Horizon Line

SUMMARY: Straighten the horizon line by rotation and cropping.

In your digital photos, is the horizon line or the main subject not straight? Most higher-end digital imaging software come with free-form rotation tools where you can adjust rotation not only by 90 degree increments but by a degree or tenth of a degree. With this feature you should be able to straighten up virtually any image.

Unfortunately, one byproduct of rotation is the addition of blank space around your photo that must be cropped out. This can be done with a rectangular mask and cut/paste tools, or a cropping function if provided.

After cropping, your aspect ratio (number of horizontal pixels versus vertical pixels or vice-versa depending on your framing) will change, so before you print or otherwise use the photo you may also have to resample it slightly or crop out more information.

Now is where your math skills may come in.

For example, let's say you took a photo with a 5 megapixel digital camera. The original width was 2,560 and the height 1,920 for an aspect ratio of 4:3.

1,920 divided by 3 = 640
2,560 divided by 640 = 4.

After a slight rotation and cropping the image turns out to be 2,523 by 1,875 for an aspect ratio of approximately 4.096 to 3.

1,875 divided by 3 = 625
2,523 divided by 625 = 4.0368.

In this case, there are too many horizontal pixels. How many?

625 times 4 = 2,500.
2,523 - 2,500 = 23.

Thus, you need to crop 23 horizontal pixels from this photo to maintain the 4:3 aspect ratio. Afterwards, your photo will be 2,500 x 1,875 and have the correct aspect ratio:

1,875 divided by 3 = 625
625 times 4 = 2,500.

 

 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 

Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the Digital Photo Processing page.


More in MalekTips:
Windows Vista - ExplorerGoogle Image SearchBuying a Digital Camera



Copy File or Folder Path to DOS Prompt or Windows AppSearch for Images in Various SizesPurchasing Via an Auction? High Feedback Ratings Aren't All Legitimate

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums