guancheng/imager

The package to compress and crop image.

dev-master 2017-10-24 10:17 UTC

This package is auto-updated.

Last update: 2024-11-16 21:03:28 UTC


README

Build Status codecov License

Image library for php.

Install

composer require guancheng/imager

Usage

use LGC\Imager\Imager;

$imager = new Imager([
    'library' => 'gd' // library gd | im
    'fileInfo' => [
        'src' => 'test.jpg',
        'type' => 'jpg'
    ]
]);
$imager->compress(80);
$imager->run();

Test

vendor/bin/phpunit

Licence

MIT