All Projects → LuckSiege → Pictureselector

LuckSiege / Pictureselector

Licence: apache-2.0
Picture Selector Library for Android or 图片选择器

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Pictureselector

Os Fileup
Helper app to understand how to upload files and do basic image/video processing in hybrid android apps.
Stars: ✭ 190 (-98.29%)
Mutual labels:  camera, photo
ionic-multi-camera
Take multiple photos one after another
Stars: ✭ 12 (-99.89%)
Mutual labels:  camera, photo
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (-99.03%)
Mutual labels:  camera, photo
Hybridcamera
Video and photo camera for iOS
Stars: ✭ 145 (-98.69%)
Mutual labels:  camera, photo
Resizer
An image resizing library for Android
Stars: ✭ 406 (-96.34%)
Mutual labels:  photo, image-compression
neural-imaging
[CVPR'19, ICLR'20] A Python toolbox for modeling and optimization of photo acquisition & distribution pipelines (camera ISP, compression, forensics, manipulation detection)
Stars: ✭ 109 (-99.02%)
Mutual labels:  camera, image-compression
os-fileup
Helper app to understand how to upload files and do basic image/video processing in hybrid android apps.
Stars: ✭ 207 (-98.13%)
Mutual labels:  camera, photo
PhotosApp
React Native Photos App: AWS Amplify, AWS S3, Mobile Analytics with Pinpoint
Stars: ✭ 21 (-99.81%)
Mutual labels:  camera, photo
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (-67%)
Mutual labels:  camera, photo
Photo Booth
A multi-platform photo booth software using Electron and your camera
Stars: ✭ 324 (-97.08%)
Mutual labels:  camera, photo
Rximagepicker
Android图片相册预览选择器、支持AndroidX,支持图片的单选、多选、图片预览、图片文件夹切换、在选择图片时调用相机拍照
Stars: ✭ 85 (-99.23%)
Mutual labels:  camera, glide
Kontax Cam
Instant camera hybrid with multiple effects and filters written in Swift.
Stars: ✭ 69 (-99.38%)
Mutual labels:  camera, photo
Publishcommunity Master
仿微博,QQ空间,论坛 ,九宫格图文混排发表说说,动态,帖子
Stars: ✭ 107 (-99.04%)
Mutual labels:  camera, photo
Yoga Guru
A personalized yoga trainer app based on Flutter and TensorFlow Lite.
Stars: ✭ 110 (-99.01%)
Mutual labels:  camera
Audiovideocodec
一款视频录像机,支持AudioRecord录音、MediaCodec输出AAC、MediaMuxer合成音频视频并输出mp4,支持自动对焦、屏幕亮度调节、录制视频时长监听、手势缩放调整焦距等
Stars: ✭ 113 (-98.98%)
Mutual labels:  camera
Tinify Java
Java client for the Tinify API.
Stars: ✭ 107 (-99.04%)
Mutual labels:  image-compression
Contentmanager
Android library for getting photo or video from a device gallery, cloud or camera. Working with samsung devices. Made by Stfalcon
Stars: ✭ 108 (-99.03%)
Mutual labels:  camera
Ketai
Ketai sensor library for Processing (Android mode)
Stars: ✭ 114 (-98.97%)
Mutual labels:  camera
Time
time是一个for typecho相册模板
Stars: ✭ 112 (-98.99%)
Mutual labels:  photo
Rxapp
Stars: ✭ 108 (-99.03%)
Mutual labels:  glide

PictureSelector 2.0

A Picture Selector for Android platform, support from the album to obtain pictures, video, audio & photo, support crop (single picture or multi-picture crop), compression, theme custom configuration and other functions, support dynamic access & adapt to Android 5.0+ system of open source picture selection framework。

中文版🇨🇳

Download APK

PRs Welcome CSDN I Star

Directory

-Or use Gradle
-Update Log
-Style Configuration-Xml
-Style Configuration-Code
-Demo Effect
-Api Explain
-PictureSelector Path Desc
-Open Photo Album
-Open Camera
-Custom Camera
-Results Callback
-Cache Clear
-Confusion
-License

Version

repositories {
  google()
  mavenCentral()
}

dependencies {
  implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc10'
}

Or Maven:

<dependency>
  <groupId>io.github.lucksiege</groupId>
  <artifactId>pictureselector</artifactId>
  <version>v2.7.3-rc10</version>
</dependency>

