PHPackages                             kodus/jpeg - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. kodus/jpeg

ActiveLibrary[File &amp; Storage](/categories/file-storage)

kodus/jpeg
==========

simple service-wrapper for the jpeg-recompress tool (for Linux/Mac/Windows)

1.3.0(1y ago)234.8k↓23.7%1MITPHPPHP &gt;= 8.0

Since Jul 28Pushed 1y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

kodus/jpeg
==========

[](#kodusjpeg)

Wrapper around [jpeg-recompress](https://github.com/danielgtaylor/jpeg-archive) for Linux/Mac/Windows.

[![Build Status](https://github.com/kodus/jpeg/actions/workflows/test.yml/badge.svg)](https://github.com/kodus/jpeg/actions/workflows/test.yml/badge.svg)[![PHP Version](https://camo.githubusercontent.com/487804500a039aee09e5d93e41b745b4cd68dcc0fdf801e67d26d30b93f83358/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d626c75652e737667)](https://packagist.org/packages/kodus/jpeg)[![PHP Version](https://camo.githubusercontent.com/f870cee2a2e2a442c6b62c8bf79f45ec0ce794dc5af13834902518c9107230f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312532422d626c75652e737667)](https://packagist.org/packages/kodus/jpeg)

Includes a bundled [release 2.1.1](https://github.com/danielgtaylor/jpeg-archive/releases/tag/2.1.1) of the [JPEG-Archive](https://github.com/danielgtaylor/jpeg-archive) binaries as provided by [Daniel G. Taylor](https://github.com/danielgtaylor).

### Setup

[](#setup)

You may need to [set permissions](https://symfony.com/doc/current/setup/file_permissions.html)in order to run the built-in binaries.

Run the test-suite to see if the built-in defaults make sense for your system:

```
vendor/bin/codeception run

```

### Usage

[](#usage)

```
$service = new JPEGService();

$service->compress("input.jpg", "output.jpg");
```

Use the optional constructor arguments to specify a custom binary path (in case none of the built-in binaries work for you) as well as customizing the command-line arguments.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance41

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Every ~544 days

Recently: every ~604 days

Total

6

Last Release

494d ago

PHP version history (2 changes)1.0.2PHP &gt;= 7.1

1.1.0PHP &gt;= 8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec1a54f85a6e46909df4ca4852ada0cc4b1482f7208dfc487d05554087e09cc9?d=identicon)[thomasnordahl-dk](/maintainers/thomasnordahl-dk)

![](https://www.gravatar.com/avatar/9d0432f9ee26cc6265bcf3817d88bf40a4a8669a603785b34946e9c15d7b3451?d=identicon)[boan-jfm](/maintainers/boan-jfm)

![](https://www.gravatar.com/avatar/22799a8c3c482e408f78fd86a999b271f1d5fd2e04b433c6d199f717b3032bb2?d=identicon)[JyskFynskeMedierJoej](/maintainers/JyskFynskeMedierJoej)

![](https://www.gravatar.com/avatar/a974d9ad4b2be14736394ce117f53f83e9186e9cc05002bc004678f0b0587e37?d=identicon)[mifich](/maintainers/mifich)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (12 commits)")[![thomasnordahl-dk](https://avatars.githubusercontent.com/u/5709900?v=4)](https://github.com/thomasnordahl-dk "thomasnordahl-dk (2 commits)")[![JyskFynskeMedierJoej](https://avatars.githubusercontent.com/u/32329468?v=4)](https://github.com/JyskFynskeMedierJoej "JyskFynskeMedierJoej (1 commits)")[![vortrixs](https://avatars.githubusercontent.com/u/15426116?v=4)](https://github.com/vortrixs "vortrixs (1 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/kodus-jpeg/health.svg)

```
[![Health](https://phpackages.com/badges/kodus-jpeg/health.svg)](https://phpackages.com/packages/kodus-jpeg)
```

###  Alternatives

[spatie/file-system-watcher

Watch changes in the file system using PHP

2502.1M17](/packages/spatie-file-system-watcher)[verseles/sevenzip

A package to compress and decompress files using 7zip

191.7k](/packages/verseles-sevenzip)

PHPackages © 2026

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