{"action":"created","issue":{"url":"https://api.github.com/repos/MattKetmo/darkroomjs/issues/53","labels_url":"https://api.github.com/repos/MattKetmo/darkroomjs/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/MattKetmo/darkroomjs/issues/53/comments","events_url":"https://api.github.com/repos/MattKetmo/darkroomjs/issues/53/events","html_url":"https://github.com/MattKetmo/darkroomjs/issues/53","id":87925709,"number":53,"title":"How to reload the image?","user":{"login":"z3dev","id":8969165,"avatar_url":"https://avatars.githubusercontent.com/u/8969165?v=3","gravatar_id":"","url":"https://api.github.com/users/z3dev","html_url":"https://github.com/z3dev","followers_url":"https://api.github.com/users/z3dev/followers","following_url":"https://api.github.com/users/z3dev/following{/other_user}","gists_url":"https://api.github.com/users/z3dev/gists{/gist_id}","starred_url":"https://api.github.com/users/z3dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z3dev/subscriptions","organizations_url":"https://api.github.com/users/z3dev/orgs","repos_url":"https://api.github.com/users/z3dev/repos","events_url":"https://api.github.com/users/z3dev/events{/privacy}","received_events_url":"https://api.github.com/users/z3dev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-13T04:21:16Z","updated_at":"2016-02-01T01:19:00Z","closed_at":"2016-01-29T13:53:35Z","body":"Hi Matt and Company,\r\n\r\nI've been playing with Darkroom and like the functionality and design. However, one of the requirements for my website is to allow a user to load a image locally into the browswer, and use Darkroom to change the image. And of course, send the results to the webserver.\r\n\r\nIt's not a slam dunk... Darkroom doesn't provide this functionality, so I had to develop some pretty ugly routines to reset the contents of the Darkroom.canvas and Darkroom.image.\r\n\r\nI think that with a few changes, Darkroom could support this very easily.\r\n"},"comment":{"url":"https://api.github.com/repos/MattKetmo/darkroomjs/issues/comments/177687412","html_url":"https://github.com/MattKetmo/darkroomjs/issues/53#issuecomment-177687412","issue_url":"https://api.github.com/repos/MattKetmo/darkroomjs/issues/53","id":177687412,"user":{"login":"z3dev","id":8969165,"avatar_url":"https://avatars.githubusercontent.com/u/8969165?v=3","gravatar_id":"","url":"https://api.github.com/users/z3dev","html_url":"https://github.com/z3dev","followers_url":"https://api.github.com/users/z3dev/followers","following_url":"https://api.github.com/users/z3dev/following{/other_user}","gists_url":"https://api.github.com/users/z3dev/gists{/gist_id}","starred_url":"https://api.github.com/users/z3dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z3dev/subscriptions","organizations_url":"https://api.github.com/users/z3dev/orgs","repos_url":"https://api.github.com/users/z3dev/repos","events_url":"https://api.github.com/users/z3dev/events{/privacy}","received_events_url":"https://api.github.com/users/z3dev/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T01:19:00Z","updated_at":"2016-02-01T01:19:00Z","body":"Agreed. I provided the example code in order to give you (Darkroom developers) some additional ideas.\r\n\r\nI guess the ugliness comes from scaleImage() and resetImage() functions, where I had to go deep into Darkroom to get the values. Also the duplication of code... If you noticed."}}