{"action":"created","issue":{"url":"https://api.github.com/repos/Intervention/image/issues/392","labels_url":"https://api.github.com/repos/Intervention/image/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/Intervention/image/issues/392/comments","events_url":"https://api.github.com/repos/Intervention/image/issues/392/events","html_url":"https://github.com/Intervention/image/issues/392","id":93369269,"number":392,"title":"Uploaded image is rotated","user":{"login":"iamgoodbytes","id":3899360,"avatar_url":"https://avatars.githubusercontent.com/u/3899360?v=3","gravatar_id":"","url":"https://api.github.com/users/iamgoodbytes","html_url":"https://github.com/iamgoodbytes","followers_url":"https://api.github.com/users/iamgoodbytes/followers","following_url":"https://api.github.com/users/iamgoodbytes/following{/other_user}","gists_url":"https://api.github.com/users/iamgoodbytes/gists{/gist_id}","starred_url":"https://api.github.com/users/iamgoodbytes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamgoodbytes/subscriptions","organizations_url":"https://api.github.com/users/iamgoodbytes/orgs","repos_url":"https://api.github.com/users/iamgoodbytes/repos","events_url":"https://api.github.com/users/iamgoodbytes/events{/privacy}","received_events_url":"https://api.github.com/users/iamgoodbytes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T20:24:38Z","updated_at":"2015-07-06T20:30:32Z","closed_at":null,"body":"I'm not sure why, but when I upload a certain portrait image, it gets rotated to a landscape image, which shouldn't happen. The original image is \"480 × 640\", and I'm using the code below to resize (if necessary) to a maximum of 1024 pixels. \r\n\r\n\\Image::make(Request::file('image'))->resize(1024, null, function($constraint){ $constraint->upsize(); $constraint->aspectRatio(); })->save(\"useruploads/\".$image_name);\r\n\r\nThis is my test image if anyone would like to try it out.\r\n\r\n![img_3210](https://cloud.githubusercontent.com/assets/3899360/8532336/c42bbef0-242d-11e5-90a1-2078cd3811eb.JPG)\r\n\r\nWhat's extra weird, is that github is also rotating the image after uploading, here is the original one take with an iphone: http://cl.ly/image/0h2m0H1o0D0m\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Intervention/image/issues/comments/118989122","html_url":"https://github.com/Intervention/image/issues/392#issuecomment-118989122","issue_url":"https://api.github.com/repos/Intervention/image/issues/392","id":118989122,"user":{"login":"olivervogel","id":884642,"avatar_url":"https://avatars.githubusercontent.com/u/884642?v=3","gravatar_id":"","url":"https://api.github.com/users/olivervogel","html_url":"https://github.com/olivervogel","followers_url":"https://api.github.com/users/olivervogel/followers","following_url":"https://api.github.com/users/olivervogel/following{/other_user}","gists_url":"https://api.github.com/users/olivervogel/gists{/gist_id}","starred_url":"https://api.github.com/users/olivervogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivervogel/subscriptions","organizations_url":"https://api.github.com/users/olivervogel/orgs","repos_url":"https://api.github.com/users/olivervogel/repos","events_url":"https://api.github.com/users/olivervogel/events{/privacy}","received_events_url":"https://api.github.com/users/olivervogel/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T20:30:32Z","updated_at":"2015-07-06T20:30:32Z","body":"Have you tried to use [orientate()] to correct image orientation after uploading?\r\n\r\n```php\r\n$img = \\Image::make(Request::file('image'));\r\n$img->orientate();\r\n$img->resize(1024, null, function($constraint){ \r\n    $constraint->upsize();\r\n    $constraint->aspectRatio();\r\n});\r\n$img->save(\"useruploads/\".$image_name);\r\n```"}}