PHPackages                             renj1e/php-image-compress - 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. renj1e/php-image-compress

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

renj1e/php-image-compress
=========================

PHP image compression script

012PHP

Since Jun 6Pushed 7y agoCompare

[ Source](https://github.com/renj1e/php-image-compress)[ Packagist](https://packagist.org/packages/renj1e/php-image-compress)[ RSS](/packages/renj1e-php-image-compress/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Compressor IO Helper PHP Class
==============================

[](#compressor-io-helper-php-class)

Usage
-----

[](#usage)

```
use renj1e\phpImgCompress\CompressorIO;

$files = [];

$compress = new CompressorIO();
$compress->backup = true; // default: true. when it's true, create a directory and files will be copied to there before compressed.

$files[] = '/path/to/source/image/file.jpg';
$compress->compress($files);

// you can compress one file or get file list by a folder and compress.
$files = $compress->findFolder('png|jpg|jpeg|gif');
$compress->compress($files);
```

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

[](#installation)

Simply add a dependency on renj1e/php-image-compress to your composer.json file if you use [Composer](https://getcomposer.org/) to manage the dependencies of your project:

```
composer require renj1e/php-image-compress
```

License
-------

[](#license)

Minify is [MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71abd58306eeec77ca9666eb47355c25402f24ec53e633fd63da26c48b11b326?d=identicon)[itsmerenjel](/maintainers/itsmerenjel)

---

Top Contributors

[![renj1e](https://avatars.githubusercontent.com/u/11002984?v=4)](https://github.com/renj1e "renj1e (6 commits)")

### Embed Badge

![Health badge](/badges/renj1e-php-image-compress/health.svg)

```
[![Health](https://phpackages.com/badges/renj1e-php-image-compress/health.svg)](https://phpackages.com/packages/renj1e-php-image-compress)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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