All Projects → shaon2016 → ProPicker

shaon2016 / ProPicker

Licence: Apache-2.0 license
ProPicker is a file picker (image, video, file) library for Android. It helps you to pick any file and return the result in a convenient way

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ProPicker

Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+14544%)
Mutual labels:  gallery, camera, image-picker, picker, imagepicker
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+1536%)
Mutual labels:  gallery, image-picker, picker, imagepicker
Android Image Picker
Image Picker for Android 🤖
Stars: ✭ 847 (+3288%)
Mutual labels:  gallery, camera, image-picker
Rxpaparazzo
RxJava extension for Android to take images using camera and gallery and pick files up
Stars: ✭ 467 (+1768%)
Mutual labels:  gallery, camera, picker
Imagepicker
📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Stars: ✭ 623 (+2392%)
Mutual labels:  camera, image-picker, imagepicker
XGImagePickerController
iOS相册图片/视频选择器
Stars: ✭ 32 (+28%)
Mutual labels:  camera, picker, imagepicker
Picker
Picker - A CameraX based WhatsApp Style Image-Video Picker
Stars: ✭ 69 (+176%)
Mutual labels:  camera, picker, imagepicker
Zlphotobrowser
Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Stars: ✭ 3,962 (+15748%)
Mutual labels:  gallery, picker, imagepicker
Paparazzo
Custom iOS camera and photo picker with editing capabilities
Stars: ✭ 714 (+2756%)
Mutual labels:  gallery, camera
Yimagepicker
小红书多图剪裁+微信图片选择器+大图预览+图片剪裁(支持圆形剪裁和镂空剪裁),已适配androidQ,借鉴并升级matisse加载内核!超强定制性可轻松实现知乎/马蜂窝/微博等特殊样式!支持跨进程回调!内部结构轻量级,无任何第三方开源库!支持support依赖!
Stars: ✭ 975 (+3800%)
Mutual labels:  gallery, imagepicker
Ios Nbuimagepicker
Modular image picker with Simulator-compatible AVFondation camera, assets library, filters and more.
Stars: ✭ 196 (+684%)
Mutual labels:  gallery, image-picker
Louvre
A small customizable library useful to handle an gallery image pick action built-in your app. 🌄🌠
Stars: ✭ 629 (+2416%)
Mutual labels:  gallery, picker
Pickimage
Shows a DialogFragment with camera and gallery options. User can choose wich provider wants to pick images from. 📸 🖼️
Stars: ✭ 386 (+1444%)
Mutual labels:  gallery, camera
Gallerypicker
Gallery Picker allows you to design a custom gallery for image/ video picker in your android projects.
Stars: ✭ 76 (+204%)
Mutual labels:  gallery, image-picker
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (+332%)
Mutual labels:  camera, picker
Croperino
📷 A simple image cropping tool that provides gallery or camera help for Native Android (Java)
Stars: ✭ 176 (+604%)
Mutual labels:  gallery, camera
ImagePicker
Android image picker
Stars: ✭ 17 (-32%)
Mutual labels:  gallery, imagepicker
SSImagePicker
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸
Stars: ✭ 227 (+808%)
Mutual labels:  gallery, imagepicker
MJMediaPicker
A Custom Class to select media from camera ,video or photo library by just adding a single file
Stars: ✭ 15 (-40%)
Mutual labels:  camera, imagepicker
TakePhoto
🔥Kongzue的APP拍照&相册选择工具
Stars: ✭ 41 (+64%)
Mutual labels:  gallery, camera

ProPicker

A simple library to select images from the gallery and camera.

There are many libraries out there. May be some serves your purposes but not satisfactory. This library is different from the others.

Why should you use it?

  • CameraX library to capture images.
  • It also uses UCrop library to crop images.
  • It uses best compression to compress your image without loosing image's quality.

Step 1. Add the JitPack repository to your build file

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.shaon2016:ProPicker:1.0.5'
}

To working with this library you have to do the below work.......

Add this in your build.gradle app module

android {

    //.........
    
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

}

Screenshot

Start Pro image picker activity

The simplest way to start

            ProPicker.with(this)
                .start { resultCode, data ->
                    if (resultCode == RESULT_OK && data != null) {
                        val list = ProPicker.getSelectedPickerDatas(data)

                        if (list.size > 0) {
                            iv.setImageURI(list[0].uri)
                        }
                    }
                }

What you can do with ImagePicker

Camera

            ProPicker.with(this)
                .cameraOnly()
                .crop()
                .start { resultCode, data ->
                    if (resultCode == RESULT_OK && data != null) {
                        val picker = ProPicker.getPickerData(data)

                        iv.setImageURI(picker?.uri)

                    }
                }

Gallery

            ProPicker.with(this)
                .galleryOnly()
                .start { resultCode, data ->
                    if (resultCode == RESULT_OK && data != null) {
                        val list = ProPicker.getSelectedPickerDatas(data)
                        if (list.size > 0) {
                            Glide.with(this)
                                .load(list[0].file)
                                .into(iv)
                        }
                    }
                }

There are some example added for Java. Check it out at JavaMainActivityExample

Function that offers this library

For Camera

  1. cameraOnly() -> To open the CameraX only
  2. crop() -> Only works with camera
  3. compressImage -> compresing image work for both gallery and camera

Gallery related function

  1. galleryOnly() -> To open the gallery view only
  2. singleSelection -> Pick single file
  3. multiSelection -> Pick multi file and get the result as ArrayList
  4. maxResultSize -> Max Width and Height of final image
  5. compressImage -> compresing image work for both gallery and camera
  6. compressVideo -> (Under Development)
  7. onlyImage -> Select image from gallery
  8. onlyVideo -> Select video from gallery

Receiver the result

  1. ProPicker.getPickerDataAsByteArray(this, intent) -> Returns all the data as ByteArray
  2. ProPicker.getSelectedPickerDatas(intent: Intent) -> Get all the data
  3. ProPicker.getPickerData(intent: Intent) -> Get single data
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].