ngImgCrop
ngImgCrop copied to clipboard
how can I initialize the area size
it is set to 200px by default, but I want to set other value
I have the same question. Is it possible to set the default sizing area after an image did load?
It would be nice if this directive supports area-init-size
You could use the min-area-size
directive to set the value to lets say 200 (200x200)
min-area-size="minAreaSize"
if the container is around that size. Then you would make use of the on-load-done="doneLoading()"
and in your controller you would change the min-area-size back to lets say 80
$scope.doneLoading = function(){
$scope.minAreaSize = 80;
}