Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bilalucar/e7034738ba3da379a7c0ec7b003d98fb to your computer and use it in GitHub Desktop.
Save bilalucar/e7034738ba3da379a7c0ec7b003d98fb to your computer and use it in GitHub Desktop.
Crop and Resize Images With This Simple jQuery Plugin
$('#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