Open salahy2 opened 7 years ago
To find offset you can use api onOffsetChange
. To find the width and height you can user api onImageLoaded
like this
onImageLoaded = function() {
console.log(this.$preview.width());
console.log(this.$preview.height());
};
@Fahri5567 your code provide height and width of original image, not the croped image height and widht?
Hello, I am using this library http://image.intervention.io/api/crop to crop the image, it take x and y, I tried to use the offsets but they are wrong, can anyone help me ?
Thanks