PHPackages                             ytubes/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. ytubes/image-compressor

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

ytubes/image-compressor
=======================

Image compress

1.0.0(8y ago)0511PHPPHP &gt;=5.6

Since Sep 7Pushed 8y agoCompare

[ Source](https://github.com/ytubes/image-compressor)[ Packagist](https://packagist.org/packages/ytubes/image-compressor)[ RSS](/packages/ytubes-image-compressor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

ImageCompressor
===============

[](#imagecompressor)

Wrapper to any image compression engine

Install via composer
--------------------

[](#install-via-composer)

```
"ytubes/image-compressor": "^1.0.0"

```

### Example usage

[](#example-usage)

```
$testImage = new \SplFileInfo('/some_dir/test.jpg');
$newFilepath = '/destination/dir/test3.jpg';

$driver = 'guetzli'; // or
// $driver = \ImageCompressor\Driver\Guetzli::class; // or
// $driver = new \ImageCompressor\Driver\Guetzli('/path/to/guetzli');

$compressor = new \ImageCompressor\ImageCompressor($driver);
$compressor
    ->setOriginalFile($testImage)
    ->setDestination($newFilepath)
    ->setQuality(90)
    ->compress();

```

Or overwrite self:

```
$compressor = (new \ImageCompressor\ImageCompressor($driver));
$compressor
    ->setOriginalFile($testImage)
    ->compress();

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/309d3bbc61cda9dee096a722d5e252501bbed565f7bbed1605fb8d7355df4c84?d=identicon)[ytubes](/maintainers/ytubes)

---

Top Contributors

[![ytubes](https://avatars.githubusercontent.com/u/29330950?v=4)](https://github.com/ytubes "ytubes (10 commits)")

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[spatie/image

Manipulate images with an expressive API

1.4k60.7M187](/packages/spatie-image)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[alchemy/phpexiftool

Exiftool driver for PHP

41191.5k4](/packages/alchemy-phpexiftool)

PHPackages © 2026

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