Patent ID: 8577166

Claim:
A method, comprising: receiving, by one or more processors, a digital image; providing, by one or more processors, a document template, where the document template includes a region in which a portion of the received digital image is to be provided; receiving, by one or more processors, a selection from a user of a focal point of the received digital image; adjusting, by one or more processors, the received digital image, based on the selection of the focal point of the received digital image, to form an adjusted image, where adjusting the received digital image includes: determining first dimensions associated with the received digital image, the first dimensions including an image height and an image width, determining second dimensions and an aspect ratio associated with the region, comparing the first dimensions with the second dimensions, determining one or more rules for adjusting the received digital image based on the comparison, adjusting the received digital image based on the first dimensions, the second dimensions, the aspect ratio, and the determined one or more rules, where the adjusted digital image includes the focal point of the received digital image; positioning, by one or more processors, the adjusted digital image within the region of the document template to form a preview document; providing, by one or more processors, the preview document to the user; receiving, by one or more processors, an input from the user to edit the adjusted digital image to form an edited digital image; and positioning, by one or more processors, the edited digital image within the region of the document template.