PHPackages                             despark/laravel-image-purify - 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. despark/laravel-image-purify

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

despark/laravel-image-purify
============================

Laravel wrapper for https://github.com/despark/image-purify

0.3(6y ago)12.4k1[1 issues](https://github.com/despark/laravel-image-purify/issues)MITPHP

Since May 30Pushed 6y ago6 watchersCompare

[ Source](https://github.com/despark/laravel-image-purify)[ Packagist](https://packagist.org/packages/despark/laravel-image-purify)[ RSS](/packages/despark-laravel-image-purify/feed)WikiDiscussions master Synced yesterday

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

About
-----

[](#about)

This package is a laravel wrapper for [despark/image-purify](https://github.com/despark/image-purify)

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

[](#installation)

Get it from composer

```
composer require despark/laravel-image-purify
```

With Laravel 5.5 or newer, the package will be discovered automatically. If you're using an older version of Laravel, add the following to your `config/app.php` file:

```
$providers = [
    ...
    Despark\Laravel\ImagePurify\ImagePurifyServiceProvider::class,
]
```

If you want an instance of the purifier you can dependency inject `Despark\ImagePurify\Interfaces\ImagePurifierInterface`

If instead you want to register a facade add this to you `config/app.php`

```
$aliases = [
    ...
    'ImagePurify' => \Despark\Laravel\ImagePurify\Facades\ImagePurify::class
]
```

If you need custom options you can publish the config via

```
php artisan vendor:publish --provider "Despark\Laravel\ImagePurify\ImagePurifyServiceProvider" --tag config
```

Example Usage
-------------

[](#example-usage)

```
use Despark\ImagePurify\Interfaces\ImagePurifierInterface;

class HomeController extends Controller{

    public function optimize(ImagePurifierInterface $purifier){
        $purifier->purify('path/to/file');
    }
}
```

*For additional options and usage see [despark/image-purify](https://github.com/despark/image-purify) documentation.*

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~341 days

Total

4

Last Release

2293d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/5bfe6d2bb76a8f2ba350f31ee89bf82a6f874553eb024439ef0a998a9f23384a?d=identicon)[Despark-packagist](/maintainers/Despark-packagist)

---

Top Contributors

[![lsimeonov](https://avatars.githubusercontent.com/u/17702047?v=4)](https://github.com/lsimeonov "lsimeonov (6 commits)")[![ageshev](https://avatars.githubusercontent.com/u/9364161?v=4)](https://github.com/ageshev "ageshev (2 commits)")[![danmichaelo](https://avatars.githubusercontent.com/u/434495?v=4)](https://github.com/danmichaelo "danmichaelo (2 commits)")

---

Tags

gifgiflossyimage-optimizationjpeglaravelmozjpegoptimizationoptipngperformancepngpngquantpurifierlaravelimagecompressionimage-optimizeroptimizationMozJPEGoptipngjpegoptim

### Embed Badge

![Health badge](/badges/despark-laravel-image-purify/health.svg)

```
[![Health](https://phpackages.com/badges/despark-laravel-image-purify/health.svg)](https://phpackages.com/packages/despark-laravel-image-purify)
```

###  Alternatives

[ps/image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.

9141.7M25](/packages/ps-image-optimizer)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M161](/packages/intervention-image-laravel)[joshembling/image-optimizer

Optimize your Filament images before they reach your database.

112157.3k12](/packages/joshembling-image-optimizer)[typisttech/image-optimize-command

Easily optimize images using WP CLI

1742.0k](/packages/typisttech-image-optimize-command)[gtuk/image-optimizer

PHP image optimizer for png, jpeg and gif files. It uses mozjpeg, pngquant and gifsicle for the optimization process

161.6k](/packages/gtuk-image-optimizer)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

3313.6k](/packages/danihidayatx-image-optimizer)

PHPackages © 2026

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