https://github.com/visavi/watermask
Overlay mesh watermark image
https://github.com/visavi/watermask
Last synced: over 1 year ago
JSON representation
Overlay mesh watermark image
- Host: GitHub
- URL: https://github.com/visavi/watermask
- Owner: visavi
- Created: 2015-07-20T15:47:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-29T12:44:50.000Z (almost 11 years ago)
- Last Synced: 2025-01-26T01:24:58.458Z (over 1 year ago)
- Language: PHP
- Size: 3.45 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Overlay grid watermarks
[](https://packagist.org/packages/visavi/watermask)
[](https://packagist.org/packages/visavi/watermask)
[](https://packagist.org/packages/visavi/watermask)
[](https://packagist.org/packages/visavi/watermask)
Basic useful feature list:
* It covers the entire image watermarks
* Image processing gif, jpeg, jpg, png formats
* Working with images from the relative and absolute paths
* Checking the existence of the file, including remote file
* Calculation of the aspect ratio of the watermark to the original image
* Ability to customize the automatic imposition through .htaccess
```php
RewriteEngine on
RewriteRule .* /example.php?image=%{REQUEST_URI} [NC]
```
###Examples of implementation of requests
```php
http://site/examples.php?image=/image.jpg // Processing relative path
http://site/examples.php?image=http://site/image.jpg // Processing the absolute path
http://site/image.jpg // Automatic processing through htaccess
```
###Result

### Installing
```
composer require visavi/watermask
```
### License
The class is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)