Image picker library android

3.0.0-beta1: Hash code and equals (#354)

Hopefully, the last version until we hit 3.0.0.
All fixes now should only be applied to this version.

Assets

  • Fix folder name & image name NPE #316
  • Add optional save image functionality #312
  • Fix Display Video Crash a26b0f6
  • Japanese support #332

Thanks to all the contributors! 🔥

Assets

Android Q Fixes, Initial Kotlin Migration

  • Add getUri() for convenient #285
  • Fixes for Android Q #290#293
  • Fixed some typo #291
  • Show video duration on the image picker #271
  • Use github workflow instead of CircleCI
  • Migrate sample to Kotlin #295

Assets

2.3.0 — Android Q Support!

  • Fix failed to create image file #262
  • Handle external scoped Glide issue
  • Bump target SDK to Q
  • Bump Glide to 4.11.0

Assets

  • Configurable ImageFileLoader
  • New approach on how to set custom ImageLoader
  • Fix and improvements

Assets

2.1.0: Merge pull request #222 from mnayef95/only-video-support

  • Support video only picker
  • Fix #188
  • AGP 3.4.2

Assets

  • ImagePicker is now in Fragment and you can use it in custom UI (please see sample)
  • Remove Retrolambda
  • Compatibility with Glide 4.9.0
  • Add Option to exclude GIF from image picker
  • Bug fixes and improvements

Also, we integrate our repo with CircleCi and add issue templating, because we want to improve our development experience in general

Assets

Fixing long loading time in image picker

Assets

  • Back arrow support RTL
  • Update to AGP 3.1 and Gradle 4.4
  • Add Arabic translation
  • Better permissions handling for cameraOnly mode
  • Basic video support
  • Set language programmatically
  • Some internal changes

Assets

New ReturnMode API and many more!

  • [New] Return Mode API returnMode

So if you want to mimic the setReturnAfterFirst behavior, all you have to do is

  • setReturnAfterFirst is now obsolete
  • [New] set toolbar arrow color with toolbarArrowColor(int color)
  • Rename ImagePicker methods
    • folderTitle -> toolbarFolderTitle
    • imageTitle -> toolbarImageTitle
  • Add capability to start without a request code

So instead of this

Now you can do this

BUT, you have to handle the result with the helper method from ImagePicker

You can still use the usual result check if you define the request code by yourself.

Читайте также:  Comodo mobile security для android premium

Источник

Android Image Picker Library | Top 15 Curated List

Up next

Checkboxes In Android Example with Source Code
Share article
What’s in this blog? Hide

Android Image Picker Library can help you in your Android Project to help user select images from their media folder or from the camera of their android device.

Here is a curated list of 15 such libraries built by developers to help you make choice for your Android Project with link to their respective github repository and gradle implementation code.

Android Image Picker Library mentioned below are not in any ranking order, however they are stable and tested

BottomSheet Image Picker Library

A modern image picker implemented as BottomSheet.

Language Java, Kotlin
Min SDK 17 (4.2 Jellybean)
Size 923 kb

Features

  • Select single/multiple images right in the bottom sheet
  • Use camera to take a picture
  • Choose image from gallery app
  • Handles all permission requests

This library is based on BSImagePicker. The developer, siralam reimplemented everything in Kotlin and added some features. Also, siralam used the new androidX artifacts.

Add to Project

First make sure jitpack is included as a repository in your project‘s build.gradle:

And then add the below to your app’s build.gradle:

BSImagePicker

An image picker that extends BottomSheetDialogFragment. Camera and gallery all in one dialog. Single or Multi Selection.

Language Java
Min SDK 16 (4.2 Jellybean)
Size 1500 kb

When your app needs user to pick one or more images from their device, it is still quite painful in Android.
Without any customization, you first need to ask user whether he/she wants to take a picture using camera, or select one from a Gallery app.
Then you have to write quite some code to launch a Camera intent.
Not to mention that you cannot even let user select multiple images.

So an image picker that solves all these pains is almost present in every app. And this library does the below:

  1. Without the need to ask user whether to take photo or select from gallery, these options are all in one dialog;
  2. Works for both single and multiple selections;
  3. Handle asking permissions for you;
  4. You just need to show this dialog, and register callbacks that give you a Uri or List .

The UI design of this library is referenced from TedBottomPicker.

Add to Project

First make sure jcenter() is included as a repository in your project‘s build.gradle:

And then add the below to your app’s build.gradle:

You also need to make sure you have included ‘com.android.support:support-v4: in your dependencies.

Multimager

Multi Image Picker and Multi Image Capture Demo app This is a sample demonstration for multiple images capture as well as multiple image picker. UX/UI can be styled with any color with relativity to Material Design. The demo shows tinting multiple views based on theme color!!

Читайте также:  Сенсорный датчик для андроид
Language Java
Min SDK 16 (4.1 JellyBean)
Size 7400 kb

Add the jitpack repo to your repositories section in root level build.gradle

Add the dependencies to the app level build.gradle

AsyncFilePicker Android Image Picker Library

File picker allows you to take photo and files from camera\gallery\filesystem and also you can add up to 3 own custom actions.

Picker will ask for camera and gallery permission on android version 6.0 or above.

To add this library to your project, you must add the JitPack repo to your root build.gradle file…

Then include this in your dependencies block

Language Kotlin
Min SDK 17 (4.2 Jellybean)
Size 230 kb

Universal Media Picker

Easy customizable picker for all your needs in Android application

Add following line of code to your module(app) level gradle file

Language Kotlin
Min SDK 14 (4.0 Icecream Sandwich)
Size 469 kb

MediaPickerLib

Kotlin based media picker library, to pick multiple images and/or videos from the built-in gallery. Easy to implement and use.

Add this on your module:app build.gradle

Gradle

Language Kotlin
Min SDK 19 (4.4 KitKat)
Size 2800 kb

ImagePickerUtil Android Image Picker Library

Android Imagepicker which allows to select images or capture from the camera with required permission and easy to implement, crop and compress the final image.

Add repository url and dependency in application module gradle file:

Language Java
Min SDK 16 (4.2 JellyBean)
Size 1700 kb

MultiPhotoPicker

Language Java
Min SDK 15 (4.0.3 – 4.0.4 IceCream Sandwich)
Size 1700 kb

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

Step 2. Add the dependency

NaraeImagePicker

MultiImagePicker for Android Application, written in Kotlin

Language Kotlin
nMin SDK 16 (4.1 JellyBea)
Size 1700 kb

Usages

Matisse Android Image Picker Library

Matisse is a well-designed local image and video selector for Android. With Matisse you can:

  • Use it in Activity or Fragment
  • Select images including JPEG, PNG, GIF and videos including MPEG, MP4
  • Apply different themes, including two built-in themes and custom themes
  • Different image loaders
  • Define custom filter rules
  • More to find out yourself
Language Java
Min SDK 14 (4.0 Ice cream Sandwich)
Size – kb

Permission

The library requires two permissions:

So if you are targeting Android 6.0+, you need to handle runtime permission request before next step.

Android Image Picker Library -OLX

Combined both TedBottomPicker and Camera View, to get the View Similar to ImagePickers of Olx.

We can Pick Images From Gallery and Camera in two modes, Single and Multi.

Awesome Image Picker

Awesome Image Picker library will pick images/gifs with a beautiful interface . Supports image or gif, Single and Multiple Image selection.

Language Java
Min SDK 15 (4.1 JellyBean)
Size 1700 kb
Читайте также:  Кнопка для селфи bluetooth remote shutter как подключить android

Getting Started

In build.gradle (Project)

And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)

