Coder Social home page Coder Social logo

Comments (7)

Norserium avatar Norserium commented on May 21, 2024 1

I suppose, that the problem is that you replace your original image by a cropped image.

Look at the demo please. Could you fix it to correspondent your specific problem?

from vue-advanced-cropper.

Norserium avatar Norserium commented on May 21, 2024 1

I've added getResult method in 0.8.3. The example of using this method is here.

from vue-advanced-cropper.

nekooee avatar nekooee commented on May 21, 2024 1

Yes. my problem solved. thanks

from vue-advanced-cropper.

Norserium avatar Norserium commented on May 21, 2024

Hello!

Currently, you are able to get the result only by subscribing to change event.
https://norserium.github.io/vue-advanced-cropper/tutorials/recipes.html#getting-result

It emits on every change of cropped area or image.

Do you need a special method to get the result (via ref, for example)? Why does it suit more to your goals than subscribing to event?

I can add the method getResult. So you will be able to do something like that:

const {coordinates, canvas} = this.$refs.cropper.getResult()

from vue-advanced-cropper.

nekooee avatar nekooee commented on May 21, 2024

1- my image bind with the input form. when getting the result from a change event and set direct in form, it is repeated in the loop. see below:

error

2- The user expects, after the area he chose, with the key or double-click it to confirm and close the component, or it is canceled.

I try to create a custom component and emit results, my self. I use your custom sample code but I get the error : Height undefine

from vue-advanced-cropper.

nekooee avatar nekooee commented on May 21, 2024

very thank you.

from vue-advanced-cropper.

Norserium avatar Norserium commented on May 21, 2024

You are welcome! Did it solve your problem?

from vue-advanced-cropper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.