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 2mo 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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity30

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

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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