protected Uri getOutputUri() {
    Uri outputUri = mOptions.outputUri;
    if (outputUri == null || outputUri.equals(Uri.EMPTY)) {
      try {
        String ext =
            mOptions.outputCompressFormat == Bitmap.CompressFormat.JPEG
                ? ".jpg"
                : mOptions.outputCompressFormat == Bitmap.CompressFormat.PNG ? ".png" : ".webp";
        File directory = new File(getCacheDir() + "/cropped");
        if (!directory.exists()) {
            directory.mkdirs();
        }
        outputUri = Uri.fromFile(File.createTempFile("cropped", ext, directory));
      } catch (IOException e) {
        throw new RuntimeException("Failed to create temp file for output image", e);
      }
    }
    return outputUri;
  }
Get Android uri to save the cropped image into.<br>
Use the given in options or create a temp file.
core/src/main/java/com/theartofdev/edmodo/cropper/CropImageActivity.java