angular-image-cropper
angular-image-cropper copied to clipboard
Remove rotate control buttons
Hello !
I'm looking for a way to not display rotate buttons controls can you help me ?
Maybe you can help me with another issue, i'm using ionic and i want to apply crop changes on another button located in a ion-footer. My save button call the same function but the image isn't cropped when i save :
` <ion-content>
<ion-list>
<ion-item>
<div class="imgCropper_layer"></div>
<img ng-if="!image_cropper_url" src="{{profil.image}}" alt="" style="width: 100%; height: 300px; overflow:hidden">
<img ng-src="imageURI" alt="" style="display: none">
<image-cropper class="crop_container" image-url={{image_cropper_url}}
width="500"
height="300"
show-controls="true"
fit-on-init="true"
center-on-init="true"
zoom-step="0.05"
crop-callback="update_result_cropper_image"
action-labels="my_cropper_button_labels"
ng-if="image_cropper_url"
></image-cropper>
</ion-item>
</ion-list>
<div class="margin-auto text-center">
<button class="button button-large button-default btn-rounded" ng-click="get_photo()">{{"prendre_photo" | translate}}</button>
<br>
<br>
<span class="text-center">Ou</span>
<br>
<input type="file" class="custom-file-input" onchange="angular.element(this).scope().setFile(this)" placeholder="." accept="image/*"/>
</div>
</ion-content>
<ion-footer-bar>
<button class="button button-block button-large button-positive " ng-click="update_result_cropper_image()">{{"sauvegarder" | translate}}</button>
</ion-footer-bar>`
Thank you for you help !