{"action":"created","issue":{"url":"https://api.github.com/repos/scottcheng/cropit/issues/129","labels_url":"https://api.github.com/repos/scottcheng/cropit/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/scottcheng/cropit/issues/129/comments","events_url":"https://api.github.com/repos/scottcheng/cropit/issues/129/events","html_url":"https://github.com/scottcheng/cropit/issues/129","id":117678242,"number":129,"title":"no way to load programmatically another image after cropit is created;","user":{"login":"mauromorello","id":3259982,"avatar_url":"https://avatars.githubusercontent.com/u/3259982?v=3","gravatar_id":"","url":"https://api.github.com/users/mauromorello","html_url":"https://github.com/mauromorello","followers_url":"https://api.github.com/users/mauromorello/followers","following_url":"https://api.github.com/users/mauromorello/following{/other_user}","gists_url":"https://api.github.com/users/mauromorello/gists{/gist_id}","starred_url":"https://api.github.com/users/mauromorello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauromorello/subscriptions","organizations_url":"https://api.github.com/users/mauromorello/orgs","repos_url":"https://api.github.com/users/mauromorello/repos","events_url":"https://api.github.com/users/mauromorello/events{/privacy}","received_events_url":"https://api.github.com/users/mauromorello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T20:49:07Z","updated_at":"2015-11-18T22:02:53Z","closed_at":null,"body":"I need to add the ability to rotate image after loaded, using an external button. I found a piece of code that is able to do that by creating a hidden canvas and returning png data, but when I pass it to  the cropic object (like you do in your demo page) cropit seems still keeping the old one. Also when I destroy and create again another istance not work as I expect. I think manual rotating an image is a important feature because a lot mobile devices are not managing well exif/orientation data.\r\nAnd thanks for your work."},"comment":{"url":"https://api.github.com/repos/scottcheng/cropit/issues/comments/157878972","html_url":"https://github.com/scottcheng/cropit/issues/129#issuecomment-157878972","issue_url":"https://api.github.com/repos/scottcheng/cropit/issues/129","id":157878972,"user":{"login":"mauromorello","id":3259982,"avatar_url":"https://avatars.githubusercontent.com/u/3259982?v=3","gravatar_id":"","url":"https://api.github.com/users/mauromorello","html_url":"https://github.com/mauromorello","followers_url":"https://api.github.com/users/mauromorello/followers","following_url":"https://api.github.com/users/mauromorello/following{/other_user}","gists_url":"https://api.github.com/users/mauromorello/gists{/gist_id}","starred_url":"https://api.github.com/users/mauromorello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauromorello/subscriptions","organizations_url":"https://api.github.com/users/mauromorello/orgs","repos_url":"https://api.github.com/users/mauromorello/repos","events_url":"https://api.github.com/users/mauromorello/events{/privacy}","received_events_url":"https://api.github.com/users/mauromorello/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T22:02:53Z","updated_at":"2015-11-18T22:02:53Z","body":"shame on me!\r\n \r\n// Sets image source.\r\n$imageCropper.cropit('imageSrc', 'http://placekitten.com/g/1280/800');\r\n\r\nbut after loaded the new one, it seems not refreshing how \"can I move\" inside the img when I'm zooming, remembering old width and height. In this specific case, I load an horizontal image (i.e. 800x200), then I rotate by 90° and reload in same cropit object. This work, but as I start zooming I notice that I can move only in horizontal direction, but now the image (200x800) need to be dragged in vertical way.\r\n\r\n"}}