-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d67c84a
commit 8f9cb37
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Cropify | ||
![JitPack](https://jitpack.io/v/MoyuruAizawa/cropify.svg) | ||
![Vital](https://github.com/MoyuruAizawa/Cropify/actions/workflows/vital_check.yml/badge.svg) | ||
Lightweight image cropper for Android Jetpack Compose. | ||
|
||
https://user-images.githubusercontent.com/9051623/231838736-8bff221e-8515-4dd4-8314-64c3166e700d.mov | ||
|
||
# Installation | ||
1. Add the JitPack repository to your root `build.gradle`. | ||
``` | ||
allprojects { | ||
repositories { | ||
... | ||
maven { url 'https://jitpack.io' } | ||
} | ||
} | ||
``` | ||
|
||
2. Add the dependency. | ||
``` | ||
dependencies { | ||
implementation 'com.github.moyuruaizawa:cropify:${cropifyVersion}' | ||
} | ||
``` | ||
|
||
# Customizations | ||
- Cropping frame color. | ||
- Cropping frame alpha. | ||
- Cropping frame stroke width. | ||
- Cropping frame aspect ratio. | ||
- Grid line color. | ||
- Grid line alpha. | ||
- Grid line stroke width. | ||
- Mask (outside of cropping frame) color. | ||
- Mask alpha. | ||
- Background color. |