{"action":"created","comment":{"url":"https://api.github.com/repos/crdschurch/crds-angular/pulls/comments/43547581","id":43547581,"diff_hunk":"@@ -12,12 +18,33 @@\n     vm.init = false;\n \n     function handleFileSelect(evt) {\n-      var file = evt.currentTarget.files[0];\n+      var options = {\n+      };\n+     var file = evt.currentTarget.files[0];\n+\n+     loadImage.parseMetaData(file, function (data) {\n+        if (data.exif) {\n+            options.orientation = data.exif.get('Orientation');\n+        }\n+      }); \n+\n       var reader = new FileReader();\n-      reader.onload = function(evt) {\n-        $scope.$apply(function($scope) {\n-          vm.myImage = evt.target.result;\n-        });\n+      //reader.onload = function(evt) {\n+                //$scope.$apply(function($scope) {\n+                            //vm.myImage = evt.target.result;\n+                                    //});\n+                      /*};*/\n+        reader.onload = function(readFile) {\n+        loadImage(\n+          readFile.target.result,\n+          function(f) {\n+            var u = f.toDataURL();","path":"crossroads.net/app/common/profile/picture/changeProfileImage.controller.js","position":43,"original_position":43,"commit_id":"f73b1efebd7788377614dc3e6afed8522b717c8b","original_commit_id":"f73b1efebd7788377614dc3e6afed8522b717c8b","user":{"login":"andycanterbury","id":10052615,"avatar_url":"https://avatars.githubusercontent.com/u/10052615?v=3","gravatar_id":"","url":"https://api.github.com/users/andycanterbury","html_url":"https://github.com/andycanterbury","followers_url":"https://api.github.com/users/andycanterbury/followers","following_url":"https://api.github.com/users/andycanterbury/following{/other_user}","gists_url":"https://api.github.com/users/andycanterbury/gists{/gist_id}","starred_url":"https://api.github.com/users/andycanterbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andycanterbury/subscriptions","organizations_url":"https://api.github.com/users/andycanterbury/orgs","repos_url":"https://api.github.com/users/andycanterbury/repos","events_url":"https://api.github.com/users/andycanterbury/events{/privacy}","received_events_url":"https://api.github.com/users/andycanterbury/received_events","type":"User","site_admin":false},"body":"var u? f? descriptive names!","created_at":"2015-10-30T20:17:49Z","updated_at":"2015-10-30T20:17:49Z","html_url":"https://github.com/crdschurch/crds-angular/pull/1099#discussion_r43547581","pull_request_url":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099","_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-angular/pulls/comments/43547581"},"html":{"href":"https://github.com/crdschurch/crds-angular/pull/1099#discussion_r43547581"},"pull_request":{"href":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099"}}},"pull_request":{"url":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099","id":49316286,"html_url":"https://github.com/crdschurch/crds-angular/pull/1099","diff_url":"https://github.com/crdschurch/crds-angular/pull/1099.diff","patch_url":"https://github.com/crdschurch/crds-angular/pull/1099.patch","issue_url":"https://api.github.com/repos/crdschurch/crds-angular/issues/1099","number":1099,"state":"open","locked":false,"title":"Defect/de558 profile image issues","user":{"login":"silbermm","id":42816,"avatar_url":"https://avatars.githubusercontent.com/u/42816?v=3","gravatar_id":"","url":"https://api.github.com/users/silbermm","html_url":"https://github.com/silbermm","followers_url":"https://api.github.com/users/silbermm/followers","following_url":"https://api.github.com/users/silbermm/following{/other_user}","gists_url":"https://api.github.com/users/silbermm/gists{/gist_id}","starred_url":"https://api.github.com/users/silbermm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silbermm/subscriptions","organizations_url":"https://api.github.com/users/silbermm/orgs","repos_url":"https://api.github.com/users/silbermm/repos","events_url":"https://api.github.com/users/silbermm/events{/privacy}","received_events_url":"https://api.github.com/users/silbermm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-30T20:05:59Z","updated_at":"2015-10-30T20:17:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de53880a36dc44e25afcf0fed4c6c90b889d8fc6","assignee":null,"milestone":{"url":"https://api.github.com/repos/crdschurch/crds-angular/milestones/7","html_url":"https://github.com/crdschurch/crds-angular/milestones/Jamie%20Reviews%20Profile","labels_url":"https://api.github.com/repos/crdschurch/crds-angular/milestones/7/labels","id":1383904,"number":7,"title":"Jamie Reviews Profile","description":null,"creator":{"login":"silbermm","id":42816,"avatar_url":"https://avatars.githubusercontent.com/u/42816?v=3","gravatar_id":"","url":"https://api.github.com/users/silbermm","html_url":"https://github.com/silbermm","followers_url":"https://api.github.com/users/silbermm/followers","following_url":"https://api.github.com/users/silbermm/following{/other_user}","gists_url":"https://api.github.com/users/silbermm/gists{/gist_id}","starred_url":"https://api.github.com/users/silbermm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silbermm/subscriptions","organizations_url":"https://api.github.com/users/silbermm/orgs","repos_url":"https://api.github.com/users/silbermm/repos","events_url":"https://api.github.com/users/silbermm/events{/privacy}","received_events_url":"https://api.github.com/users/silbermm/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2015-10-29T17:16:38Z","updated_at":"2015-10-30T20:08:57Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099/commits","review_comments_url":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099/comments","review_comment_url":"https://api.github.com/repos/crdschurch/crds-angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crdschurch/crds-angular/issues/1099/comments","statuses_url":"https://api.github.com/repos/crdschurch/crds-angular/statuses/f73b1efebd7788377614dc3e6afed8522b717c8b","head":{"label":"crdschurch:defect/DE558-ProfileImageIssues","ref":"defect/DE558-ProfileImageIssues","sha":"f73b1efebd7788377614dc3e6afed8522b717c8b","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":26870034,"name":"crds-angular","full_name":"crdschurch/crds-angular","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-angular","description":"Starting point for angular development at crossroads","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-angular","forks_url":"https://api.github.com/repos/crdschurch/crds-angular/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-angular/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-angular/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-angular/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-angular/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-angular/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-angular/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-angular/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-angular/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-angular/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-angular/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-angular/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-angular/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-angular/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-angular/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-angular/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-angular/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-angular/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-angular/releases{/id}","created_at":"2014-11-19T16:21:09Z","updated_at":"2015-05-08T20:23:10Z","pushed_at":"2015-10-30T20:05:59Z","git_url":"git://github.com/crdschurch/crds-angular.git","ssh_url":"git@github.com:crdschurch/crds-angular.git","clone_url":"https://github.com/crdschurch/crds-angular.git","svn_url":"https://github.com/crdschurch/crds-angular","homepage":null,"size":32987,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"development"}},"base":{"label":"crdschurch:development","ref":"development","sha":"7ae15c506292a372ed7c59a087030cb3a4bd30fe","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":26870034,"name":"crds-angular","full_name":"crdschurch/crds-angular","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-angular","description":"Starting point for angular development at crossroads","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-angular","forks_url":"https://api.github.com/repos/crdschurch/crds-angular/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-angular/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-angular/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-angular/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-angular/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-angular/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-angular/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-angular/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-angular/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-angular/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-angular/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-angular/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-angular/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-angular/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-angular/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-angular/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-angular/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-angular/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-angular/releases{/id}","created_at":"2014-11-19T16:21:09Z","updated_at":"2015-05-08T20:23:10Z","pushed_at":"2015-10-30T20:05:59Z","git_url":"git://github.com/crdschurch/crds-angular.git","ssh_url":"git@github.com:crdschurch/crds-angular.git","clone_url":"https://github.com/crdschurch/crds-angular.git","svn_url":"https://github.com/crdschurch/crds-angular","homepage":null,"size":32987,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099"},"html":{"href":"https://github.com/crdschurch/crds-angular/pull/1099"},"issue":{"href":"https://api.github.com/repos/crdschurch/crds-angular/issues/1099"},"comments":{"href":"https://api.github.com/repos/crdschurch/crds-angular/issues/1099/comments"},"review_comments":{"href":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099/comments"},"review_comment":{"href":"https://api.github.com/repos/crdschurch/crds-angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crdschurch/crds-angular/pulls/1099/commits"},"statuses":{"href":"https://api.github.com/repos/crdschurch/crds-angular/statuses/f73b1efebd7788377614dc3e6afed8522b717c8b"}}}}