PHPackages                             alcodo/powerimage - 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. alcodo/powerimage

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

alcodo/powerimage
=================

Laravel Package to create a dynamic image handler

2218.3k5PHPCI failing

Since Mar 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alcodo/powerimage)[ Packagist](https://packagist.org/packages/alcodo/powerimage)[ RSS](/packages/alcodo-powerimage/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Powerimage
==========

[](#powerimage)

[![Build Status](https://camo.githubusercontent.com/f501b45228d6e881110212aea141ef1677f8cb05182a5c66bcfb17bd774d2eba/68747470733a2f2f7472617669732d63692e6f72672f616c636f646f2f706f776572696d6167652e737667)](https://travis-ci.org/alcodo/powerimage)[![Total Downloads](https://camo.githubusercontent.com/a689ae0c84527b6bf05c17d84cc3f76538346c58e53d5432f5435c819804aa92/68747470733a2f2f706f7365722e707567782e6f72672f616c636f646f2f706f776572696d6167652f642f746f74616c2e737667)](https://packagist.org/packages/alcodo/powerimage)[![Latest Stable Version](https://camo.githubusercontent.com/b0a257fd38de4d7f993e8faa77a66594e987b2153e1799cbdd785d000c0e1b01/68747470733a2f2f706f7365722e707567782e6f72672f616c636f646f2f706f776572696d6167652f762f737461626c652e737667)](https://packagist.org/alcodo/powerimage/framework)[![License](https://camo.githubusercontent.com/87a6920010ba34ca9574bbec8d1939481b7f9fc021dc9e28262b61538c2a50f7/68747470733a2f2f706f7365722e707567782e6f72672f616c636f646f2f706f776572696d6167652f6c6963656e73652e737667)](https://packagist.org/alcodo/powerimage/framework)

Powerimage is a dynamic image handler for laravel. It uses the package [thephpleague/glide](https://github.com/thephpleague/glide) for *convert* and [spatie/image-optimizer](https://github.com/spatie/image-optimizer) for *optimize* the image.

After the installation you can request any image that you have uploaded in laravel. Example:
`example.com/images/cat.jpg` (Original)
`example.com/images/cat_w=200&h=200.jpg` (Convert)

The workflow is very simple. If image isn't found, laravel throw a exception. This package creates only one time this image. And on the next request the image will return form your webserver like nginx (fast response).

Structure:

```
{domain}/{path}/{fileimage name}_{resize parameter}.{extension}

Delimiter: _

```

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

[](#installation)

Add packages:

```
    composer require alcodo/powerimage:dev-master
```

Add powerimage handler in `app/Exceptions/Handler.php`:

```
    public function render($request, Exception $exception)
    {
        PowerImage::check($request, $exception);

        return parent::render($request, $exception);
    }
```

And by the way you can inlcude or exclude paths that you want use powerimage example:

```
    public function render($request, Exception $exception)
    {
        if (PowerImage::include ($request, ['/images/*', '/gallery/*'])) {
            PowerImage::check($request, $exception);
        }

        // or

        if (PowerImage::exclude($request, ['/user/*'])) {
            PowerImage::check($request, $exception);
        }

        return parent::render($request, $exception);
    }
```

Helper
------

[](#helper)

Create powerimage path helper:

```
    powerimage('images/video.png', ['w' => 200, 'h' => 350]);

    // outut
    'images/video_w=200&h=350.png'

    // or direct in blade template

```

- [Parameter reference](http://glide.thephpleague.com/1.0/api/quick-reference/)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/alcodo/powerimage/blob/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/0472dc30fb5080c1ea5c4b46ef871bff216e476fed894731242b0fb3c69e6c2a?d=identicon)[approached](/maintainers/approached)

---

Top Contributors

[![approached](https://avatars.githubusercontent.com/u/3439330?v=4)](https://github.com/approached "approached (147 commits)")[![johannebert](https://avatars.githubusercontent.com/u/19428345?v=4)](https://github.com/johannebert "johannebert (2 commits)")

### Embed Badge

![Health badge](/badges/alcodo-powerimage/health.svg)

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

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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