PHPackages                             glukash/glu-image - 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. [Framework](/categories/framework)
4. /
5. glukash/glu-image

ActiveLibrary[Framework](/categories/framework)

glukash/glu-image
=================

0.1.3(11y ago)63.7k5[1 issues](https://github.com/glukash/glu-image/issues)[2 PRs](https://github.com/glukash/glu-image/pulls)MITPHPPHP &gt;=5.3.0

Since Jul 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/glukash/glu-image)[ Packagist](https://packagist.org/packages/glukash/glu-image)[ RSS](/packages/glukash-glu-image/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

GluImage
========

[](#gluimage)

`glukash\glu-image` is a **PHP image manipulation** helper library.

The package includes ServiceProvider and Facade for easy **Laravel 4** integration.

\##Purpose

- The package supports two image manipulation methods: resize and crop.
- Easly resize and crop jpg, png, and gif images.
- Supports animated gif using GD Library. (No Imagick, Gmagick is needed).

Dependencies
------------

[](#dependencies)

The package uses:

- [Intervention/image](https://github.com/Intervention/image)
- [glukash/GifCreator](https://github.com/glukash/GifCreator/tree/patch-1) forked version of [Sybio/GifCreator](https://github.com/Sybio/GifCreator)
- [Sybio/GifFrameExtractor](https://github.com/Sybio/GifFrameExtractor)

Requirements
------------

[](#requirements)

- PHP &gt;=5.3
- GD Library (&gt;=2.0)

Quick Installation
------------------

[](#quick-installation)

To install through composer, put the following in your `composer.json` file:

```
{
	"repositories": [
	    {
	        "type": "git",
	        "url": "https://github.com/glukash/GifCreator"
	    }
	],
	"require": {
		"glukash/glu-image": "0.*"
	}
}
```

Without adding the "repositories" key, composer will pull the original [Sybio/GifCreator](https://github.com/Sybio/GifCreator) and you will not be able to chain methods on animated gif files after first save().

```
{
	"repositories": [
	    {
	        "type": "git",
	        "url": "https://github.com/glukash/GifCreator"
	    }
	]
}
```

Laravel Integration
-------------------

[](#laravel-integration)

Add `Intervention\Image` and `Glukash\GluImage` service providers in `app/config/app.php`.

```
'providers' => array(

	// ...
	'Intervention\Image\ImageServiceProvider',
	'Glukash\GluImage\GluImageServiceProvider',
),
```

Add `GluImage` alias in `app/config/app.php`.

```
'aliases' => array(

	// ...

	'GluImage' => 'Glukash\GluImage\Facades\GluImage',
),
```

If you want to use `Intervention\Image` package directly, add `InterImage` alias in `app/config/app.php`. This is not a necessary step for using `GluImage`.

```
'aliases' => array(

	// ...

	'InterImage' => 'Intervention\Image\Facades\Image',
),
```

Code Examples
-------------

[](#code-examples)

```
$img = GluImage::get( $path_to_images.'/01.jpg' );
$img->resize(540,360);
$img->save( $path_to_images.'/01-resized.jpg' );

// ...

GluImage::get( $path_to_images.'/01.jpg' )->resize(540,360)->save( $path_to_images.'/01-resized.jpg' );

// ...

GluImage::get( $path_to_images.'/01.jpg' )->crop(540,360)->save( $path_to_images.'/01-cropped.jpg' );

// ...

// one chain creates two different files
GluImage::get( $path_to_images.'/01.jpg' )
	->resize(540,360)
	->save( $path_to_images.'/01-resized1.jpg' )
	->resize(360,220)
	->save( $path_to_images.'/01-resized2.jpg' );

// ...

// chaining another methods after save() method for animated gif files
// is available only with forked version of GifCreator
GluImage::get( $path_to_images.'/01.gif' )
	->resize(540,360)
	->save( $path_to_images.'/01-resized.gif' )
	->crop(360,220)
	->save( $path_to_images.'/01-resized-and-cropped.gif' );
```

License
-------

[](#license)

GluImage is licensed under the [MIT License](http://opensource.org/licenses/MIT).

Copyright 2014 [Lukasz Gaszyna](http://glukash.net/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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

Every ~6 days

Total

3

Last Release

4312d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3684876?v=4)[Lukasz Gaszyna](/maintainers/glukash)[@glukash](https://github.com/glukash)

---

Top Contributors

[![glukash](https://avatars.githubusercontent.com/u/3684876?v=4)](https://github.com/glukash "glukash (13 commits)")

---

Tags

frameworklaravel

### Embed Badge

![Health badge](/badges/glukash-glu-image/health.svg)

```
[![Health](https://phpackages.com/badges/glukash-glu-image/health.svg)](https://phpackages.com/packages/glukash-glu-image)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)

PHPackages © 2026

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