bilwy / watermark
Generate text watermark with canvas for dcat-admin
v1.0.0
2023-12-03 14:40 UTC
Requires
- php: >=7.1.0
- dcat/laravel-admin: ~2.0
README
Add Generate Text Watermark in dcat-admin web page.
Install
composer require bilwy/watermark
Configurations
Add extensions
option in your config/admin.php
configuration file:
'extensions' => [ 'watermark' => [ 'enable' => true, 'config' => [ 'content' => 'username', // Admin::user()->username, or Admin::user()->name or fixed value like 'internal info' 'width' => '100px', 'height' => '120px', 'textAlign' => 'left', 'textBaseline' => 'alphabetic', 'font' => '15px Times New Roman', 'fillStyle' => 'rgba(204,204,204,0.4)', 'rotate' => 30, 'zIndex' => 1000, ] ] ]