PHPackages                             robyfirnandoyusuf/image-compressor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. robyfirnandoyusuf/image-compressor

ActiveLibrary[Image &amp; Media](/categories/media)

robyfirnandoyusuf/image-compressor
==================================

Easily compress images using PHP

1.0(6y ago)017MITPHPPHP &gt;=5.3.0

Since Aug 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/robyfirnandoyusuf/Image-Compressor)[ Packagist](https://packagist.org/packages/robyfirnandoyusuf/image-compressor)[ RSS](/packages/robyfirnandoyusuf-image-compressor/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

PHP ImageCompressor
===================

[](#php-imagecompressor)

[![Issues](https://camo.githubusercontent.com/119d6d11c84ec1a67d6c7caa8a0318a72eff5c3c9787f00e41979ee8e26be248/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f726f62796669726e616e646f79757375662f496d6167652d436f6d70726573736f72)](https://github.com/robyfirnandoyusuf/Image-Compressor/releases)[![Starts](https://camo.githubusercontent.com/139d3e3ac9ebca9c230d77bed5482e9995e6e4fa1bc94b489a2f49d4d545080f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f726f62796669726e616e646f79757375662f496d6167652d436f6d70726573736f72)](https://github.com/robyfirnandoyusuf/Image-Compressor/releases)[![Total Downloads](https://camo.githubusercontent.com/b674a9a5366929443575ce94030152af9fd6d258759e22e703316fcd87689aa1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f62796669726e616e646f79757375662f496d6167652d436f6d70726573736f722e737667)](https://packagist.org/packages/robyfirnandoyusuf/image-compressor)[![LICENSE](https://camo.githubusercontent.com/b84e4c2ed2aae1340d260354e8c05e37cd8d0e5d3f9e3c1c8a7225ca920d3432/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726f62796669726e616e646f79757375662f496d6167652d436f6d70726573736f72)](LICENSE)

A PHP Package to Compress Image.

Requirements
------------

[](#requirements)

PHP cURL Module Enable

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require robyfirnandoyusuf/image-compressor
```

Usage
-----

[](#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.

[](#compression-details-at-different-levels)

   Compression Mode jpg png   mozjpeg pngquant     normal (Less compression, better image quality) quality 85 speed 3   good \*\*Recommended\*\* (Balanced compression &amp; image quality) quality 80 speed 1   high (More compression &amp; less image quality) quality 70 speed 1   extreme \*\*Not Recommended\*\*(Most compression &amp; lowest image quality) quality 60 speed 1  Tested On
---------

[](#tested-on)

OS : Ubuntu 16.04 LTS

PHP Version : PHP 7.3.3

Web Server : Apache2

Security
--------

[](#security)

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

Version
-------

[](#version)

**Current version is 1.0.0** and still development.

License
-------

[](#license)

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

Contact
-------

[](#contact)

If you meet any problem when using ImageCompressor, file a issue or contact me directly. [Roby Firnando Yusuf](https://facebook.com/exploreourbrain)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f7593a8d5d1d670ea2ff83231d4a40cc7367e7d53923106bb54e73f0fc2052?d=identicon)[robyfirnandoyusuf](/maintainers/robyfirnandoyusuf)

---

Top Contributors

[![robyfirnandoyusuf](https://avatars.githubusercontent.com/u/17494868?v=4)](https://github.com/robyfirnandoyusuf "robyfirnandoyusuf (1 commits)")

### Embed Badge

![Health badge](/badges/robyfirnandoyusuf-image-compressor/health.svg)

```
[![Health](https://phpackages.com/badges/robyfirnandoyusuf-image-compressor/health.svg)](https://phpackages.com/packages/robyfirnandoyusuf-image-compressor)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
