All Projects → Lichenwei-Dev → Imagepicker

Lichenwei-Dev / Imagepicker

Licence: apache-2.0
高仿微信图片选择器(支持单图,多图,视频选择,支持图片自由缩放,视频播放等功能)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Imagepicker

RAImagePicker
📸 iMessage-like, Image Picker Controller Provides custom features.
Stars: ✭ 14 (-96.24%)
Mutual labels:  imagepicker
XGImagePickerController
iOS相册图片/视频选择器
Stars: ✭ 32 (-91.4%)
Mutual labels:  imagepicker
Filepicker
🔥🔥🔥Android文件、图片选择器,可按文件夹查找,文件类型查找,支持自定义相机
Stars: ✭ 265 (-28.76%)
Mutual labels:  imagepicker
cordova-plugin-advanced-imagepicker
Cordova Plugin for an advanced (multiple) ImagePicker
Stars: ✭ 23 (-93.82%)
Mutual labels:  imagepicker
MJMediaPicker
A Custom Class to select media from camera ,video or photo library by just adding a single file
Stars: ✭ 15 (-95.97%)
Mutual labels:  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 (-93.28%)
Mutual labels:  imagepicker
SSImagePicker
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸
Stars: ✭ 227 (-38.98%)
Mutual labels:  imagepicker
Coco
基于kotlin、简洁易用的调用系统拍照或图片选择库
Stars: ✭ 276 (-25.81%)
Mutual labels:  imagepicker
WAProfileImage
WAProfileImage - A library for Android for choosing and editing profile image like WhatsApp
Stars: ✭ 29 (-92.2%)
Mutual labels:  imagepicker
ImagePickerView
🌇 PHPickerViewController / UIImagePickerController for SwiftUI
Stars: ✭ 18 (-95.16%)
Mutual labels:  imagepicker
PhotoSelectAndCrop
This package integrates a UIImagePickerController into a SwiftUI app. Obtain 1) a copy of the original image, 2) a scaled and / or cropped version of it, 3) a CGFloat and 4) CGPoint. The CGFloat and CGPoint represent the scale and position of the original image used to make the processed version.
Stars: ✭ 57 (-84.68%)
Mutual labels:  imagepicker
ZYimagePickerPodDemo
微信选择图片 微信照片选择器 微信照片浏览
Stars: ✭ 33 (-91.13%)
Mutual labels:  imagepicker
ZLPhotoBrowser-objc
(ZLPhotoBrowser oc 版本)轻量级照片选择框架,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑裁剪图片/视频,支持多语言国际化等功能
Stars: ✭ 54 (-85.48%)
Mutual labels:  imagepicker
spartan-multi-image-picker
A Jquery multi image picker with preview (and madness)
Stars: ✭ 15 (-95.97%)
Mutual labels:  imagepicker
Bottomsheet Imagepicker
Modern image picker for Android
Stars: ✭ 267 (-28.23%)
Mutual labels:  imagepicker
nativescript-imagepicker
Imagepicker plugin supporting both single and multiple selection.
Stars: ✭ 103 (-72.31%)
Mutual labels:  imagepicker
ConvenientImagePicker
🏞🌅🌄🎇🌇🏙🌃🌉🌁the new iOS image picker. Beautiful, delicate, and customizable.
Stars: ✭ 44 (-88.17%)
Mutual labels:  imagepicker
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+884.14%)
Mutual labels:  imagepicker
Photopicker
[DEPRECATED] Image Picker like Wechat
Stars: ✭ 2,852 (+666.67%)
Mutual labels:  imagepicker
ImagePicker-OLX
No description or website provided.
Stars: ✭ 77 (-79.3%)
Mutual labels:  imagepicker

高仿微信图片选择器

注意开发细节,尽可能的做到加载速度最快,目前支持图片,视频单选,多选,多文件夹切换,大图预览,自定义图片加载器等功能。

效果图:

版本更新历史:

Version1.0.0:

1、可预览各文件夹下的图片
2、可配置是否支持相机拍照
3、可配置选择图片模式(单选/多选)
4、可配置选择图片数量
5、可配置图片加载框架

Version1.1.0:

1、新增大图预览功能(初步实现,考虑性能后期会改为Fragment承载,单一Activity架构)
2、更改选择图片文件夹弹窗高度
3、更改ImageLoader接口,开放小图加载、大图加载、清除缓存方法

Version2.0.0:

1、重构了大量的代码,更加注重代码间的解耦,相比1.0.+版本简化了配置项,让开发者可以更专注于业务。
2、添加媒体库扫描对GIF、视频的支持,并开放接口让开发者自行实现视频播放逻辑。
3、添加媒体库加载策略,开发者可自行配置加载图片或者视频,灵活运用于不同业务实现。
4、完善大图预览功能,完善部分UI界面的显示。

使用方式:

1、如何在项目中引入该图片加载库:

                //gradle版本在3.0以上引入此行
                implementation 'com.lcw.library:imagepicker:2.2.7'

2、如何自定义图片加载器(不定死框架,让框架更加灵活,需要去实现ImageLoader接口即可,如果需要显示视频,优先推荐Glide加载框架,可以参考Demo实现):

            public class GlideLoader implements ImageLoader {
                //to do something 可以参考Demo用法
                
            }

3、一行代码调用:

                ImagePicker.getInstance()
                        .setTitle("标题")//设置标题
                        .showCamera(true)//设置是否显示拍照按钮
                        .showImage(true)//设置是否展示图片
                        .showVideo(true)//设置是否展示视频
                        .filterGif(false)//设置是否过滤gif图片
                        .setSingleType(true)//设置图片视频不能同时选择
                        .setMaxCount(9)//设置最大选择图片数目(默认为1,单选)
                        .setImagePaths(mImageList)//保存上一次选择图片的状态,如果不需要可以忽略
                        .setImageLoader(new GlideLoader())//设置自定义图片加载器
                        .start(MainActivity.this, REQUEST_SELECT_IMAGES_CODE);//REQEST_SELECT_IMAGES_CODE为Intent调用的requestCode

4、如何获取选中的图片集合:

                @Override
                protected void onActivityResult(int requestCode, int resultCode, Intent data) {
                    if (requestCode == REQUEST_SELECT_IMAGES_CODE && resultCode == RESULT_OK) {
                        List<String> imagePaths = data.getStringArrayListExtra(ImagePicker.EXTRA_SELECT_IMAGES);
                    }
                }

版本会持续迭代,欢迎大家给建议。。。(欢迎Star,欢迎Fork)

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].