We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 226fe89 + f54977d commit 07d3e31Copy full SHA for 07d3e31
Resources/public/js/cropper.js
@@ -172,7 +172,7 @@
172
* Create canvas from cropped image and fill in the hidden input with canvas base64 data.
173
*/
174
Cropper.prototype.crop = function() {
175
- var data = this.$container.$preview.children('img').cropper('getCropBoxData'),
+ var data = this.$container.$preview.children('img').cropper('getData'),
176
image_width = Math.min(this.$el.data('max-width'), data.width),
177
image_height = Math.min(this.$el.data('max-height'), data.height),
178
preview_width = Math.min(this.$container.$canvas.data('preview-width'), data.width),
0 commit comments