{"action":"closed","issue":{"url":"https://api.github.com/repos/oliver-moran/jimp/issues/61","labels_url":"https://api.github.com/repos/oliver-moran/jimp/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/oliver-moran/jimp/issues/61/comments","events_url":"https://api.github.com/repos/oliver-moran/jimp/issues/61/events","html_url":"https://github.com/oliver-moran/jimp/issues/61","id":115241834,"number":61,"title":"Respecting EXIF orientation","user":{"login":"dataxa","id":3416382,"avatar_url":"https://avatars.githubusercontent.com/u/3416382?v=3","gravatar_id":"","url":"https://api.github.com/users/dataxa","html_url":"https://github.com/dataxa","followers_url":"https://api.github.com/users/dataxa/followers","following_url":"https://api.github.com/users/dataxa/following{/other_user}","gists_url":"https://api.github.com/users/dataxa/gists{/gist_id}","starred_url":"https://api.github.com/users/dataxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dataxa/subscriptions","organizations_url":"https://api.github.com/users/dataxa/orgs","repos_url":"https://api.github.com/users/dataxa/repos","events_url":"https://api.github.com/users/dataxa/events{/privacy}","received_events_url":"https://api.github.com/users/dataxa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-05T09:25:29Z","updated_at":"2015-11-06T09:21:15Z","closed_at":"2015-11-06T09:21:15Z","body":"\t\tjimp.read(dir + images[i] , function(err , image){\r\n\t\t\tif(image.bitmap.width < 720 || image.bitmap.height < 960){\r\n\t\t\t\tthrow \"Source image too small\";\r\n\t\t\t}\r\n\t\t\tif(image.bitmap.width / 720 > image.bitmap.height / 960){\r\n\t\t\t\timage = image.resize(jimp.AUTO , 960);\r\n\t\t\t\timage = image.crop((image.bitmap.width - 720 / 2) , 0 , 720 , 960);\r\n\t\t\t}else{\r\n\t\t\t\timage = image.resize(720 , jimp.AUTO);\r\n\t\t\t\timage = image.crop(0 , (image.bitmap.height - 960 / 2) , 720 , 960);\r\n\t\t\t}\r\n\t\t\timage.write(dir + \"CR_\" + images[i]);\r\n\t\t}); \r\n\r\nAnd output is 90 degrees rotated image."}}