advanced-cropper / vue-advanced-cropper

The advanced vue cropper library that gives you opportunity to create your own croppers suited for any website design
https://advanced-cropper.github.io/vue-advanced-cropper/
Other
931 stars 130 forks source link

Feature Request Extend Crop Data in getResult #226

Closed nseb closed 1 year ago

nseb commented 1 year ago

Hello, I find the library really good because it is very complete, for me it would lack more exhaustive information when you do a flip, rotae or zoom to retrieve the information in the getResult like the coordinates of the crop. A bit like in this example:

Best Regards

Norserium commented 1 year ago

@nseb, I'm currently rewriting this library to correspond the API of react-advanced-cropper (another my library), so the getResult will be deleted. You will be able to get the desired result by getTransforms method.

In the current version you can get the transforms from the image property:

const result = this.$refs.cropper?.getResult();
if (result) {
    const { transforms } = result.image;
}
nseb commented 1 year ago

@Norserium , thank you for your return it works, the telegram version in react is great ;-)

Norserium commented 1 year ago

@nseb, you are welcome!

the telegram version in react is great ;-)

The good news is it will be ported to Vue too.

nseb commented 1 year ago

@Norserium thanks ;-) , sorry for the late reply