jxlwqq / watermark
generate text watermark with canvas
Installs: 8 529
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-25 16:29:30 UTC
README
Add Text Watermark in Laravel-admin web page.
ScreenShot
Install
composer require jxlwqq/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, ] ] ]
Reference
More resources
License
Licensed under The MIT License (MIT).