jquery-cropper | A jQuery plugin wrapper for Cropper.js | Computer Vision library
kandi X-RAY | jquery-cropper Summary
kandi X-RAY | jquery-cropper Summary
A jQuery plugin wrapper for Cropper.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Interpolate an exception with an exception property .
jquery-cropper Key Features
jquery-cropper Examples and Code Snippets
Community Discussions
Trending Discussions on jquery-cropper
QUESTION
Cropper.js works fine for the first image. When I upload a new image and then crop it, #result appended with two images. For the third uploaded image #result is appended with three(!) images. I can't figure out by myself why this function ($("#btnCrop").on("mouseup", function()) executes more and more every time I upload new image. Any ideas?
...ANSWER
Answered 2019-Jun-04 at 12:43The problem is that every time you select an image, you find the click event to $("#btnCrop")
. So thats why it runs multiple times.
Solution is to move the click event out. Look at the code below.
QUESTION
I'm making a project using jquery-cropper (https://fengyuanchen.github.io/jquery-cropper/).
I need to get the coordinates of the crop rectangle. The method getCropBoxData()
return those coordinates, but I can't get what units it's using, and the documentation doesn't mention them.
Check the picture of the demo page I'm attaching. The fields at the right show the current position of the crop in pixels, but if you press [Get Crop Box Data], you get totally different values at the bottom. Any ideas?
...ANSWER
Answered 2018-Nov-29 at 01:53I will answer my question. For this specific issue, I found that getData
method returns the crop coordinates in pixels, the same values that appear at the right in the demo page. This should be useful for anybody that need to get the crop info. About getCropBoxData
, still not sure what units are those.
QUESTION
I am using the awesome jquery-cropper plugin from fengyuanchen.
I'm having the issue of when certain images get uploaded it rotates and it is not on the right side which I have to make the user rotate them. I will upload the image via ajax
. I'm getting the error rotate is not defined
which I have been stuck a couple of hours.
ANSWER
Answered 2018-May-19 at 18:57Really stupid mistake. Instead of:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jquery-cropper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page