Photo

Quick call, more functions More

1、onActivityResult

 PictureSelector.create(this)
   .openGallery(PictureMimeType.ofImage())
   .imageEngine(GlideEngine.createGlideEngine()) // Please refer to the Demo GlideEngine.java
   .forResult(PictureConfig.CHOOSE_REQUEST);
   
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode == RESULT_OK) {
            switch (requestCode) {
                case PictureConfig.CHOOSE_REQUEST:
                    // onResult Callback
                    List<LocalMedia> result = PictureSelector.obtainMultipleResult(data);
                    break;
                default:
                    break;
            }            
        }

2、Callback

 PictureSelector.create(this)
   .openGallery(PictureMimeType.ofAll())
   .imageEngine(GlideEngine.createGlideEngine())
   .forResult(new OnResultCallbackListener<LocalMedia>() {
       @Override
       public void onResult(List<LocalMedia> result) {
            // onResult Callback
       }

       @Override
       public void onCancel() {
            // onCancel Callback
       }
     });  

Camera

Quick Use, separately start the photo or video according to PictureMimeType automatic recognition More

onActivityResult

 PictureSelector.create(this)
   .openCamera(PictureMimeType.ofImage())
   .imageEngine(GlideEngine.createGlideEngine()) // Please refer to the Demo GlideEngine.java
   .forResult(PictureConfig.REQUEST_CAMERA);  
   
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode == RESULT_OK) {
            switch (requestCode) {
                case PictureConfig.REQUEST_CAMERA:
                    // onResult Callback
                    List<LocalMedia> result = PictureSelector.obtainMultipleResult(data);
                    break;
                default:
                    break;
            }            
        }

Callback

PictureSelector.create(this)
   .openCamera(PictureMimeType.ofImage())
   .imageEngine(GlideEngine.createGlideEngine())
   .forResult(new OnResultCallbackListener<LocalMedia>() {
       @Override
       public void onResult(List<LocalMedia> result) {
            // onResult Callback
       }

       @Override
       public void onCancel() {
            // onCancel Callback
       }
     });

CustomCamera

If you need to use a custom camera you need to set up

.isUseCustomCamera(true);

Application implementing interface

 public class App extends Application implements CameraXConfig.Provider {
    private static final String TAG = App.class.getSimpleName();

    @Override
    public void onCreate() {
        super.onCreate();
    }

    @NonNull
    @Override
    public CameraXConfig getCameraXConfig() {
        return Camera2Config.defaultConfig();
    }
 }

CacheClear

 // Include clipped and compressed cache, to be called upon successful upload, type refers to the image or video cache depending on which ofImage or ofVideo you set up note: system sd card permissions are required
 PictureCacheManager.deleteCacheDirFile(this,type);
 // Clear all temporary files generated by caching such as compression, clipping, video, and audio
 PictureCacheManager.deleteAllCacheDirFile(this);
 // Clear the cache and refresh the gallery
  PictureCacheManager.deleteAllCacheDirRefreshFile(this);
 // Clear the cache and refresh the gallery
 PictureCacheManager.deleteAllCacheDirFile(this, new OnCallbackListener<String>() {
            @Override
            public void onCall(String absolutePath) {
                // Refresh the photo album
            }
        });

Preview Image

// Preview picture can be customized length press save path
*Prompt .themeStyle(R.style.theme);Inside the parameters can not be deleted, otherwise crash...

PictureSelector.create(this)
 .themeStyle(R.style.picture_default_style)
 .isNotPreviewDownload(true)
 .imageEngine(GlideEngine.createGlideEngine())
 .openExternalPreview(position, result);

Preview Video

PictureSelector.create(this).externalPictureVideo(video_path);

Project use libraries

  • PhotoView
  • luban
  • ucrop

Confusion

#PictureSelector 2.0
-keep class com.luck.picture.lib.** { *; }

#Ucrop
-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }

License

   Copyright 2017 Luck

   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.

Contact

Android Group 662320389
Android Group 1 619458861 (biggest)
Android Group 2 679824206 (biggest)
Android Group 3 854136996 (biggest)
QQ 893855882

Effect

Single Mode Mixed Mode
Default Style Preview Multiple Crop
Digital Style Preview Multiple Crop
White Style Preview Single Crop
New Style Preview Multiple Crop
Photo Album Directory Single Mode Circular Crop
White Style Video Audio
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].