gtuk/php-lepton
Composer 安装命令:
composer require gtuk/php-lepton
包简介
A php wrapper library for Dropbox Lepton compression tool
README 文档
README
A php wrapper library for Dropbox Lepton compression tool.
This guide assumes you have Dropbox Lepton installed.
Installation
You can install this library with composer or include it manually in your project.
Quick start
$lepton = new Lepton('<LeptonPath>');
After this you can run one of two commands, compress or decompress. If the compression or decompression failed Lepton will throw an Exception, otherwise it returns TRUE.
$options = array( ); $result = $lepton->compress( 'example.jpg', 'example.lep', $options ); $result = $lepton->decompress( 'example.lep', 'example.jpg', $options );
##Available Options
$options = array( '-unjailed', '-singlethread', '-maxchildren', '-preload', '-unkillable', '-allowprogressive', '-zlib0', '-timebound=<>ms', '-trunc=<>', '-memory=<>M', '-threadmemory=<>M', '-hugepages', '-avx2upgrade', '-injectsyscall={1..4}', '-socket', '-socket=<name>', '-listen', '-listen=<port>', '-zliblisten', '-zliblisten=<port>', '-recodememory=<>M' );
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-24