https://github.com/droidninja/whatsapp-like-photoeditor
A library module that tries to mimic whatsapp photo editor.
https://github.com/droidninja/whatsapp-like-photoeditor
filters image-editor image-filters image-processing photoeditor whatsapp
Last synced: 10 months ago
JSON representation
A library module that tries to mimic whatsapp photo editor.
- Host: GitHub
- URL: https://github.com/droidninja/whatsapp-like-photoeditor
- Owner: DroidNinja
- Created: 2018-05-31T11:24:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T11:32:10.000Z (about 8 years ago)
- Last Synced: 2025-03-29T06:11:21.828Z (about 1 year ago)
- Topics: filters, image-editor, image-filters, image-processing, photoeditor, whatsapp
- Language: Java
- Size: 2.31 MB
- Stars: 162
- Watchers: 8
- Forks: 52
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Whatsapp-Like-PhotoEditor
It is a library module that tries to mimic the whatsapp photoeditor.
There are many things on which work needs to be done.
**TODO**
* Fix cropping issue (needs to mimic whatsapp on this)
* Remove ugly code
* Convert code to kotlin
* Publish on maven





# Usage
```kotlin
ImageEditor.Builder(this, imagePath)
.setStickerAssets("stickers")
.disable(ImageEditor.EDITOR_TEXT) //to disable something
.open()
```
Here `setStickerAssets()` methods takes folder name of stickers in the assets. Checkout sample if confused. You will get the result in
`onActivityResult`
```kotlin
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
when (requestCode) {
ImageEditor.RC_IMAGE_EDITOR ->
if (resultCode == Activity.RESULT_OK && data != null) {
val imagePath: String = data.getStringExtra(ImageEditor.EXTRA_EDITED_PATH)
edited_image.setImageBitmap(BitmapFactory.decodeFile(imagePath))
}
}
}
```
# Projects that helped
[ImageEditor-Android](https://github.com/siwangqishiq/ImageEditor-Android/)
[Android-Image-Cropper](https://github.com/ArthurHub/Android-Image-Cropper)