gang544043963 / Lgphotobrowser
Licence: mit
照片浏览器,相册选择器,自定义照相机(支持单拍、连拍)
Stars: ✭ 527
Projects that are alternatives of or similar to Lgphotobrowser
Flutter photo manager
Provide flutter with the ability to manage photos.
Stars: ✭ 294 (-44.21%)
Mutual labels: image, photo, picker
Assetspickerviewcontroller
Powerfully Customizable - Multiple Photo & Video Picker Controller
Stars: ✭ 321 (-39.09%)
Mutual labels: image, photo, picker
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (-45.92%)
Mutual labels: image, photo, picker
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+348.39%)
Mutual labels: image, photo, picker
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (-79.51%)
Mutual labels: picker, photo
HXPHPicker
Photo/Video Selector-Supports LivePhoto, GIF selection, online download of resources on iCloud, and editing of photos/videos
Stars: ✭ 228 (-56.74%)
Mutual labels: picker, photo
Rxgalleryfinal
图片选择库,单选/多选、拍照、裁剪、压缩,自定义。包括视频选择和录制。
Stars: ✭ 2,798 (+430.93%)
Mutual labels: image, photo
Rskimagecropper
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.
Stars: ✭ 2,371 (+349.91%)
Mutual labels: image, photo
Bottomsheet Imagepicker
Modern image picker for Android
Stars: ✭ 267 (-49.34%)
Mutual labels: image, picker
Fdtake
Easily take a photo or video or choose from library
Stars: ✭ 314 (-40.42%)
Mutual labels: image, photo
React Image Magnify
A responsive image zoom component designed for shopping sites.
Stars: ✭ 391 (-25.81%)
Mutual labels: image, photo
MLDPhotoManager
弹出AlertController让用户选择相机还是相册.基于@gang544043963大神的LGPhotoBrowser项目再次封装
Stars: ✭ 19 (-96.39%)
Mutual labels: picker, photo
Ptshowcaseviewcontroller
An initial implementation of a "showcase" view( controller) for iOS apps... Visualizes images, videos and PDF files beautifully! (by @pittleorg) [meta: image, photo, video, document, pdf, album, gallery, showcase, gallery, iOS, iPhone, iPad, component, library, viewer]
Stars: ✭ 395 (-25.05%)
Mutual labels: image, photo
Ptimagealbumviewcontroller
"Image Album" — or "Photo Album" if you like that better — View( Controller) for all crazy iOS developers out there...
Stars: ✭ 199 (-62.24%)
Mutual labels: image, photo
Exiftool Vendored.js
Fast, cross-platform Node.js access to ExifTool
Stars: ✭ 200 (-62.05%)
Mutual labels: image, photo
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+594.69%)
Mutual labels: photo, picker
LGPhotoBrowser
前言
-
此框架经过实际项目锤炼,使用过程中改善了众多bug,在稳定性、流畅性以及内存消耗方面做了大量优化。但难免还有缺陷,希望同仁们在使用过程中发现并指正,并提issue!
-
注意:如果照相机不需要连拍功能,建议采用系统相机,经测试,自定义相机的体验和内存消耗均劣于系统相机。
-
相册优化方法:iOS中自定义相册功能性能优化
-
如果对您有帮助,记得star,动力源自鼓励
简介
-
此框架包含三个模块:图片浏览器,相册选择器,自定义照相机(支持单拍、连拍);
-
界面仿照微信的样式;
-
加载本地照片速度快;
-
图片浏览器采用后台预加载手段,完全消除大图浏览的卡顿现象;
-
具备相册已选组别记忆功能;
-
支持夜间模式;
1.图片浏览器
2.相册选择器
3.自定义相机
添加到工程
第一步:拷贝Class文件文件夹和Images文件夹到工程.
第二步:'#import "LGPhoto.h"'
备注:
-
自定义相册通常会根据需求做调整,所以不支持cocoaPods
-
用到的第三方:
图片下载 等待框 SDWebImage DACircularProgressView 如果你的项目中已经存在这两个框架,请手动删除Third文件夹中对应的框架。
初始化
初始化相册选择器,里面包括大图浏览
/**
* 初始化相册选择器
*/
- (void)presentPhotoPickerViewControllerWithStyle:(LGShowImageType)style {
LGPhotoPickerViewController *pickerVc = [[LGPhotoPickerViewController alloc] initWithShowType:style];
pickerVc.status = PickerViewShowStatusCameraRoll;
pickerVc.maxCount = 9; // 最多能选9张图片
pickerVc.delegate = self;
self.showType = style;
[pickerVc showPickerVc:self];
}
如果单独使用图片浏览器,也很简单:初始化+实现数据源方法
/**
* 初始化图片浏览器
*/
- (void)pushPhotoBroswerWithStyle:(LGShowImageType)style{
LGPhotoPickerBrowserViewController *BroswerVC = [[LGPhotoPickerBrowserViewController alloc] init];
BroswerVC.delegate = self;
BroswerVC.dataSource = self;
BroswerVC.showType = style;
self.showType = style;
[self presentViewController:BroswerVC animated:YES completion:nil];
}
#pragma mark - LGPhotoPickerBrowserViewControllerDataSource
- (NSInteger)photoBrowser:(LGPhotoPickerBrowserViewController *)photoBrowser numberOfItemsInSection:(NSUInteger)section{if (self.showType == LGShowImageTypeImageBroswer) {
return self.LGPhotoPickerBrowserPhotoArray.count;
} else if (self.showType == LGShowImageTypeImageURL) {
return self.LGPhotoPickerBrowserURLArray.count;
} else {
NSLog(@"非法数据源");
return 0;
}
}
//在这里,需要把图片包装成LGPhotoPickerBrowserPhoto对象,然后return即可。
- (id<LGPhotoPickerBrowserPhoto>)photoBrowser:(LGPhotoPickerBrowserViewController *)pickerBrowser photoAtIndexPath:(NSIndexPath *)indexPath{
if (self.showType == LGShowImageTypeImageBroswer) {
return [self.LGPhotoPickerBrowserPhotoArray objectAtIndex:indexPath.item];
} else if (self.showType == LGShowImageTypeImageURL) {
return [self.LGPhotoPickerBrowserURLArray objectAtIndex:indexPath.item];
} else {
NSLog(@"非法数据源");
return nil;
}
}
详见ViewController.m,注释很清楚
环境支持
iOS7及更高
LICENSE
LGPhotoBrowser is released under the MIT license. See LICENSE for details.
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].