Tanish Ranjan Logo
Tanish Ranjan
Back to Projects

Crop Kit

April 2025
AndroidKotlinJetpack ComposeOpen Source

An open-source Jetpack Compose library for easy image cropping, offering customizable shapes and rotation.

Crop Kit

Crop Kit

Crop Kit is an open-source Jetpack Compose library I developed to simplify image cropping on Android. Released in April 2025, this library offers a native, customizable ImageCropper composable, seamlessly integrating into any app, with support for various crop shapes, image transformations and gridline options.

Inspired by a personal need while working on an Android project, I created Crop Kit to address the complexity of image cropping, delivering a compose native production-ready solution with a focus on flexibility and performance.

Features

  • Crop Shapes:
    • Free Form: Crop to any desired rectangular size.
    • Original: Maintain the image's original aspect ratio.
    • Aspect Ratio: Specify custom ratios (e.g., 1:1, 16:9, 4:3) for precise cropping.
  • Image Transformations:
    • Flip images vertically or horizontally.
    • Rotate images clockwise or counterclockwise by 90 degrees.
  • Customizable Gridlines:
    • Options: Always visible, on touch, or never visible.
    • Types: Crosshair, 3x3 grid, circle, 3x3 grid with circle.
  • Ease of Integration: Simple setup via JitPack with a single dependency.
  • Performance: Optimized for smooth operation in production environments.

Purpose

Developed using Jetpack Compose and Kotlin, Crop Kit began as a solution to a challenge I encountered while building an Android app. I designed the CropController for state management, implemented dynamic grid layouts, and tested extensively to ensure compatibility across different Android versions.

Status

Active: Crop Kit is available under MIT license on GitHub. It is actively maintained, with ongoing updates to add new features, and improving performance.

Link

Tech Stack

  • Kotlin
  • Jetpack Compose

Interested in similar projects?

I'm available for freelance projects and collaborations.

Get in Touch