PHPackages                             lireincore/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. [Image &amp; Media](/categories/media)
4. /
5. lireincore/image

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

lireincore/image
================

Image effects, thumbnails and postprocessing

0.3.1(7y ago)03.0k1MITPHPPHP &gt;=7.1.3

Since Apr 26Pushed 7y agoCompare

[ Source](https://github.com/lireincore/image)[ Packagist](https://packagist.org/packages/lireincore/image)[ Docs](https://github.com/lireincore/image)[ RSS](/packages/lireincore-image/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (8)Used By (1)

Image effects, thumbnails and postprocessing
============================================

[](#image-effects-thumbnails-and-postprocessing)

[![Latest Stable Version](https://camo.githubusercontent.com/6d18d799cd95dbe8e97d9de1acb96831224a2f9f336b814e73c4b5744f71a248/68747470733a2f2f706f7365722e707567782e6f72672f6c697265696e636f72652f696d6167652f762f737461626c65)](https://packagist.org/packages/lireincore/image)[![Total Downloads](https://camo.githubusercontent.com/f7b0d50a5d36c0201ba448c011c72b8d7c91f782c47e42d6cba7c34bba0a2a87/68747470733a2f2f706f7365722e707567782e6f72672f6c697265696e636f72652f696d6167652f646f776e6c6f616473)](https://packagist.org/packages/lireincore/image)[![License](https://camo.githubusercontent.com/9431ce7a0d75337f7747565945809f34abb570fb0a0b7f2fdadf07c351bad7f3/68747470733a2f2f706f7365722e707567782e6f72672f6c697265696e636f72652f696d6167652f6c6963656e7365)](https://packagist.org/packages/lireincore/image)

About
-----

[](#about)

Supports GD, Imagick and Gmagick.

Also, you can use a special extension [lireincore/imgcache](https://github.com/lireincore/imgcache) that adds the ability to cache thumbs.

Install
-------

[](#install)

Add the `"lireincore/image": "^0.3"` package to your `require` section in the `composer.json` file

or

```
$ php composer.phar require lireincore/image
```

Usage
-----

[](#usage)

```
//Use basic effects
use LireinCore\Image\Manipulators\Imagine;
use LireinCore\Image\PostProcessors\OptiPng;

$image = (new Imagine())
    ->open('/path/to/image.jpg')
    ->resize(1000, 500)
    ->grayscale()
    ->blur(2)
    ->text('Hello word', 'Verdana');
    ->save('/path/to/new_image.png', ['format' => 'png', 'png_compression_level' => 7]);

$postProcessor = new OptiPng();
$postProcessor->process('/path/to/new_image.png'); //optimize image

//Also you can add extended effects
use LireinCore\Image\Manipulator;
use LireinCore\Image\Manipulators\Imagine;
use LireinCore\Image\Effects\Overlay;
use LireinCore\Image\Effects\ScaleDown;
use LireinCore\Image\Effects\Fit;
use LireinCore\Image\PostProcessors\JpegOptim;

$image = (new Imagine(Manipulator::DRIVER_GD))
    ->open('/path/to/image.jpg')
    ->apply(new Overlay('/path/to/watermark.png', 70, 'right', 'bottom', '50%', '50%'))
    ->grayscale()
    ->apply(new ScaleDown('50%', '50%', true))
    ->apply(new Fit('center', 'center', '200', '90', '#f00', 20, true))
    ->negative()
    ->save('/path/to/new_image.jpg');

$postProcessor = new JpegOptim();
$postProcessor->process('/path/to/new_image.jpg'); //optimize image
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~55 days

Recently: every ~80 days

Total

7

Last Release

2609d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.4.0

0.3.0PHP &gt;=7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21308223?v=4)[lireincore](/maintainers/lireincore)[@lireincore](https://github.com/lireincore)

---

Top Contributors

[![lireincore](https://avatars.githubusercontent.com/u/21308223?v=4)](https://github.com/lireincore "lireincore (7 commits)")[![sgworker](https://avatars.githubusercontent.com/u/20991976?v=4)](https://github.com/sgworker "sgworker (5 commits)")

---

Tags

effectimagephpresizethumbthumbnailimageresizethumbeffect

### Embed Badge

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

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[gumlet/php-image-resize

PHP class to re-size and scale images

1.2k5.7M54](/packages/gumlet-php-image-resize)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[masterexploder/phpthumb

A library for manipulating images in PHP.

981751.7k17](/packages/masterexploder-phpthumb)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)

PHPackages © 2026

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