I sucessfully implement the cropper on my project but its not usable on mobile because the image is always bigger than the modal container (the cropper is inside a modal) andi cannot see all the image on mobile res.
I tried several combinations of max-widths, widths, on cantainers, on the img tag but cannot do it, i have set:
minContainerWidth: 568,
minContainerHeight: 320
If i remove it, it works but then its too small on mobile and super small on PC
Hello,
I sucessfully implement the cropper on my project but its not usable on mobile because the image is always bigger than the modal container (the cropper is inside a modal) andi cannot see all the image on mobile res.
I tried several combinations of max-widths, widths, on cantainers, on the img tag but cannot do it, i have set:
minContainerWidth: 568, minContainerHeight: 320
If i remove it, it works but then its too small on mobile and super small on PC
Heres my setup:
reader.onloadend = function () { $cropperModal.find('.image-container').html($img); $img.attr('src', reader.result); $img.cropper({ preview: '.image-preview', aspectRatio: 16 / 11, autoCropArea: 1, movable: false, cropBoxResizable: true, minContainerWidth: 568, minContainerHeight: 320 }); };
MODAL:
var modalTemplate = '' + '
@lang('popups.crop_img')
' + '@lang('popups.crop_img_desc')
' + 'i want to set like a max size, and that the cropper stuff adapts to the screen, sorry to ask here but i am trying for hours and still couldnt do it.
Thanks