{"action":"created","issue":{"url":"https://api.github.com/repos/andrefarzat/ng-jcrop/issues/17","labels_url":"https://api.github.com/repos/andrefarzat/ng-jcrop/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/andrefarzat/ng-jcrop/issues/17/comments","events_url":"https://api.github.com/repos/andrefarzat/ng-jcrop/issues/17/events","html_url":"https://github.com/andrefarzat/ng-jcrop/issues/17","id":65977052,"number":17,"title":"Get coords in the controller","user":{"login":"lucas-garcia","id":9852357,"avatar_url":"https://avatars.githubusercontent.com/u/9852357?v=3","gravatar_id":"","url":"https://api.github.com/users/lucas-garcia","html_url":"https://github.com/lucas-garcia","followers_url":"https://api.github.com/users/lucas-garcia/followers","following_url":"https://api.github.com/users/lucas-garcia/following{/other_user}","gists_url":"https://api.github.com/users/lucas-garcia/gists{/gist_id}","starred_url":"https://api.github.com/users/lucas-garcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucas-garcia/subscriptions","organizations_url":"https://api.github.com/users/lucas-garcia/orgs","repos_url":"https://api.github.com/users/lucas-garcia/repos","events_url":"https://api.github.com/users/lucas-garcia/events{/privacy}","received_events_url":"https://api.github.com/users/lucas-garcia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andrefarzat/ng-jcrop/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-02T17:47:07Z","updated_at":"2015-04-02T21:17:27Z","closed_at":null,"body":"Hi André,\r\n\r\nAfter changing the crop selection on the page I want to send the coords to my server so I'll be able to actually crop the real image and save it. But when I try to get the coords, it comes as\r\n\r\n`[Infinity, Infinity, Infinity, Infinity, Infinity, Infinity]`\r\n\r\nIs there a way to get the actual values?"},"comment":{"url":"https://api.github.com/repos/andrefarzat/ng-jcrop/issues/comments/89046806","html_url":"https://github.com/andrefarzat/ng-jcrop/issues/17#issuecomment-89046806","issue_url":"https://api.github.com/repos/andrefarzat/ng-jcrop/issues/17","id":89046806,"user":{"login":"andrefarzat","id":649219,"avatar_url":"https://avatars.githubusercontent.com/u/649219?v=3","gravatar_id":"","url":"https://api.github.com/users/andrefarzat","html_url":"https://github.com/andrefarzat","followers_url":"https://api.github.com/users/andrefarzat/followers","following_url":"https://api.github.com/users/andrefarzat/following{/other_user}","gists_url":"https://api.github.com/users/andrefarzat/gists{/gist_id}","starred_url":"https://api.github.com/users/andrefarzat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrefarzat/subscriptions","organizations_url":"https://api.github.com/users/andrefarzat/orgs","repos_url":"https://api.github.com/users/andrefarzat/repos","events_url":"https://api.github.com/users/andrefarzat/events{/privacy}","received_events_url":"https://api.github.com/users/andrefarzat/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T21:17:27Z","updated_at":"2015-04-02T21:17:27Z","body":"@lucas-garcia well, it is a simple solution. What we can do is change [this line](https://github.com/andrefarzat/ng-jcrop/blob/master/ng-jcrop.js#L275) to check if `maxWidth/maxHeight` is `null` ( or an invalid value ) and (1)throw an Error or set it to empty ( cleaning the css ).\r\nWhat do you think ?"}}