PHPackages                             elboletaire/watimage - 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. elboletaire/watimage

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

elboletaire/watimage
====================

Watermark and Image PHP class

2.0.6(9y ago)265.8k17[6 issues](https://github.com/elboletaire/Watimage/issues)MITPHPPHP &gt;=5.4.0

Since Dec 8Pushed 8y ago3 watchersCompare

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

READMEChangelog (9)Dependencies (2)Versions (13)Used By (0)

Watimage: GD Image Helper PHP Class
===================================

[](#watimage-gd-image-helper-php-class)

[![Build status](https://camo.githubusercontent.com/cc8faa8697c38aa8291e52b8cc37c23139f1a8cde3c2a593ecee44586adc01b9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656c626f6c6574616972652f576174696d6167652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/elboletaire/Watimage)[![Code coverage](https://camo.githubusercontent.com/299506a2ca65ee25fd5caf94fc2cf6293c18d03409068f98abdf8be92968c0b0/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f656c626f6c6574616972652f576174696d6167652e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/elboletaire/Watimage)[![License](https://camo.githubusercontent.com/bb0da06a1ab2feed55fb67ee3152970eed39ee9f09e07bf565e936d6a3b2fb7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656c626f6c6574616972652f576174696d6167652e7376673f7374796c653d666c61742d737175617265)](https://github.com/elboletaire/Watimage/blob/master/LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/0d84047f428bdfdde3e3c940e9cb773ff120f753503d4fc987a0daad67b90007/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f656c626f6c6574616972652f576174696d6167652e7376673f7374796c653d666c61742d737175617265)](https://github.com/elboletaire/Watimage/releases)[![Total Downloads](https://camo.githubusercontent.com/ceaf73499d36f6b9079a2511a1832c27b202bcd5e70566d9862145afd9ed954e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c626f6c6574616972652f576174696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elboletaire/Watimage)[![Code Climate](https://camo.githubusercontent.com/b736f9956729ded51f4e742c92ca66605ea4dffac5eef9c06057f574b144866c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f656c626f6c6574616972652f576174696d6167652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/elboletaire/Watimage)

Watimage is a group of PHP classes to help you resize, rotate, apply filters, watermarks and a lot more of things to your images using the PHP's GD library.

It was initially a CakePHP component, later became a simple Vendor class and now is a powerful set of classes to alter images.

And it maintains the transparencies in every scenario.

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

[](#requirements)

You need php &gt; 5.4 and the [php GD](http://php.net/manual/book.image.php)package installed.

With aptitude:

```
sudo apt-get install php5-gd
```

With yum:

```
sudo yum install php-gd
```

Installing
----------

[](#installing)

With composer:

```
composer require elboletaire/watimage:~2.0.0
```

Check out the Watimage pages for [more information about installation](https://elboletaire.github.io/Watimage/usage/setup).

Usage
-----

[](#usage)

See all the information you need to know [at the Watimage pages](https://elboletaire.github.io/Watimage/usage)

API
---

[](#api)

Check out [the API](https://elboletaire.github.io/Watimage/api)[at the Watimage pages](https://elboletaire.github.io/Watimage/usage).

Examples
--------

[](#examples)

There are lot of examples at the `examples` folder, plus a lot more of examples and tutorials [in the Watimage pages](https://elboletaire.github.io/Watimage).

Before running the given examples, you need to `composer install` from `Watimage` root folder in order to get composer's autoloader downloaded into `vendor` folder.

```
composer install
cd examples
php Image.php
php Watermark.php
php Watimage.php
```

You can also put the `Watimage` folder in your local webhost webroot dir and [point there](http://localhost/Watimage/examples/Image.php) your browser.

Testing
-------

[](#testing)

Please, see the information about testing in [the Watimage pages](https://elboletaire.github.io/Watimage/usage/testing).

Patches &amp; Features
----------------------

[](#patches--features)

- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches

Bugs &amp; Feedback
-------------------

[](#bugs--feedback)

See the [issues section](https://github.com/elboletaire/Watimage/issues).

Changelog
---------

[](#changelog)

Check out the [releases on github](https://github.com/elboletaire/Watimage/releases). They have different order than expected because I've created tags recently to not loose them and to have the whole changelog there.

LICENSE
-------

[](#license)

See [LICENSE.md](./LICENSE.md).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~71 days

Recently: every ~91 days

Total

10

Last Release

3531d ago

Major Versions

1.0.2 → 2.0.02015-09-11

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.6PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/153305?v=4)[Òscar Casajuana](/maintainers/elboletaire)[@elboletaire](https://github.com/elboletaire)

---

Top Contributors

[![elboletaire](https://avatars.githubusercontent.com/u/153305?v=4)](https://github.com/elboletaire "elboletaire (220 commits)")[![albertboada](https://avatars.githubusercontent.com/u/1840284?v=4)](https://github.com/albertboada "albertboada (1 commits)")[![alexxandar](https://avatars.githubusercontent.com/u/12451981?v=4)](https://github.com/alexxandar "alexxandar (1 commits)")[![fcjurado](https://avatars.githubusercontent.com/u/1314788?v=4)](https://github.com/fcjurado "fcjurado (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

classgdimageimage-manipulationphpphp-gd

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/elboletaire-watimage/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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