Louvre Android Image Picker Library

A small customizable image picker. Useful to handle gallery image pick action built-in your app.

Getting Started

Add this in your root build.gradle file (not your app module build.gradle file):

Then, add the library in your app module build.gradle

Link to Louvre Android Image Picker Library

MediaPickerInstagram

Link to MediaPickerInstagram Android Image Picker Library.

Pix (WhatsApp Style Image Picker)

Pix is a Whatsapp image picker replica. with this Android Image Picker Library you can integrate a image picker just like whatsapp .

Getting Started

include in app level build.gradle

Pix is using the new Material Android Image Picker library with the legacy Support Library. You have to migrate from android.support to androidx in order to use com.google.android.material.

With Android Studio 3.2 and higher, you can quickly migrate an existing project to use AndroidX by selecting Refactor > Migrate to AndroidX from the menu bar.

For more details kindly refer Migrating to AndroidX

Interested in Animating your Android Views? Look here:
Android Animation Library | Top 20 Curated List

Источник

Image picker library android

📸 Image Picker Library for Android

Easy to use and configurable library to Pick an image from the Gallery or Capture image using Camera. It also allows to Crop the Image based on Aspect Ratio, Resolution and Image Size.

  • Pick Gallery Image
  • Pick Image from Google Drive
  • Capture Camera Image
  • Crop Image(Crop image based on provided aspect ratio or let user choose one)
  • Compress Image(Compress image based on provided resolution and size)
  • Retrieve Image Result as File, File Path as String or Uri object
  • Handle Runtime Permission for Camera and Storage
Profile Image Picker Gallery Only Camera Only

Where $libVersion =

If you want to get the activity result:

Kotlin

Java

If you want both Camera and Gallery:

Kotlin

Java

If you want just one option:

Kotlin

Java

Pick image using Gallery

Capture image using Camera

Crop image with fixed Aspect Ratio

Crop square image(e.g for profile)

Compress image size(e.g image should be maximum 1 MB)

Set Resize image resolution

Intercept ImageProvider, Can be used for analytics

Intercept Dialog dismiss event

Limit MIME types while choosing a gallery image

Add Following parameters in your colors.xml file, If you want to customize uCrop Activity.

  • Library — Android Kitkat 4.4+ (API 19)
  • Sample — Android Kitkat 4.4+ (API 19)
  • uCrop https://github.com/Yalantis/uCrop
  • Compressor https://github.com/zetbaitsu/Compressor
  • ImagePicker https://github.com/Dhaval2404/ImagePicker which my work is based on this repository.

About

📸 Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera 🖼

Источник

Оцените статью