An input for images that allow the user to upload its own picture and allow to crop it
ng-model like an input fieldng-change and ng-disabled/api/v3/files, so you dont have to embarass yourself with how to upload stuff to lucca
ng-model: self explanatoryng-change: self explanatoryis-disabled: if true, will display the picture but not allow uploading/cropping of a new onecropping-ratio: the ratio to use in the cropping modalcropping-disabled: will not display the cropping modalplaceholder-url: the image to display if the model is undefined, if none is defined, will use /static/common/images/placeholder-pp.png
<luid-image-picker ng-model="image"></luid-image-picker> <luid-image-picker ng-model="image" is-disabled="true" ng-change="changed()"></luid-image-picker>
Reroute all calls to https:// authenticated authenticate to be able to upload pictures
Basic use: the containing div of the second one is way larger. The second one is disabled and has a different placeholder.
Cropping disabled and ng-change
With a cropping ratio