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 2w ago

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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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://avatars.githubusercontent.com/u/13157514?v=4)[Bert Maurau](/maintainers/BertMaurau)[@BertMaurau](https://github.com/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

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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