A computerized method and computer readable medium for adjusting a digital image
obtained from scanning a document. An application processes the digital image to
discern a border portion from an image portion. The application processes the digital
image to determine whether an image portion of the digital image corresponds to
a target orientation. If the image portion does not correspond to a target orientation,
the application adjusts the image portion to correspond to the target orientation.
The application further crops the adjusted image to entirely eliminate the border
portion of that image.