PHPackages                             tigra-image-library/gd2-imaging - 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. tigra-image-library/gd2-imaging

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

tigra-image-library/gd2-imaging
===============================

An advanced image processing library.

1.7.5(8y ago)41521LGPL-3.0-onlyPHPPHP ^5.4

Since Mar 11Pushed 8y ago3 watchersCompare

[ Source](https://github.com/artur-graniszewski/tigra-image-library)[ Packagist](https://packagist.org/packages/tigra-image-library/gd2-imaging)[ Docs](https://github.com/artur-graniszewski/tigra-image-library)[ RSS](/packages/tigra-image-library-gd2-imaging/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

TIGRA IMAGE LIBRARY
===================

[](#tigra-image-library)

Introduction
------------

[](#introduction)

This class can apply several types of advanced image processing effects.

Features
--------

[](#features)

Currently it can:

- Use the Hough transform to detect skew angles and deskew an image
- Detect the background color of an image
- Perform image quantization basic text recognition (OCR) in an image to eventually read text used for CAPTCHA validation
- Apply the pastel effect on an image
- Crop an image preserving the image aspect
- Remove a noise from an image
- Rotate or rescale an image detecting its background color
- Generate an histograms for an image
- Calculate pixel luminance (intensity), hue, saturation and chromacity of the RGB colors in three different color modes (HSL, HSI, HSV)
- Change hue of the image
- Change luminance of the image
- Change saturation of the image
- Create High-Definition-Range (HDR) images
- Use advanced programmable Pixel Shader
- Merge two images using eight different blending modes:

- addition
- divide
- subtract
- darken
- lighten
- difference
- multiply
- opacity

- Apply experimental blur effect with customizable kernel size.

Sample operations
-----------------

[](#sample-operations)

[![Example](https://camo.githubusercontent.com/abfcb392f6c3a35c0f8afbe9c34306518dd0f43b35d3d90408380f15a6bbcfdd/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6175746f5f6465736b6577696e672e706e67)](https://camo.githubusercontent.com/abfcb392f6c3a35c0f8afbe9c34306518dd0f43b35d3d90408380f15a6bbcfdd/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6175746f5f6465736b6577696e672e706e67)[![Example](https://camo.githubusercontent.com/471fd472bfcf018502b950ad25dac4bcb9204dcb78ddb4d6cfc9330754971d3d/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6261636b67726f756e645f636f6c6f722e706e67)](https://camo.githubusercontent.com/471fd472bfcf018502b950ad25dac4bcb9204dcb78ddb4d6cfc9330754971d3d/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6261636b67726f756e645f636f6c6f722e706e67)[![Example](https://camo.githubusercontent.com/25c2afb5e45883d946c20c6623f6755fed8f22839664a772c75dd90fb4c71363/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f686973746f6772616d2e706e67)](https://camo.githubusercontent.com/25c2afb5e45883d946c20c6623f6755fed8f22839664a772c75dd90fb4c71363/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f686973746f6772616d2e706e67)[![Example](https://camo.githubusercontent.com/14bc4bdc1df9eb8a163852ef5e8bfcd0dfaec185d70febf60380919245c56156/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6875655f726f746174696f6e2e6a7067)](https://camo.githubusercontent.com/14bc4bdc1df9eb8a163852ef5e8bfcd0dfaec185d70febf60380919245c56156/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6875655f726f746174696f6e2e6a7067)[![Example](https://camo.githubusercontent.com/309570df9bd14865c8a7652c9e0392b1473dfc511bcaa008620b19a65743b679/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6e6f6973655f726564756374696f6e2e706e67)](https://camo.githubusercontent.com/309570df9bd14865c8a7652c9e0392b1473dfc511bcaa008620b19a65743b679/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6e6f6973655f726564756374696f6e2e706e67)[![Example](https://camo.githubusercontent.com/8ad0cd9ae815e80ae2a39b891dfbfc416fa78ca6da671072f4e77838f0d5bc96/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6f63725f636170746368615f7265616465722e504e47)](https://camo.githubusercontent.com/8ad0cd9ae815e80ae2a39b891dfbfc416fa78ca6da671072f4e77838f0d5bc96/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6f63725f636170746368615f7265616465722e504e47)[![Example](https://camo.githubusercontent.com/7c9714724b853dea783dc849f5478c356d6473a8d7e58ca91674561b3b2925d0/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6f63725f746578745f7265636f676e6974696f6e2e706e67)](https://camo.githubusercontent.com/7c9714724b853dea783dc849f5478c356d6473a8d7e58ca91674561b3b2925d0/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f6f63725f746578745f7265636f676e6974696f6e2e706e67)[![Example](https://camo.githubusercontent.com/ddfc26e62a28e518192c975279c6aa3aa36e3243cf92bb40edff3b56a933f6db/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f70617374656c697a6174696f6e2e706e67)](https://camo.githubusercontent.com/ddfc26e62a28e518192c975279c6aa3aa36e3243cf92bb40edff3b56a933f6db/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f70617374656c697a6174696f6e2e706e67)[![Example](https://camo.githubusercontent.com/1c4a0127609bb90c0c23a43f805e7818af6fc3461bed05c73191b0f76a1129ac/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f76696272616e745f636f6c6f72732e6a7067)](https://camo.githubusercontent.com/1c4a0127609bb90c0c23a43f805e7818af6fc3461bed05c73191b0f76a1129ac/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f76696272616e745f636f6c6f72732e6a7067)[![Example](https://camo.githubusercontent.com/6a859b9f5cd8d6cba47135063168c9c554c4b1a621a8fb08f9abe400d8769202/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f736b65775f646574656374696f6e2e706e67)](https://camo.githubusercontent.com/6a859b9f5cd8d6cba47135063168c9c554c4b1a621a8fb08f9abe400d8769202/687474703a2f2f7068702e7765627475746f722e706c2f74696772612d6c6962726172792f736b65775f646574656374696f6e2e706e67)

Sample code
-----------

[](#sample-code)

Please see the *examples* directory

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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

3034d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/754246?v=4)[Artur Graniszewski](/maintainers/artur-graniszewski)[@artur-graniszewski](https://github.com/artur-graniszewski)

---

Top Contributors

[![artur-graniszewski](https://avatars.githubusercontent.com/u/754246?v=4)](https://github.com/artur-graniszewski "artur-graniszewski (4 commits)")

---

Tags

blurcaptcha-solvingdeskewgd2histogramimage-processingluminancenoise-reductionocrpastelphpphp-librarypixelrescalingrotationshadertransformphpcaptchacropOCRrotateBlurhslhsvhuesaturationluminanceGD2imaginghistogramdeskewrescalequantizerremove noisehdrpixel shaderpastel

### Embed Badge

![Health badge](/badges/tigra-image-library-gd2-imaging/health.svg)

```
[![Health](https://phpackages.com/badges/tigra-image-library-gd2-imaging/health.svg)](https://phpackages.com/packages/tigra-image-library-gd2-imaging)
```

###  Alternatives

[ssnepenthe/color-utils

A PHP library for performing SASS-like color manipulations.

631.2M16](/packages/ssnepenthe-color-utils)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138118.5k7](/packages/stefangabos-zebra-image)[dantsu/php-image-editor

PHP library to easily edit image with GD extension.

34174.0k2](/packages/dantsu-php-image-editor)[talesoft/phim

An image and color manipulation and processing library for PHP

2959.0k1](/packages/talesoft-phim)

PHPackages © 2026

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