{"action":"created","issue":{"url":"https://api.github.com/repos/AllanBishop/angular-img-cropper/issues/3","labels_url":"https://api.github.com/repos/AllanBishop/angular-img-cropper/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/AllanBishop/angular-img-cropper/issues/3/comments","events_url":"https://api.github.com/repos/AllanBishop/angular-img-cropper/issues/3/events","html_url":"https://github.com/AllanBishop/angular-img-cropper/issues/3","id":77581934,"number":3,"title":"Is it possible to limit the size of the cropping area ?","user":{"login":"HadrienPierart","id":738871,"avatar_url":"https://avatars.githubusercontent.com/u/738871?v=3","gravatar_id":"","url":"https://api.github.com/users/HadrienPierart","html_url":"https://github.com/HadrienPierart","followers_url":"https://api.github.com/users/HadrienPierart/followers","following_url":"https://api.github.com/users/HadrienPierart/following{/other_user}","gists_url":"https://api.github.com/users/HadrienPierart/gists{/gist_id}","starred_url":"https://api.github.com/users/HadrienPierart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HadrienPierart/subscriptions","organizations_url":"https://api.github.com/users/HadrienPierart/orgs","repos_url":"https://api.github.com/users/HadrienPierart/repos","events_url":"https://api.github.com/users/HadrienPierart/events{/privacy}","received_events_url":"https://api.github.com/users/HadrienPierart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-18T09:35:21Z","updated_at":"2015-05-18T12:57:12Z","closed_at":null,"body":"I dont think I have seen that in the params of the directive but I would be great to be able to limit the options regarding the cropping area. For instance, I would like to be able to say : \r\nMy cropping tool must be a squate, not a rectangle.\r\nMy cropping tool cannot have a smaller width and height than 600px\r\n\r\nIt would be great for when you want to send picture of at least a certain size or format."},"comment":{"url":"https://api.github.com/repos/AllanBishop/angular-img-cropper/issues/comments/103051308","html_url":"https://github.com/AllanBishop/angular-img-cropper/issues/3#issuecomment-103051308","issue_url":"https://api.github.com/repos/AllanBishop/angular-img-cropper/issues/3","id":103051308,"user":{"login":"AllanBishop","id":303513,"avatar_url":"https://avatars.githubusercontent.com/u/303513?v=3","gravatar_id":"","url":"https://api.github.com/users/AllanBishop","html_url":"https://github.com/AllanBishop","followers_url":"https://api.github.com/users/AllanBishop/followers","following_url":"https://api.github.com/users/AllanBishop/following{/other_user}","gists_url":"https://api.github.com/users/AllanBishop/gists{/gist_id}","starred_url":"https://api.github.com/users/AllanBishop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllanBishop/subscriptions","organizations_url":"https://api.github.com/users/AllanBishop/orgs","repos_url":"https://api.github.com/users/AllanBishop/repos","events_url":"https://api.github.com/users/AllanBishop/events{/privacy}","received_events_url":"https://api.github.com/users/AllanBishop/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T12:57:12Z","updated_at":"2015-05-18T12:57:12Z","body":"You can ensure that the cropping tool is square by setting the crop-width and crop-height to the same number and ensuring keep-aspect is true.\r\n\r\nThe crop-width and crop-height will ensure the image is of a certain size but there is no feature for allowing a variety of sizes with a threshold. \r\n\r\nMy main goal for the cropping tool was to ensure images on the server would be one particular size that the user could then crop for. Certainly possible to add that feature but I want to avoid cluttering the tool with too many parameters.\r\n"}}