All Projects → Parag2385 → Picker

Parag2385 / Picker

Picker - A CameraX based WhatsApp Style Image-Video Picker

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Picker

Piximagepicker
Pix is a Whatsapp image picker replica. with this, you can integrate an image picker just like WhatsApp.
Stars: ✭ 488 (+607.25%)
Mutual labels:  whatsapp, picker, imagepicker, photo-gallery
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+5205.8%)
Mutual labels:  camera, picker, imagepicker
Opalimagepicker
A multiple image picker for iOS, written in Swift
Stars: ✭ 165 (+139.13%)
Mutual labels:  image, picker, imagepicker
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+492.75%)
Mutual labels:  picker, imagepicker, photo-gallery
Bottomsheet Imagepicker
Modern image picker for Android
Stars: ✭ 267 (+286.96%)
Mutual labels:  image, picker, imagepicker
Rximagepicker
Android图片相册预览选择器、支持AndroidX,支持图片的单选、多选、图片预览、图片文件夹切换、在选择图片时调用相机拍照
Stars: ✭ 85 (+23.19%)
Mutual labels:  camera, image, imagepicker
XGImagePickerController
iOS相册图片/视频选择器
Stars: ✭ 32 (-53.62%)
Mutual labels:  camera, picker, imagepicker
Imagepicker
📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Stars: ✭ 623 (+802.9%)
Mutual labels:  camera, image, imagepicker
ProPicker
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
Stars: ✭ 25 (-63.77%)
Mutual labels:  camera, picker, imagepicker
Coco
基于kotlin、简洁易用的调用系统拍照或图片选择库
Stars: ✭ 276 (+300%)
Mutual labels:  camera, image, imagepicker
Resizer
An image resizing library for Android
Stars: ✭ 406 (+488.41%)
Mutual labels:  image, photo-gallery
Zlphotobrowser
Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Stars: ✭ 3,962 (+5642.03%)
Mutual labels:  picker, imagepicker
Fmphotopicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor
Stars: ✭ 428 (+520.29%)
Mutual labels:  image, picker
Sppermissions
Ask permissions with ready-use interface. You can check status permission and if it has been requested before. Support SwiftUI.
Stars: ✭ 4,701 (+6713.04%)
Mutual labels:  camera, photo-gallery
Assetspickerviewcontroller
Powerfully Customizable - Multiple Photo & Video Picker Controller
Stars: ✭ 321 (+365.22%)
Mutual labels:  image, picker
React Viewer
react image viewer, supports rotation, scale, zoom and so on
Stars: ✭ 502 (+627.54%)
Mutual labels:  image, image-gallery
Flutter photo manager
Provide flutter with the ability to manage photos.
Stars: ✭ 294 (+326.09%)
Mutual labels:  image, picker
Rxpaparazzo
RxJava extension for Android to take images using camera and gallery and pick files up
Stars: ✭ 467 (+576.81%)
Mutual labels:  camera, picker
Lgphotobrowser
照片浏览器,相册选择器,自定义照相机(支持单拍、连拍)
Stars: ✭ 527 (+663.77%)
Mutual labels:  image, picker
React Native Syan Image Picker
React-Native 多图片选择 支持裁剪 压缩
Stars: ✭ 556 (+705.8%)
Mutual labels:  image, picker

Picker

Download

A CameraX based WhatsApp Style Image-Video Picker

Gif Screenshot 1

Features

  1. Pick Multiple Images and Videos
  2. Restrict User to Pick no of Images and Videos
  3. Capture Images and Videos
  4. Latest CameraX API
  5. Android 10 and above Support using Scoped Storage

Installation

Picker is distributed using jcenter.

   repositories { 
        jcenter()
   }
   
   dependencies {
         implementation "com.appexecutors.picker:picker:$version"
   }

Usage

Initialization

  val mPickerOptions = 
    PickerOptions.init().apply {
        maxCount = 5                        //maximum number of images/videos to be picked
        maxVideoDuration = 10               //maximum duration for video capture in seconds
        allowFrontCamera = true             //allow front camera use
        excludeVideos = false               //exclude or include video functionalities
    }
        
   button.setOnClickListener {
        Picker.startPicker(this, mPickerOptions)    //this -> context of Activity or Fragment
   }

Callback

   override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)

        if (resultCode == Activity.RESULT_OK && requestCode == REQUEST_CODE_PICKER){
            val mImageList = data?.getStringArrayListExtra(PICKED_MEDIA_LIST) as ArrayList //List of selected/captured images/videos
            mImageList.map {
                Log.e(TAG, "onActivityResult: $it" )
            }
        }
    }

Note

If you're using a theme for activity from which you're going to start Picker, then consider adding android:windowTranslucentStatus:true in that theme

    <style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">        //If you're using this theme
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowTranslucentStatus">true</item>                          //Add this line
    </style>

For detailed example of usage, please look at the included sample app.

Try PicEditor - A WhatsApp style Image Editor

License

Copyright 2020 Parag Pawar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].