-
Notifications
You must be signed in to change notification settings - Fork 327
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
Showing
5 changed files
with
60 additions
and
63 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
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,15 @@ | ||
# Using Another Image Loader Library | ||
|
||
By default, Image picker is using [Glide](https://github.com/bumptech/glide) as its image loader library. | ||
|
||
You can change this by defining custom image loader. You can find the documentation in [here](https://github.com/esafirm/android-image-picker/blob/master/docs/custom_components.md) | ||
|
||
Next thing you wanna do is excluding Glide library from ImagePicker. You can achieve this with Gradle. Ex: | ||
|
||
```groovy | ||
implementation("com.github.esafirm.android-image-picker:imagepicker:x.y.z") { | ||
exclude group: 'com.github.bumptech.glide', module: 'glide' | ||
}) | ||
``` | ||
|
||
You can find more about this in [here](https://github.com/esafirm/android-image-picker/issues/105). Thanks to [Galaxer](https://github.com/Galaxer) 🙏 |
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,12 @@ | ||
# Custom Components | ||
|
||
You also can change how to process the image and how to get the image files through `ImageLoader` and `ImageFileLoader` | ||
To change this, simply set it on `ImagePickerComponentHolder` | ||
|
||
```java | ||
ImagePickerCompomnentHolder.getInstance() | ||
.setImageLoader(new GrayScaleImageLoader()) | ||
.setImageFileLoader(new WebpImageFileLoader()) | ||
``` | ||
|
||
Happy coding! |
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,13 @@ | ||
# Return Mode | ||
|
||
There's 4 mode available: | ||
|
||
1. `ReturnMode.NONE` -> When image is picked, ImagePickerActivity will not dismissed even in Single Mode | ||
|
||
2. `ReturnMode.ALL` -> When image is picked dismiss then deliver result | ||
|
||
3. `ReturnMode.CAMERA_ONLY` -> When image is picked with Camera, dismiss then deliver the result | ||
|
||
4. `ReturnMode.GALLERY_ONLY` -> Same as CAMERA_ONLY but with Gallery | ||
|
||
You can define your selected mode with `setReturnMode()` method. |
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,15 @@ | ||
# Set Save Location | ||
|
||
By default, ImagePicker will try to save the image generated from camera to `Environment.DIRECTORY_PICTURES` with directory name `"Camera"`. | ||
|
||
You can change the directory name only by using: | ||
|
||
```java | ||
ImagePicker.create(activity).imageDiretory(String dirName) | ||
``` | ||
|
||
Or you can change the full path of the save location by using: | ||
|
||
```java | ||
ImagePicker.create(activity).imageFullDirectory(String fullPath) | ||
``` |