markevans/dragonfly — pull request #210 by recurser (2012-07-26 03:36:14+00:00)
Title: Add flag to calculate the correct width and height for exif-orientated images

Hi,

I've had trouble getting the correct width and height returned from dragonfly (I believe the 'problem', if it's not deliberate, lies in ImageMagick).

Images tagged with exif orientations of 5, 6, 7 or 8 return the width and height swapped (these are all 'mirror' orientations), which I don't believe is deliberate since 1, 2, 3 and 4 behave as expected.

This may only be applicable when used with auto_orient, depending on the use case, so I've added a flag called 'smart_dimensions' for want of a better term, that checks the exif orientation flag and adjusts the width and height accordingly.

Thanks for all your hard work, much appreciated!