talira

Image cropping library for Android

open sourceApache-2.0free

uCrop is an Android library from Yalantis that opens a cropping screen for an image and returns the cropped file. An app starts UCropActivity (or embeds the uCrop fragment) with a builder that sets the aspect ratio, the largest result size, the output format and quality, the crop frame and grid, an oval or rectangular crop area and the screen's colours; users can rotate, scale and drag the image, or pick a ratio themselves when the app doesn't fix one. A native build preserves image quality on high-resolution photos at the cost of about 1.5 MB of app size. It keeps EXIF data in the cropped image and loads and crops in a background thread. Install it from JitPack as com.github.yalantis:ucrop.

Problems it solves

  • let users crop a photo before uploading it from my Android app
  • crop a camera photo to a square or a fixed aspect ratio on Android
  • an Android crop screen where users can rotate and zoom the image
  • crop very large photos on Android without losing quality

Features

  • crop screen as an activity or fragment
  • fixed or user-chosen aspect ratios
  • rotate, scale and freestyle crop gestures
  • oval or rectangular crop area
  • native build that preserves image quality
  • keeps EXIF data in the cropped image
  • compression format and quality settings

Alternatives

The same job

These do what uCrop does.

  1. image_cropper Flutter plugin for cropping and rotating images on Android, iOS and the web

Compare uCrop with the top 3