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

01PHP

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 1w ago

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

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

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

[goat1000/svggraph

Generates SVG graphs

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)[yk/laravel-ocr

A wrapper for gocr.

1356.6k](/packages/yk-laravel-ocr)

PHPackages © 2026

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