Skip to content

Commit 07d3e31

Browse files
authored
Merge pull request #39 from ceesvanegmond/patch-2
Feature: Relatively size save the image
2 parents 226fe89 + f54977d commit 07d3e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/public/js/cropper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
* Create canvas from cropped image and fill in the hidden input with canvas base64 data.
173173
*/
174174
Cropper.prototype.crop = function() {
175-
var data = this.$container.$preview.children('img').cropper('getCropBoxData'),
175+
var data = this.$container.$preview.children('img').cropper('getData'),
176176
image_width = Math.min(this.$el.data('max-width'), data.width),
177177
image_height = Math.min(this.$el.data('max-height'), data.height),
178178
preview_width = Math.min(this.$container.$canvas.data('preview-width'), data.width),

0 commit comments

Comments
 (0)