All Projects → GuoZhiQiang → Luban_ios

GuoZhiQiang / Luban_ios

Licence: mit
Wiki

Projects that are alternatives of or similar to Luban ios

Tars
Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
Stars: ✭ 9,277 (+8820.19%)
Mutual labels:  high-performance
Floops.jl
Fast sequential, threaded, and distributed for-loops for Julia—fold for humans™
Stars: ✭ 96 (-7.69%)
Mutual labels:  high-performance
Hacl Star
HACL*, a formally verified cryptographic library written in F*
Stars: ✭ 1,360 (+1207.69%)
Mutual labels:  high-performance
Wiki
wiki is a self-hosted well uh wiki engine or content management system
Stars: ✭ 91 (-12.5%)
Mutual labels:  wiki
Androidwm
An android image watermark library that supports steganography.
Stars: ✭ 1,322 (+1171.15%)
Mutual labels:  watermark
Yeeki
Yii 1.1-based wiki
Stars: ✭ 96 (-7.69%)
Mutual labels:  wiki
Community
Modern Confluence alternative designed for internal & external docs, built with Golang + EmberJS
Stars: ✭ 1,286 (+1136.54%)
Mutual labels:  wiki
Boswatch
Python Script to process input data from rtl_fm and multimon-NG - multiple Plugin support
Stars: ✭ 101 (-2.88%)
Mutual labels:  wiki
Amusewiki
Text::Amuse-based publishing platform
Stars: ✭ 95 (-8.65%)
Mutual labels:  wiki
Savagefactions
The Ultimate Competitve Factions Plugin. Switches focus from casual factions and introduces new features for competitive factions.
Stars: ✭ 99 (-4.81%)
Mutual labels:  wiki
Cvebase.com
cvebase is a community-driven vulnerability data platform to discover the world's top security researchers and their latest disclosed vulnerabilities & PoCs
Stars: ✭ 88 (-15.38%)
Mutual labels:  wiki
Linq To Wiki
.Net library to access MediaWiki API
Stars: ✭ 93 (-10.58%)
Mutual labels:  wiki
Apps Android Wikipedia
📱The official Wikipedia app for Android!
Stars: ✭ 1,350 (+1198.08%)
Mutual labels:  wiki
Workerman
An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols. PHP>=5.3.
Stars: ✭ 9,617 (+9147.12%)
Mutual labels:  high-performance
Jupiter
Jupiter是一款性能非常不错的, 轻量级的分布式服务框架
Stars: ✭ 1,372 (+1219.23%)
Mutual labels:  high-performance
Rtree2d
RTree2D is a 2D immutable R-tree with STR (Sort-Tile-Recursive) packing for ultra-fast nearest and intersection queries
Stars: ✭ 90 (-13.46%)
Mutual labels:  high-performance
Thumbnail
Thumbnail for a given video using FFMpeg
Stars: ✭ 96 (-7.69%)
Mutual labels:  watermark
Viki
A simple Wiki page in Markdown from notebook of VNote.
Stars: ✭ 103 (-0.96%)
Mutual labels:  wiki
Dapeng Soa
A lightweight, high performance micro-service framework
Stars: ✭ 101 (-2.88%)
Mutual labels:  high-performance
Moin 1.9
MoinMoin Wiki (1.9, also: 1.5a ... 1.8), stable, for production wikis
Stars: ✭ 98 (-5.77%)
Mutual labels:  wiki

Wiki

更新.Update

  • 现在可以添加自定义文字 水印 了 | Add custom text as an watermark to your image
  • 对应的调用方法:[UIImage lubanCompressImage:image withMask:maskName]

Luban-iOS

压缩比如下表.Compare:

机型 照片获取途径 原图大小.before 压缩后大小.after
6s 拍照(竖屏) 5.19 Mb 86.8 Kb
6s 拍照(横屏) 5.26 Mb 29.2 Kb
7plus 拍照(竖屏) 8.05 Mb 229.1 Kb
7plus 拍照(横屏) 6.34 Mb 39.6 Kb
6s 截屏 1.05 Mb 53.56 Kb
7plus 截屏 234.7 Kb 37.5 Kb

安装.Install

Via CocoaPods

  • Podfile 文件里添加pod 'Luban_iOS'

    然后在终端运行 pod install

    注意:如果使用 pod search Luban_iOS or pod search Luban-iOS 搜不到,那么,你需要

 pod setup
 rm -rf ~/Library/Caches/Cocoapods

使用.Usage

  • 下载 Demo 试玩一下,看一下输出,点一下图片看压缩后的效果大图

  • 导入 Category 头文件:

    #import <Luban_iOS/UIImage+Luban_iOS_Extension_h.h>

  • 方法调用

    [UIImage lubanCompressImage:image] or

    [UIImage lubanCompressImage:image withMask:maskName] or

    [UIImage lubanCompressImage:image withCustomImage:imageName]

  • 参数说明

/*
 image:    UIImage 对象
 withMask: 添加水印名字 (NSString)
 withCustomImage: 水印图片名称
*/
  • 注意: 想使用自定义文字水印的请使用方法:[UIImage lubanCompressImage:image withMask:maskName] 添加水印时,想使用自定义图片水印的请使用方法:[UIImage lubanCompressImage:image withCustomImage:imageName]

后续添加的功能.Further

  • 可以自定义水印旋转角度
  • 可以根据一个本地路径,进行压缩并存储
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].