visavi/watermask

Overlay mesh watermark image

dev-master 2015-07-29 12:44 UTC

This package is auto-updated.

Last update: 2024-04-19 23:50:34 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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

###Result Result

Installing

composer require visavi/watermask

License

The class is open-sourced software licensed under the MIT license