[support] Rotating Selected Images

Steve Edwards killshot91 at gmail.com
Mon Feb 13 21:59:45 UTC 2012


I have a content type that contains an imagefield used for displaying photos, and I'm having a problem getting them to display with the proper orientation.  Some of the photos were taking with the normal camera orientation (landscape), but some were taken vertically (i.e. the camera turned 90 degrees clockwise).  When I display the vertical images in a photo app (like Preview or iPhoto on my Mac) they display just fine, but when they are displayed in Drupal, they are all displayed horizontally, which means the vertical ones are on their side.  There is an image style that will rotate them, but not all of the photos require this, so the all-or-nothing approach doesn't work.  Other than writing code to rotate the vertical images counter-clockwise (not sure how that would be detected), how can I get them to display as they were originally taken?  Why are they displayed that way in the first place, when all the other apps display them properly?

Thanks.

Steve


More information about the support mailing list