Image Cropper

Image Cropper (ODC)

Stable version 0.1.0 (Compatible with ODC)
Uploaded on 26 Mar by Community Labs
Image Cropper

Image Cropper (ODC)

Documentation
0.1.0

1️⃣ CropImageWithImageURI

Description: Crops an image using a URI (file path).
Input Parameters:

  • URI (Text) – Path of the image to crop.

  • Image_Width (Integer) – Desired width of the cropped image.

  • Image_Height (Integer) – The desired height of the cropped image.

  • Is_AllowRotate (Boolean) – Enable or disable rotation.

  • Is_keepCropAspectRatio (Boolean) – Maintain aspect ratio if True.

  • Is_showCropGrid (Boolean) – Show crop grid overlay.

  • CropperTitle (Text) – Custom title for the cropping dialog.

Output Parameters:

  • Is_Success (Boolean)True if cropping was successful.

  • OutURI (Text) – URI of the cropped image.


2️⃣ ImageCrop

Description: Crops an image using binary data instead of URI.
Input Parameters:

  • Image (Binary) – Image data to be cropped.

  • Image_Width (Integer) – Desired width.

  • Image_Height (Integer) – Desired height.

  • Is_AllowRotate (Boolean) – Enable rotation.

  • Is_keepCropAspectRatio (Boolean) – Maintain aspect ratio.

  • Is_showCropGrid (Boolean) – Display crop grid.

  • CropperTitle (Text) – Title for the crop interface.

Output Parameters:

  • OutImage (Binary) – Cropped image as binary data.

  • Is_Success (Boolean)True if successful.


3️⃣ Is_Available

Description: Check if the CordovaCropper plugin is available on the device.
Output Parameters:

  • Is_Available (Boolean)True if the plugin is installed and functional.

  • ErrorStruct (Structure) – Contains error details if the plugin is missing.