All Projects → loopeer → Lpalbum

loopeer / Lpalbum

Licence: mit
an albums that can preview, multiple-choice

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Lpalbum

Imagestore
Open source google photos alternative!
Stars: ✭ 429 (+2423.53%)
Mutual labels:  photos, photo, album
PhotosApp
React Native Photos App: AWS Amplify, AWS S3, Mobile Analytics with Pinpoint
Stars: ✭ 21 (+23.53%)
Mutual labels:  photos, photo
photo-dl
A photo album downloader
Stars: ✭ 44 (+158.82%)
Mutual labels:  photos, album
Flutter photo manager
Provide flutter with the ability to manage photos.
Stars: ✭ 294 (+1629.41%)
Mutual labels:  photos, photo
google-photos-vue
Google Photos album viewer built with Vue.js
Stars: ✭ 17 (+0%)
Mutual labels:  photos, album
ZLPhotoBrowser-objc
(ZLPhotoBrowser oc 版本)轻量级照片选择框架,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑裁剪图片/视频,支持多语言国际化等功能
Stars: ✭ 54 (+217.65%)
Mutual labels:  photos, imagepicker
Dreampower
DeepNude with DreamNet improvements.
Stars: ✭ 287 (+1588.24%)
Mutual labels:  photos, photo
photos
"Fx Fotos" is an opensource gallery app in react native with the same smoothness and features of Google Photos and Apple Photos. It is backend gnostic and connects to decentralized backends like "box", "Dfinity", "Filecoin" and "Crust".
Stars: ✭ 620 (+3547.06%)
Mutual labels:  photos, photo
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+21435.29%)
Mutual labels:  photo, imagepicker
Zlphotobrowser
Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Stars: ✭ 3,962 (+23205.88%)
Mutual labels:  photos, imagepicker
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 (+2223.53%)
Mutual labels:  photo, album
GWLPhotoSelector
相册照片多张选择控件
Stars: ✭ 50 (+194.12%)
Mutual labels:  photos, photo
Facebook-Album-Browser
jQuery plugin for browsing public albums of a Facebook account
Stars: ✭ 76 (+347.06%)
Mutual labels:  photos, album
google-photos-upload
Upload a local image directory into an Album in Google Photos (works on mac/pc/linux). Coded in C# .NET Core 3.0
Stars: ✭ 26 (+52.94%)
Mutual labels:  photos, album
myphotoshare
MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
Stars: ✭ 12 (-29.41%)
Mutual labels:  photos, album
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (+1576.47%)
Mutual labels:  photos, photo
Gallery shell
📷 Bash Script to generate static responsive image web galleries.
Stars: ✭ 198 (+1064.71%)
Mutual labels:  photos, photo
Exiftool Vendored.js
Fast, cross-platform Node.js access to ExifTool
Stars: ✭ 200 (+1076.47%)
Mutual labels:  photos, photo
Photobak
Back up your content from Google Photos - DEPRECATED: use Timeliner
Stars: ✭ 304 (+1688.24%)
Mutual labels:  photos, album
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+2305.88%)
Mutual labels:  photos, imagepicker

LPAlbum

LPAlbum

Xcode 8.3+ iOS 8.0+ Swift 3.1+

LPAlbum is a simple photo album

Overview

LPAlbum is a album including the function of multiple images, photo browsing, camera taking pictures. It is very easy to use

How to use

  1. Config

public extension LPAlbum {
    public struct Config {
        /// 最大选择数量
        public var maxSelectCount: Int = 6
        /// 每列照片数量
        public var columnCount: Int = 4
        /// 照片间距
        public var photoPadding: CGFloat = 2.0
        /// 是否有相机
        public var hasCamera: Bool = true
    }
    
    public struct Style {
        /// `NavigationBar`标题颜色
        public static var barTitleColor: UIColor = UIColor.white
        /// `NavigationBar`背景颜色
        public static var barTintColor: UIColor = UIColor.darkGray
        /// `NavigationBar`item文本颜色
        public static var tintColor: UIColor = UIColor.white
        /// 状态栏样式
        public static var statusBarStyle: UIStatusBarStyle = .lightContent
        /// 下拉箭头图片
        public static var arrowImage: UIImage = Bundle.imageFromBundle("meun_down")!
        /// 正常的选择框图片
        public static var normalBox: UIImage = Bundle.imageFromBundle("circle_normal")!
        /// 选中的选择框图片
        public static var selectedBox: UIImage = Bundle.imageFromBundle("circle_selected")!
        /// 选择框box的可点击区域向外的扩展size
        public static var boxEdgeInsets = UIEdgeInsets(top: -5, left: -5, bottom: -5, right: -5)
    }
}

  1. Error:

public enum AlbumError: Error {
    case noAlbumPermission
    case noCameraPermission
    case moreThanLargestChoiceCount
    case savePhotoError
    
    public var localizedDescription: String {
        switch self {
        case .noAlbumPermission: return String.local("没有相册访问权限")
        case .noCameraPermission: return String.local("没有摄像头访问权限")
        case .moreThanLargestChoiceCount: return String.local("达到了图片选择最大数量")
        case .savePhotoError: return String.local("保存图片失败")
        }
    }
}

  1. Use:

Tips: add row in your project info.plist

  1. Privacy - Photo Library Usage Description : Can I get photo album permissions?
  2. Privacy - Camera Usage Description : Can I get camera permissions?
  3. Localization native development region : en or china

// you can setup style yourself
LPAlbum.Style.barTintColor = .gray
LPAlbum.Style.tintColor = .white

// show
LPAlbum.show(at: self)  {
    $0.columnCount = 4
    $0.hasCamera = true
    $0.maxSelectCount = 9 - self.photos.count
}.targeSize({ (size) -> CGSize in
    return CGSize(width: 240, height: 240)
}).error {(vc, error) in
    vc.show(message: error.localizedDescription)
}.complete { [weak self](images) in
    self?.photos.append(contentsOf: images)
    self?.collectionView.reloadData()
    _ = images.map{ print($0.size) }
}

Features

  • [ ] Support for iCloud
  • [ ] Support for cutting
  • [ ] Support for selecting a single image
  • [ ] Support for choosing the original image
  • [ ] Add preview of the selected photos

Installation

1. CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

Specify LPAlbum into your project's Podfile:

# source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'
use_frameworks!

target '<Your App Target>' do
  pod 'LPAlbum', '~> 0.0.9'
end

Then run the following command:

$ pod install
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].