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

ActiveLibrary

othercode/img-fly
=================

Dynamically resize images on the Fly

v1.2.2(2y ago)059MITPHPPHP ^8.1

Since Nov 22Pushed 2y agoCompare

[ Source](https://github.com/othercodes/img-fly)[ Packagist](https://packagist.org/packages/othercode/img-fly)[ RSS](/packages/othercode-img-fly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (11)Used By (0)

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

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

[](#laravel-imgfly)

> This package was originally created by [shawnsandy](https://github.com/shawnsandy).

### 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 Package
---------------

[](#install-package)

- Run the composer require to install the package:

```
composer require othercode/img-fly
```

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

```
OtherCode\ImgFly\ImgFlyServiceProvider::class,
```

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

```
'ImgFly' => OtherCode\ImgFly\Facades\ImgFlyFacade::class,
```

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=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)`

```

```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Shawn Sandy](https://github.com/shawnsandy)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 80.9% 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 ~289 days

Recently: every ~28 days

Total

9

Last Release

773d ago

Major Versions

v0.1.21 → v1.0.02023-12-06

PHP version history (3 changes)v0.1.11PHP &gt;=7.0

v1.0.0PHP ^7.2.5|^8.0

v1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7958790dcf5cd51ebbadc52fc7bada326fb3edd4481decf1006e6cfed8e46c43?d=identicon)[usantisteban](/maintainers/usantisteban)

---

Top Contributors

[![shawnsandy](https://avatars.githubusercontent.com/u/28913?v=4)](https://github.com/shawnsandy "shawnsandy (55 commits)")[![othercodes](https://avatars.githubusercontent.com/u/4815856?v=4)](https://github.com/othercodes "othercodes (10 commits)")[![aim2k1](https://avatars.githubusercontent.com/u/1412549?v=4)](https://github.com/aim2k1 "aim2k1 (1 commits)")[![azisyus](https://avatars.githubusercontent.com/u/26818892?v=4)](https://github.com/azisyus "azisyus (1 commits)")[![f-liva](https://avatars.githubusercontent.com/u/346224?v=4)](https://github.com/f-liva "f-liva (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M621](/packages/barryvdh-laravel-debugbar)[genealabs/laravel-caffeine

Keeping Your Laravel Forms Awake

9382.1M9](/packages/genealabs-laravel-caffeine)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k1](/packages/bjuppa-laravel-blog)[label84/laravel-mailviewer

View mails sent by Laravel in the browser

1429.5k](/packages/label84-laravel-mailviewer)

PHPackages © 2026

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