Coder Social home page Coder Social logo

Comments (5)

Norserium avatar Norserium commented on May 18, 2024 3

Hello, @andreasvirkus!

First of all, thanks for so detailed the issue description.

Unfortunately, it's not possible by the means of this library, because the stencil just defines the rectangle area that will be cropped. Moreover, it's pretty often practice to crop a square by the circle stencil.

But you can anyway process a rectangle canvas to get the needed result (if you want to use this method, test it on different browsers before to use one in production):
https://codesandbox.io/s/vue-xeb59

from vue-advanced-cropper.

andreasvirkus avatar andreasvirkus commented on May 18, 2024

Well, that seems to work perfectly! 🎉 Thank you so much, my canvas-fu was too weak for this

from vue-advanced-cropper.

Norserium avatar Norserium commented on May 18, 2024

You are welcome!

from vue-advanced-cropper.

yellow1912 avatar yellow1912 commented on May 18, 2024

This is great content, please add it to the document if you can. It will save people like me tons of time digging the old issues.

from vue-advanced-cropper.

Norserium avatar Norserium commented on May 18, 2024

@yellow1912 , I will try to think out how to place it in the documentation, taking into account that the mentioned issues are still edge cases.

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.