Tags: rroohit/ImageCropView
Tags
Add fixed aspect-ratio cropping support and update dependencies - Introduced new `CropType` options for fixed aspect ratios: `RATIO_3_2`, `RATIO_4_3`, `RATIO_16_9`, and `RATIO_9_16`. - Implemented aspect-ratio constraint logic in `CropUtil.kt`, including coordinate calculations for centering and resizing the crop rectangle while preserving ratios. - Updated `onCrop` logic to correctly scale the output bitmap for fixed aspect-ratio types, preventing image distortion. - Refactored `MainActivity.kt` to use a `LazyRow` for crop type selection and added icons for the new aspect ratio options. - Upgraded `compileSdk` to 36 and updated various AndroidX and Compose dependencies to latest versions (e.g., Compose UI to 1.10.4, Material3 to 1.4.0). - Updated library coordinates to `io.github.rroohit:ImageCropView` and bumped version to 4.0.0. - Enhanced `README.md` with documentation for the new aspect ratio cropping features.