Skip to content

Instantly share code, notes, and snippets.

@r-ranger
r-ranger / smartCropper.fsx
Last active September 4, 2025 15:13
ID-Photo-Cropper
// smartCropper.fsx - Crop images using IdCropper or SmartCropper
//
// USAGE:
// dotnet fsi smartCropper.fsx <imagePath> [outputWidth] [outputHeight] [cropperType]
//
// ARGUMENTS:
// <imagePath> Path to the input image file (required)
// [outputWidth] Output width (optional, default: 350)
// [outputHeight] Output height (optional, default: 400)
// [cropperType] 1 = IdCropper, 2 = SmartCropper (optional, default: 1)