{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1573","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1573/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1573/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1573/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1573","id":159769475,"number":1573,"title":"ngf-fix-orientation creates invalid image file due to misinterpretation of exif metadata","user":{"login":"sandronm","id":17686013,"avatar_url":"https://avatars.githubusercontent.com/u/17686013?v=3","gravatar_id":"","url":"https://api.github.com/users/sandronm","html_url":"https://github.com/sandronm","followers_url":"https://api.github.com/users/sandronm/followers","following_url":"https://api.github.com/users/sandronm/following{/other_user}","gists_url":"https://api.github.com/users/sandronm/gists{/gist_id}","starred_url":"https://api.github.com/users/sandronm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandronm/subscriptions","organizations_url":"https://api.github.com/users/sandronm/orgs","repos_url":"https://api.github.com/users/sandronm/repos","events_url":"https://api.github.com/users/sandronm/events{/privacy}","received_events_url":"https://api.github.com/users/sandronm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-11T11:33:53Z","updated_at":"2016-06-11T13:27:47Z","closed_at":null,"body":"Hello!\r\n\r\nI want to display a thumbnail of my uploaded image.\r\nFor portrait image, I must use ngf-fix-orientation=\"true\" to display correctly the thumbnail.\r\nProblem: sometime the generated image is invalid (black background...)\r\nThis never occurs when I upload a landscape image so yes, the problem comes from ngf-fix-orientation.\r\n\r\nI tried with Firefox (latest version), Chrome (latest version) on my app but also in your demo (https://angular-file-upload.appspot.com/)\r\n\r\nAfter investigation, this comes from a misinterpretation of exif metadata.\r\nI always have the problem when I upload this image:\r\n[Image 1](https://kod-it.be/ng/1.jpg)\r\nBut never with this image:\r\n[Image 2](https://kod-it.be/ng/2.jpg)\r\n\r\nIf it could help, when I open image 1 with GIMP, the program asks me if I want to rotate the image according the exif metadata as you can see (sorry it's in french): [GIMP dialog](https://kod-it.be/ng/gimp.jpg)\r\n\r\nGIMP doesn't ask me anything when I open Image 2.\r\n\r\nBut as you can see, the EXIF metadata are setted in Image 1 because GIMP asks me if I want to use them to rotate my photo.\r\nBut ngf-fix-orientation cannot do that.\r\n\r\nThank you for your help!"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/225361700","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1573#issuecomment-225361700","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1573","id":225361700,"user":{"login":"danialfarid","id":1676054,"avatar_url":"https://avatars.githubusercontent.com/u/1676054?v=3","gravatar_id":"","url":"https://api.github.com/users/danialfarid","html_url":"https://github.com/danialfarid","followers_url":"https://api.github.com/users/danialfarid/followers","following_url":"https://api.github.com/users/danialfarid/following{/other_user}","gists_url":"https://api.github.com/users/danialfarid/gists{/gist_id}","starred_url":"https://api.github.com/users/danialfarid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialfarid/subscriptions","organizations_url":"https://api.github.com/users/danialfarid/orgs","repos_url":"https://api.github.com/users/danialfarid/repos","events_url":"https://api.github.com/users/danialfarid/events{/privacy}","received_events_url":"https://api.github.com/users/danialfarid/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T13:27:47Z","updated_at":"2016-06-11T13:27:47Z","body":"Reading is fine, the problem is rotating it and adding the exif data back to the image."}}
{"actor":{"display_login":"danialfarid"}}