2017 © Pedro Peláez
 

library php-lepton

A php wrapper library for Dropbox Lepton compression tool

image

gtuk/php-lepton

A php wrapper library for Dropbox Lepton compression tool

  • Sunday, July 24, 2016
  • by gtuk
  • Repository
  • 2 Watchers
  • 16 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHPLepton

A php wrapper library for Dropbox Lepton compression tool., (*1)

This guide assumes you have Dropbox Lepton installed., (*2)

Installation

You can install this library with composer or include it manually in your project., (*3)

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., (*4)

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

The Versions

24/07 2016

dev-master

9999999-dev

A php wrapper library for Dropbox Lepton compression tool

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

php jpg compression jpeg dropbox decompression lepton lep

24/07 2016

1.0

1.0.0.0

A php wrapper library for Dropbox Lepton compression tool

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

php jpg compression jpeg dropbox decompression lepton lep