PHPackages                             codepane/laravel-image-handler - 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. codepane/laravel-image-handler

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

codepane/laravel-image-handler
==============================

Optimize and store images in multiple sizes easily.

0.7(3y ago)432452MITPHP

Since Oct 11Pushed 3y ago2 watchersCompare

[ Source](https://github.com/codepane/laravel-image-handler)[ Packagist](https://packagist.org/packages/codepane/laravel-image-handler)[ RSS](/packages/codepane-laravel-image-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

Laravel Image Handler
=====================

[](#laravel-image-handler)

Optimize and store images in multiple sizes easily.

### Installation steps

[](#installation-steps)

```
composer require codepane/laravel-image-handler
php artisan vendor:publish --provider="Codepane\LaravelImageHandler\ImageHandlerServiceProvider"

```

### Configuration

[](#configuration)

- After installation is done once you can see imagehandler.php under the config directory.
- You can update dimensions, format, and quality as per your need from a configuration file.
- You can also add a new dimension.

Usage
-----

[](#usage)

Let's deep dive into this package for how to use it

### Store Image

[](#store-image)

```
use ImageHandler;

public function store()
{
    // its takes the default file name as it is
    ImageHandler::store($request->file);

    // in 2nd argument you can pass your custom file name with or without the path
    ImageHandler::store($request->file, 'file_name_with_or_without_path');
}

```

### Get Image

[](#get-image)

```
use ImageHandler;

public function get()
{
    // this will return the original image
    ImageHandler::get('original_file_name');

    // pass dimension as the second argument to get a specific dimension of the file
    ImageHandler::get('original_file_name', 'sm');
}

```

### Get Image Name

[](#get-image-name)

```
use ImageHandler;

public function get()
{
    // pass dimension as the second argument to get a specific dimension of the file name
    ImageHandler::getFileName('original_file_name', 'sm');
}

```

### Delete Image

[](#delete-image)

```
use ImageHandler;

public function delete()
{
    ImageHandler::delete('original_file_name');
}

```

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

[](#contributing)

Contributions are always welcome!

- Make a pull request if you have to contribute to this lovely library!
- We will review and pull your request.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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

Every ~40 days

Recently: every ~46 days

Total

6

Last Release

1112d ago

### Community

Maintainers

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

---

Top Contributors

[![codepane](https://avatars.githubusercontent.com/u/76579787?v=4)](https://github.com/codepane "codepane (28 commits)")

---

Tags

laravelphplaravelimageimage handler

### Embed Badge

![Health badge](/badges/codepane-laravel-image-handler/health.svg)

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[joshembling/image-optimizer

Optimize your Filament images before they reach your database.

111145.4k12](/packages/joshembling-image-optimizer)[rolandstarke/laravel-thumbnail

Laravel Thumbnail generator

52140.6k](/packages/rolandstarke-laravel-thumbnail)[danihidayatx/image-optimizer

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

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

PHPackages © 2026

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