在我的angular 9项目中,我使用了ngx-image-cropper,它工作得很好。这是我的裁剪代码:
<image-cropper
[imageChangedEvent]="imageChangedEvent"
[imageURL]="imageUrl"
[transform]="transform"
[maintainAspectRatio]="true"
[aspectRatio]="aspectRatio"
[canvasRotation]="canvasRotation"
(imageCropped)="imageCropped($event)"
></image-cropper>
我可以使用裁剪在风景,肖像和正方形的形状,也缩放,旋转,翻转,重置裁剪图像。但是当我改变裁剪宽度时,高度会根据宽度而改变。如何只更改裁剪器的长度或宽度。enter image description here
发布于 2020-06-22 22:39:54
试着改变
[maintainAspectRatio]="false"https://stackoverflow.com/questions/62516840
复制相似问题