PHPackages                             intellex/stamper - 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. intellex/stamper

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

intellex/stamper
================

Stamps the images with opaque or semi-transparent overlays

v1.1.0(7y ago)19MITPHP

Since May 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/IntellexApps/stamper)[ Packagist](https://packagist.org/packages/intellex/stamper)[ RSS](/packages/intellex-stamper/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Lightweight PHP library for adding stamps and watermarks to images on the fly
=============================================================================

[](#lightweight-php-library-for-adding-stamps-and-watermarks-to-images-on-the-fly)

Very useful when you want to keep you original images inaccessible and serve their watermarked version only.

- Supports both **single stamps** and **tiled watermarks**.
- Integrated support for **cache**, with seamless implementation.
- Easy transformations such as: **resize**, **rotate** and **opacity**.

Setup
-----

[](#setup)

In order to fully utilize this library, a web server setup is necessary. Web server should recognize all requests going out for images and than redirect them to your proxy script.

Here is an example of nginx configuration:

```
server {

	...

	# This should be the first location section in your config
	location ~* /images/.*\.(jpe?g|png)(?|$) {
		fastcgi_pass	unix:/run/php/php7.1-fpm.sock;
		try_files	/Proxy/watermark.php =409;
		include		fastcgi.conf;
	}

	...
}
```

Examples
--------

[](#examples)

Check out `/tests/proxy` directory for fully working snippets.

##### Get the stamp or watermark

[](#get-the-stamp-or-watermark)

```
