Patent attributes
In one embodiment, a computing device receives a request from a mobile device of a user for an image. The computing device determines whether the user is associated with a preferred orientation for viewing an image. The preferred orientation is determined based on the user's usage patterns with respect to a particular application of the mobile device, or to the user's interactions with a social-networking system. If the user is associated with a preferred orientation, the image is adjusted to have the preferred orientation and to match display capabilities of the mobile device sending the request. The adjusted image is sent to the mobile device for display.