code: public void crop(Type type) {
          cropper.croppie("result", type.getName()).then((result) -> {
              CropEvent.fire(this, result.toString());
              return true;
          }
docs: Cropped the image with give result type.
  Make sure you are registering the cropevent which returns
  the Result Cropped Data.