PHPackages                             soumen-dey/laravel-image - 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. soumen-dey/laravel-image

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

soumen-dey/laravel-image
========================

A package to encode and generate thumbnail for Laravel 5.6 and above.

v1.0(7y ago)03MITPHP

Since Feb 10Pushed 7y agoCompare

[ Source](https://github.com/soumen-dey/laravel-image)[ Packagist](https://packagist.org/packages/soumen-dey/laravel-image)[ Docs](https://github.com/soumen-dey/laravel-image)[ RSS](/packages/soumen-dey-laravel-image/feed)WikiDiscussions master Synced 3w ago

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

Laravel Image
=============

[](#laravel-image)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1997b223fa97b128dd619fcc99849529e7b3e29b11cbb4d2edbeea6f18696ca4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f756d656e2f696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soumen-dey/laravel-image)[![Total Downloads](https://camo.githubusercontent.com/98ad54f494e43035c1613c4d164602474430ca167013aa05a1abcc06581d31e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f756d656e2f696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soumen/laravel-image)

A package to encode and store your Uploaded Images for Laravel 5.6 and above.

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

[](#installation)

Via Composer

This package depends on [intervention/image](https://github.com/intervention/image)

```
$ composer require soumen-dey/laravel-image
```

Laravel Auto-Discovery will automatically detect and add the Service Provider and Alias for the package. If it doesn't, do the following:

In the `$providers` array add the service providers for this package.

```
Soumen\Image\ImageServiceProvider::class
```

Add the facade of this package to the `$aliases` array.

```
'Image' => Soumen\Image\Facades\Image::class
```

Configuration
-------------

[](#configuration)

By default this packages uses GD library for processing the images, to change this behaviour and also to modify the default storage options, publish the configuration file for this package.

```
$ php artisan vendor:publish --provider="Soumen\Image\ImageServiceProvider"
```

Usage
-----

[](#usage)

```
use Soumen\Image

$file = $request->file('file');

// This will initialize and extract meta-data from the image
$image = new Image($file);

// This will encode the image and generate thumbnail
$image->process();

// Store the image in the storage
$image->store();
```

You can also use method chaining to write the above code in one line.

```
$image = (new Image($file))->process()->store();
```

You can also specify parameters.

```
$image = new Image($file);
$image->setQuality(90); // the jpeg image quality, default is 50
$image->setEncoding('png'); // default is jpeg
$image->setStorage('images'); // set the storage
$image->generateThumbnail(); // generates the thumbnail
$image->encode();
$image->store();
```

Do not use `$image->process()` if you wish specify parameters.

You can also use method chaining on the above code.

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [author name](https://github.com/soumen-dey)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2694d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27819155?v=4)[Soumen](/maintainers/soumen-dey)[@soumen-dey](https://github.com/soumen-dey)

---

Top Contributors

[![soumen-dey](https://avatars.githubusercontent.com/u/27819155?v=4)](https://github.com/soumen-dey "soumen-dey (1 commits)")

---

Tags

laravelimage

### Embed Badge

![Health badge](/badges/soumen-dey-laravel-image/health.svg)

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M159](/packages/intervention-image-laravel)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.1k3.4M81](/packages/unisharp-laravel-filemanager)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506511.0k27](/packages/bkwld-croppa)[danihidayatx/image-optimizer

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

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

PHPackages © 2026

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