robyfirnandoyusuf/image-compressor

Easily compress images using PHP

1.0 2019-08-25 16:44 UTC

This package is auto-updated.

Last update: 2024-09-26 20:07:09 UTC


README

Issues Starts Total Downloads LICENSE

A PHP Package to Compress Image.

Requirements

PHP cURL Module Enable

Installation

You can install the package via composer:

composer require robyfirnandoyusuf/image-compressor

Usage

use ImageCompressor\ImageCompressor;
ImageCompressor::compress('x.jpg','good','/path/output');

parameter 1 : filename.jpg / .png

parameter 2 : quality (normal,good,high,extreme)

parameter 3 : output directory

Compression details at different levels.

Tested On

OS : Ubuntu 16.04 LTS

PHP Version : PHP 7.3.3

Web Server : Apache2

Security

If you discover any security related issues, please email nothingtocoding@gmail.com instead of using the issue tracker.

Version

Current version is 1.0.0 and still development.

License

The MIT License (MIT). Please see License File for more information.

Contact

If you meet any problem when using ImageCompressor, file a issue or contact me directly. Roby Firnando Yusuf