Hi,
I have an issue to load image with dimensions equals (also the minimum dimensions I configured) to the asspect ratio.
for example:
the image dimensions is exacly width: 1500px and height: 375px.
when using the following asspect ratio:
{
minAspectRatio: 4 / 1,
maxAspectRatio: 4 / 1
}
the stencil deminisions is 0 for width, height, left, top and also a console error received with the following message:
" (index):1 Uncaught (in promise) Current aspect ratio can't is uncompatible with minimum/maximum height and width settings. Can't setup default coordinates"
when using the following ratio:
{
minAspectRatio: 1 / 1,
maxAspectRatio: 1 / 1
}
It's working perfect.
the total conponent configuration i'm passing into the cropper:
`
<Cropper ref="cropper"
:src="file"
class="cropper-element"
areaClassname="copperContainer"
:restrictions="resPixels"
:minHeight="375"
:minWidth="1500"
:stencilProps="{
minAspectRatio: 4 / 1,
maxAspectRatio: 4 / 1
}"
@change="change">
resPixels(minWidth, minHeight, maxWidth, maxHeight, imageWidth, imageHeight) {
return {
minWidth: this.minWidth > 400 ? this.minHeight * this.cropperRatio.maxAspectRatio : minWidth,
minHeight: this.minHeight > 400 ? this.minHeight : minHeight,
maxWidth: imageWidth,
maxHeight: imageHeight
}
}
`
Please your kind help for detecting if it's a bug or a configuration issue.
Itsik.