[Cropper] Fixing height and width of cropper

[Cropper] Fixing height and width of cropper

Forge Component
Published on 12 Oct by Sofia Mourato
2 votes
Published on 12 Oct by Sofia Mourato

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


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/





Hi Steve,

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