PHPackages                             bertmaurau/php-watermarker - 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. bertmaurau/php-watermarker

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

bertmaurau/php-watermarker
==========================

A plain and simple package to watermark images.

24PHP

Since Jan 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/BertMaurau/php-watermarker)[ Packagist](https://packagist.org/packages/bertmaurau/php-watermarker)[ RSS](/packages/bertmaurau-php-watermarker/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Watermarker
===============

[](#php-watermarker)

[![License](https://camo.githubusercontent.com/5a911ddcd16b9110e7821386ffd8d637005a8b856c14a3c0861b955e91da4eba/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](https://github.com/bertmaurau/php-watermarker/blob/master/LICENSE)

A simple and basic library to watermark an image using a source-image and a watermark-image. Function can be used as a static caller as well as an initialized function (see example).

[![Preview](https://github.com/BertMaurau/php-watermarker/raw/master/preview.jpg)](https://github.com/BertMaurau/php-watermarker/blob/master/preview.jpg)

Usage
-----

[](#usage)

### Installation

[](#installation)

Via [Composer](https://getcomposer.org)

```
composer require bertmaurau/php-watermarker
```

### Example

[](#example)

```
// example (examples/add-watermark.php)
use BertMaurau\Watermarker;

// the source/original image
$sourceImage = __DIR__ . DIRECTORY_SEPARATOR . 'source.jpg';
// the image used as the watermark
$watermarkImage = __DIR__ . DIRECTORY_SEPARATOR . 'watermark.png';

// available positions
/*
 * Position:: TOP_LEFT | TOP_CENTER | TOP_RIGHT | CENTER_CENTER | BOTTOM_LEFT | BOTTOM_CENTER | BOTTOM_RIGHT
 */

// available imageTypes
/*
 * ImageType:: JPEG | BMP | GIF | PNG
 */

// Static method
/**
 * Function arguments
 * @param string required $sourceImage       The image to put the watermark on
 * @param string required $watermarkImage    The image that you want to use as a watermark
 * @param string optional $outputPath        The path where the generated image should be placed (check your permissions)
 * @param string optional $outputFilename    The filename you want to give the exported file
 * @param string optional $outputExtension   The extension it should have
 * @param string optional $position          The position to put the watermark at
 * @param int optional $outputQuality        The exported quality (Used for .jpg or for compression with .png [1-100])
 */
try {
    Watermarker\Watermark::AddImageAsWatermark($sourceImage, $watermarkImage, __DIR__, $filename = Watermarker\Position::CENTER_CENTER, Watermarker\ImageType::JPEG, Watermarker\Position::BOTTOM_CENTER, 100);
} catch (\Exception $ex) {
    echo $ex -> getMessage();
}

// Initialized mathod
try {
    $marker = (new Watermarker\Watermark)
            -> setSourceImage($sourceImage)
            -> setWatermarkImage($watermarkImage)
            -> setOutputPath(__DIR__)
            // other setters
            -> watermark();
} catch (Exception $ex) {
    echo $ex -> getMessage();
}
```

> [View all examples](/examples/add-watermark.php).

### Issues

[](#issues)

> For bug reporting or code discussions.

Credits
-------

[](#credits)

- [Bert Maurau](https://github.com/bertmaurau)

License
-------

[](#license)

The module is licensed under [MIT](./LICENSE.md).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e55c3b1956ff10ba4e8962c2b83be0842b1a65bb54fffb9625750e17529b8c?d=identicon)[BertMaurau](/maintainers/BertMaurau)

---

Top Contributors

[![BertMaurau](https://avatars.githubusercontent.com/u/13157514?v=4)](https://github.com/BertMaurau "BertMaurau (12 commits)")

---

Tags

bertmaurauimagelibraryphpsourcewatermark

### Embed Badge

![Health badge](/badges/bertmaurau-php-watermarker/health.svg)

```
[![Health](https://phpackages.com/badges/bertmaurau-php-watermarker/health.svg)](https://phpackages.com/packages/bertmaurau-php-watermarker)
```

###  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)
