Open arun-chief opened 7 years ago
currently using
$(function () { $('.image-editor').cropit({ smallImage: 'allow', imageBackground: true, imageBackgroundBorderWidth: 15, imageBackgroundBorderHeight: 15, exportZoom: 3//, //quality: 0.5 }); });
to export
function CropThis() { var imageData = $('.image-editor').cropit('export', { type: 'image/jpeg'//, //quality: 0.33 //originalSize: true, //exportZoom: 3 }); $('.hidden-image-data').val(imageData);
} this scales the image event if the image is small, which is what i want to avoid
currently using
$(function () { $('.image-editor').cropit({ smallImage: 'allow', imageBackground: true, imageBackgroundBorderWidth: 15, imageBackgroundBorderHeight: 15, exportZoom: 3//, //quality: 0.5 }); });
to export
} this scales the image event if the image is small, which is what i want to avoid