8000 GitHub - gtuk/php-lepton: A php wrapper library for Dropbox Lepton compression tool
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gtuk/php-lepton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPLepton

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'
);

About

A php wrapper library for Dropbox Lepton compression tool

Resources

Stars

Watchers

41B4

Forks

Packages

No packages published

Languages

0