mariocesar/sorl-thumbnail — pull request #198 by devlocal (2013-12-14 05:58:48+00:00)
Title: bugfix: for some images gm identify -format %[exif:orientation] returns ...

...more than one line, e.g. '0\n0'. With this change we take only the first result. Currently exception is thrown. ValueError: invalid literal for int() with base 10: '0\\n0'