PHPackages                             atmden/img-fly - 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. atmden/img-fly

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

atmden/img-fly
==============

Dynamically resize images on the Fly from ATMDEN for Laravel &gt;7

11PHP

Since Apr 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Atmden/img-fly)[ Packagist](https://packagist.org/packages/atmden/img-fly)[ RSS](/packages/atmden-img-fly/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![Screenshot](/screenshot.jpeg)](/screenshot.jpeg)

Laravel ImgFly
==============

[](#laravel-imgfly)

### Dynamically resize images on the Fly in your Laravel App using the [Glide library from thephpleague](http://glide.thephpleague.com/).

[](#dynamically-resize-images-on-the-fly-in-your-laravel-app-using-the-glide-library-from-thephpleague)

> Glide is a wonderfully easy on-demand image manipulation library written in PHP. Its straightforward API is exposed via HTTP, similar to cloud image processing services like Imgix and Cloudinary. Glide leverages powerful libraries like Intervention Image (for image handling and manipulation) and Flysystem (for file system abstraction).

- Adjust, resize and add effects to images using a simple HTTP based API.
- Manipulated images are automatically cached and served with far-future expires headers.
- Create your own image processing server or integrate Glide directly into your app.
- Supports both the GD library and the Imagick PHP extension.
- Supports many response methods, including PSR-7, HttpFoundation and more.
- Ability to secure image URLs using HTTP signatures.
- Works with many different file systems, thanks to the Flysystem library.
- Powered by the battle tested Intervention Image image handling and manipulation library.
- Framework-agnostic, will work with any project.
- Composer ready and PSR-2 compliant.
- [Get more info - glide.thephpleague.com](http://glide.thephpleague.com/)

Install Glide Laravel
---------------------

[](#install-glide-laravel)

Via composer repository

- Installs using composer repositories add the following to your `composer.json` file

```
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/shawnsandy/img-fly"
        }
    ],

```

- Run the composer require to install the package

```
composer require shawnsandy/img-fly

```

### In Laravel 5.5 and higher the package automatically installs itself. If you are running Laravel 5.4 or earlier please follow the instructions below.

[](#in-laravel-55-and-higher-the-package-automatically-installs-itself-if-you-are-running-laravel--54-or-earlier-please-follow-the-instructions-below)

- Add the provider to your `config\app.php` providers.

```
ShawnSandy\ImgFly\ImgflyServiceProvider::class,

```

- Add the facade to your `config\app.php` alias.

```
"Imgfly" => ShawnSandy\ImgFly\Classes\ImgflyFacade::class,

```

### Routes

[](#routes)

- Add the route to your `routes\web.php`

```
Imgfly::routes();

```

### Dependencies (required)

[](#dependencies-required)

- Install the php league Laravel glide package [Info and Instructions](https://github.com/thephpleague/glide-laravel)

```
composer require league/glide-laravel

```

Usage
-----

[](#usage)

- Display and resize an image from your Storage folder `storage/app/images` directory `w=500` sets the image width to `500`.

```

```

- Display and resize an image from your `public/img` directory `w=500` sets the image width parameter to `500`. Read more on setting additional parameters (height, crop, orientation) [Glide quick reference](http://glide.thephpleague.com/1.0/api/quick-reference/).

```

```

### Presets

[](#presets)

You can also use preset to dynamically resize image on the fly. Parameters are set in the config `app/imgfly.php`

- Publish the config file

```
php artisan vendor:publish --tag=imgfly_config

```

- Open and modify the presets

```
[

    "icon" => "?w=60&h=60&fit=crop-center",

    "small" => "?w=100&h=100&fit=crop-center",

    "thumbnail" => "?w=200&h=200&fit=crop-center",

    "medium" => "?w=600&h=400&fit=crop-center",

    "large" => "?w=1200&h=600&fit=crop-center",

];
```

- Call the facade `Imgfly::imgPreset(image, preset_key = small, callBackMethod = 'img/imgPublic')`

```

```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- \[Shawn Sandy\]\[link-author\]

### TODO

[](#todo)

- Add image upload ui
- Add unit test

### License

[](#license)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21369563?v=4)[Denis Druchshenko](/maintainers/Atmden)[@Atmden](https://github.com/Atmden)

---

Top Contributors

[![Atmden](https://avatars.githubusercontent.com/u/21369563?v=4)](https://github.com/Atmden "Atmden (1 commits)")

### Embed Badge

![Health badge](/badges/atmden-img-fly/health.svg)

```
[![Health](https://phpackages.com/badges/atmden-img-fly/health.svg)](https://phpackages.com/packages/atmden-img-fly)
```

###  Alternatives

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

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

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

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

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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