我正在使用cropper.js的jquery版本。脚本到目前为止运行良好。
但是我无法完成一件事。我想以16/9的宽高比裁剪图像,宽度为280px,高度为158px。
那个脚本有可能吗?
我有以下选择,但似乎都不满足我的需求:
minContainerWidth
Type: Number
Default: 200
The minimum width of the container.
minContainerHeight
Type: Number
Default: 100
The minimum height of the container.
minCanvasWidth
Type: Number
Default: 0
The minimum width of the canvas (image wrapper).
minCanvasHeight
Type: Number
Default: 0
The minimum height of the canvas (image wrapper).
minCropBoxWidth
Type: Number
Default: 0
The minimum width of the crop box.
Note: This size is relative to the page, not the image.
minCropBoxHeight
Type: Number
Default: 0
The minimum height of the crop box.
Note: This size is relative to the page, not the image.