visavi / watermask
Overlay mesh watermark image
dev-master
2015-07-29 12:44 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-11-20 00:59:28 UTC
README
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
<FilesMatch ".(gif|jpg|jpeg|png)$"> RewriteEngine on RewriteRule .* /example.php?image=%{REQUEST_URI} [NC] </FilesMatch>
###Examples of implementation of requests
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
Installing
composer require visavi/watermask
License
The class is open-sourced software licensed under the MIT license