Created
July 25, 2017 14:38
-
-
Save bilalucar/e7034738ba3da379a7c0ec7b003d98fb to your computer and use it in GitHub Desktop.
Crop and Resize Images With This Simple jQuery Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#image').cropper({ | |
aspectRatio: 16 / 9, | |
crop: function(e) { | |
// Output the result data for cropping image. | |
console.log(e.x); | |
console.log(e.y); | |
console.log(e.width); | |
console.log(e.height); | |
console.log(e.rotate); | |
console.log(e.scaleX); | |
console.log(e.scaleY); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment