PHPackages                             freshleafmedia/glide-dimension-watermark - 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. freshleafmedia/glide-dimension-watermark

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

freshleafmedia/glide-dimension-watermark
========================================

A Glide manipulation which overlays the images dimensions onto an image.

1.0.0(3y ago)11.7kMITPHPPHP &gt;7.1

Since Nov 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/freshleafmedia/glide-dimension-watermark)[ Packagist](https://packagist.org/packages/freshleafmedia/glide-dimension-watermark)[ RSS](/packages/freshleafmedia-glide-dimension-watermark/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Dimension Watermark
===================

[](#dimension-watermark)

Automatically add text to an image showing the dimensions.

Overview
--------

[](#overview)

It is common when using placeholder images to show the images dimensions in the center of the image. This library is a [Glide](https://github.com/thephpleague/glide) manipulator which will do this and automatically adjust text size.

[![500x300](examples/500x300.jpg)](examples/500x300.jpg)[![100x200](examples/100x200.jpg)](examples/100x200.jpg)

*Photo by [Robert Bye](https://unsplash.com/es/@robertbye) on [Unsplash](https://unsplash.com/s/photos/dorset)*

Installation
------------

[](#installation)

```
composer require freshleafmedia/glide-dimension-watermark

```

Usage
-----

[](#usage)

```
use Freshleafmedia\DimensionWatermark\DimensionWatermark;

// Setup Glide server. See https://glide.thephpleague.com/2.0/simple-example/
$server = League\Glide\ServerFactory::create([
    // ...
]);

// Add DimensionWatermark to the manipulators array
$manipulators = $server->getApi()->getManipulators();

array_splice($manipulators, count($manipulators) - 1, 0, [new DimensionWatermark()]);

$server->getApi()->setManipulators($manipulators);
```

The manipulator runs when the `dwm` parameter is set to any value. For example `/image.jpg?dwm=1` or `/image.jpg?w=100&fm=webp&dwm=1`

*Note: It is important that `DimensionWatermark` is added after the [`Size`](https://glide.thephpleague.com/2.0/api/size/) manipulator and before [`Encode`](https://glide.thephpleague.com/2.0/api/encode/) manipulator*

License
-------

[](#license)

See [LICENSE](LICENSE)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

1262d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10062339?v=4)[Freshleaf Media](/maintainers/freshleafmedia)[@freshleafmedia](https://github.com/freshleafmedia)

---

Top Contributors

[![freshleafmedia](https://avatars.githubusercontent.com/u/10062339?v=4)](https://github.com/freshleafmedia "freshleafmedia (7 commits)")

---

Tags

glidehacktoberfestimage-processing

### Embed Badge

![Health badge](/badges/freshleafmedia-glide-dimension-watermark/health.svg)

```
[![Health](https://phpackages.com/badges/freshleafmedia-glide-dimension-watermark/health.svg)](https://phpackages.com/packages/freshleafmedia-glide-dimension-watermark)
```

###  Alternatives

[awcodes/filament-curator

A media picker plugin for FilamentPHP.

434297.7k19](/packages/awcodes-filament-curator)[spatie/laravel-glide

Easily convert images with Glide

451905.6k16](/packages/spatie-laravel-glide)[trntv/yii2-glide

Yii2 Glide Extension

41269.5k9](/packages/trntv-yii2-glide)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[admad/cakephp-glide

CakePHP plugin for using Glide image manipulation library.

34160.7k1](/packages/admad-cakephp-glide)[justbetter/statamic-image-optimize

Image optimization after upload

1315.2k](/packages/justbetter-statamic-image-optimize)

PHPackages © 2026

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