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 2mo 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 32% 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

3698d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67367ba1ddf92188001cbb69abd0882cc96a31ad576a3a2ab8e0ff1b456ac066?d=identicon)[androzd](/maintainers/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.6k51.2M116](/packages/league-glide)[jenssegers/imagehash

Perceptual image hashing for PHP

2.1k2.2M5](/packages/jenssegers-imagehash)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4374.2M13](/packages/lasserafn-php-initial-avatar-generator)[rtippin/messenger

Laravel messenger suite.

45035.8k4](/packages/rtippin-messenger)

PHPackages © 2026

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