{"action":"closed","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1345","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1345/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1345/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1345/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1345","id":133180013,"number":1345,"title":"Dynamic ngf-resize","user":{"login":"rkusuma","id":5705492,"avatar_url":"https://avatars.githubusercontent.com/u/5705492?v=3","gravatar_id":"","url":"https://api.github.com/users/rkusuma","html_url":"https://github.com/rkusuma","followers_url":"https://api.github.com/users/rkusuma/followers","following_url":"https://api.github.com/users/rkusuma/following{/other_user}","gists_url":"https://api.github.com/users/rkusuma/gists{/gist_id}","starred_url":"https://api.github.com/users/rkusuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkusuma/subscriptions","organizations_url":"https://api.github.com/users/rkusuma/orgs","repos_url":"https://api.github.com/users/rkusuma/repos","events_url":"https://api.github.com/users/rkusuma/events{/privacy}","received_events_url":"https://api.github.com/users/rkusuma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-12T07:53:49Z","updated_at":"2016-03-11T16:37:00Z","closed_at":"2016-03-11T16:37:00Z","body":"Hi @danialfarid ,\r\n\r\nCan i construct ngf-resize object dynamically? For example:\r\nif the original image width greater than 1000px i want to use `{width: 1000, quality: .8, restoreExif: false}`\r\nelse `{quality: .8, restoreExif: false}`\r\n\r\nThank You"}}