我在angularjs应用程序中使用ng-file-upload和ng-img-crop。我希望能够在裁剪之前更改图像方向。我怎么能这样做?
CSS:
.cropArea {
background: #E4E4E4;
overflow: hidden;
width: 100%;
height: 250px;
}
HTML
<div class="upload-section">
<label class="upload-image" ngf-select ng-model="picFile"></label>
</div>
<div class="cropArea">
<img-crop image="picFile | ngfDataUrl" area-type="rectangle" aspect-ratio="1.5" result-image="croppedDataUrl" result-image-size="'max'" ng-init="croppedDataUrl=''"></img-crop>
</div>