[Cropper] Fixing height and width of cropper

[Cropper] Fixing height and width of cropper

  
Forge Component
(2)
Published on 2016-10-11 by OutSystems Labs
2 votes
Published on 2016-10-11 by OutSystems Labs

I am working the with cropper tool and would like to know how to fix the height and width based on px.

Here are how my options are set

SyntaxEditor Code Snippet

"{
  aspectRatio: 1,
  guides: false,
  strict: false,
  highlight: false,
  dragCrop: false,
  movable: false,
  resizable: false,
  rotatable: false,
  cropBoxResizable: false,
minCropBoxWidth: 50,
minCropBoxHeight: 50
}"

https://github.com/fengyuanchen/cropper/













Enables you to crop images on your applications, including support for real-time previews. Note: May not work properly with very large images. Based on http://fengyuanchen.github.io/cropper/





Categories




Widgets






Tags




cropperphotocrop





Hi Steve,

Please check https://github.com/fengyuanchen/cropperjs#options for the correct cropperjs options naming. 

Regards