PHPackages                             androzd/imagine - 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. androzd/imagine

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

androzd/imagine
===============

Compressing images on the fly

v0.1(10y ago)027PHP

Since Mar 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Imagine
===============

[](#laravel-imagine)

This library provides easy way to generate image previews on the fly

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

[](#installation)

First, require the package using Composer:

```
composer require androzd/imagine
```

Now, add these service providers to your `config/app.php` file (don't add the `Intervention\Image\ImageServiceProvider::class` if you already have it).

```
Intervention\Image\ImageServiceProvider::class,
Androzd\Imagine\ImagineServiceProvider::class,
```

And finally add these to the aliases array (note: Image must be listed before Imagine):

```
'Image'   => Intervention\Image\Facades\Image::class,
'Imagine' => Androzd\Imagine\ImagineFacade::class,
```

Feel free to use a different alias for `Imagine` if you'd prefer something shorter

Configuration
-------------

[](#configuration)

There are a number of configuration options available for Imagine. Run the following Artisan command to publish the configuration option to your `config` directory:

```
php artisan vendor:publish --provider="Androzd\Imagine\ImagineServiceProvider"
```

Usage
-----

[](#usage)

```
// compress image by rules
Imagine::path('rule_name', 'path to image in public directory');
```

Example:

```
Imagine::path('profile_image', '/uploads/original/avatar/1.jpg');
```

This example makes path: /cache/profile\_image/uploads/original/avatar/1.jpg

If this image exists, it was returned by your web server as static resource.

If not exists, they will be generated and saved to /cache/profile\_image/uploads/original/avatar/1.jpg and next time will be returned as static image.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3745d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5602887?v=4)[Andrei Drozd](/maintainers/androzd)[@androzd](https://github.com/androzd)

---

Top Contributors

[![androzd](https://avatars.githubusercontent.com/u/5602887?v=4)](https://github.com/androzd "androzd (3 commits)")

### Embed Badge

![Health badge](/badges/androzd-imagine/health.svg)

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

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k52.6M140](/packages/league-glide)[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M161](/packages/intervention-image-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506516.3k27](/packages/bkwld-croppa)[october/rain

October Rain Library

1601.7M73](/packages/october-rain)[intervention/image-driver-vips

libvips driver for Intervention Image

47144.1k10](/packages/intervention-image-driver-vips)

PHPackages © 2026

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